---
title: Resource Sharing
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Resource Sharing

##### [List account shares](https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/list)

client.ResourceSharing.List(ctx, params) (\*V4PagePaginationArray\[[ResourceSharingListResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/shares

##### [Get account share by ID](https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/get)

client.ResourceSharing.Get(ctx, shareID, params) (\*[ResourceSharingGetResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/shares/{share\_id}

##### [Trigger a share creation](https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/create)

client.ResourceSharing.New(ctx, params) (\*[ResourceSharingNewResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/shares

##### [Trigger a share rename](https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/update)

client.ResourceSharing.Update(ctx, shareID, params) (\*[ResourceSharingUpdateResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/shares/{share\_id}

##### [Trigger a share deletion](https://developers.cloudflare.com/api/go/resources/resource_sharing/methods/delete)

client.ResourceSharing.Delete(ctx, shareID, body) (\*[ResourceSharingDeleteResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing%20%3E%20(model)%20ResourceSharingDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/shares/{share\_id}

#### Resource SharingRecipients

##### [List share recipients by share ID](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/recipients/methods/list)

client.ResourceSharing.Recipients.List(ctx, shareID, params) (\*V4PagePaginationArray\[[RecipientListResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.recipients%20%3E%20(model)%20RecipientListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/shares/{share\_id}/recipients

##### [Get share recipient by ID](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/recipients/methods/get)

client.ResourceSharing.Recipients.Get(ctx, shareID, recipientID, params) (\*[RecipientGetResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.recipients%20%3E%20(model)%20RecipientGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/shares/{share\_id}/recipients/{recipient\_id}

##### [Trigger a recipient addition to a share](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/recipients/methods/create)

client.ResourceSharing.Recipients.New(ctx, shareID, params) (\*[RecipientNewResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.recipients%20%3E%20(model)%20RecipientNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/shares/{share\_id}/recipients

##### [Trigger a recipient removal from a share](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/recipients/methods/delete)

client.ResourceSharing.Recipients.Delete(ctx, shareID, recipientID, body) (\*[RecipientDeleteResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.recipients%20%3E%20(model)%20RecipientDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/shares/{share\_id}/recipients/{recipient\_id}

#### Resource SharingResources

##### [List share resources by share ID](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/resources/methods/list)

client.ResourceSharing.Resources.List(ctx, shareID, params) (\*V4PagePaginationArray\[[ResourceListResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.resources%20%3E%20(model)%20ResourceListResponse%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/shares/{share\_id}/resources

##### [Get share resource by ID](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/resources/methods/get)

client.ResourceSharing.Resources.Get(ctx, shareID, shareResourceID, query) (\*[ResourceGetResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.resources%20%3E%20(model)%20ResourceGetResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/shares/{share\_id}/resources/{share\_resource\_id}

##### [Trigger a resource addition to a share](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/resources/methods/create)

client.ResourceSharing.Resources.New(ctx, shareID, params) (\*[ResourceNewResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.resources%20%3E%20(model)%20ResourceNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/shares/{share\_id}/resources

##### [Trigger a resource metadata update in a share](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/resources/methods/update)

client.ResourceSharing.Resources.Update(ctx, shareID, shareResourceID, params) (\*[ResourceUpdateResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.resources%20%3E%20(model)%20ResourceUpdateResponse%20%3E%20(schema)>), error)

PUT/accounts/{account\_id}/shares/{share\_id}/resources/{share\_resource\_id}

##### [Trigger a resource deletion from a share](https://developers.cloudflare.com/api/go/resources/resource_sharing/subresources/resources/methods/delete)

client.ResourceSharing.Resources.Delete(ctx, shareID, shareResourceID, body) (\*[ResourceDeleteResponse](<https://developers.cloudflare.com/api/go/resources/resource_sharing#(resource)%20resource_sharing.resources%20%3E%20(model)%20ResourceDeleteResponse%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/shares/{share\_id}/resources/{share\_resource\_id}