<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/CloudKit.Container/acceptShares",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit JS"
    ],
    "preciseIdentifier" : "instm/CloudKit.Container/acceptShares"
  },
  "title" : "acceptShares"
}
-->

# acceptShares

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

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

## Parameters

`shortGUIDs`

One or more short GUIDs that represent shared records.

## Return Value

A `Promise` object that resolves to a [`CloudKit.RecordInfosResponse`](/documentation/CloudKitJS/CloudKit.RecordInfosResponse) object, or rejects to a [`CKError`](/documentation/CloudKitJS/CloudKit/CKError) object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)