---
title: acceptShares
framework: CloudKit JS
role: symbol
role_heading: Instance Method
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.container/acceptshares
---

# acceptShares

Accepts a share—that is represented by a shortGUID—on behalf of the current user.

## Declaration

```data
Promise<CloudKit.RecordInfosResponse, CKError> acceptShares(
	String[] shortGUIDs
);
```

## Parameters

- `shortGUIDs`: One or more short GUIDs that represent shared records.

## Return Value

Return Value A Promise object that resolves to a CloudKit.RecordInfosResponse object, or rejects to a CKError object.

## See Also

### Accepting Shared Records

- [fetchRecordInfos](cloudkitjs/cloudkit.container/fetchrecordinfos.md)
