Skip to content
Start here

Resource Sharing

List account shares
client.ResourceSharing.List(ctx, params) (*V4PagePaginationArray[ResourceSharingListResponse], error)
GET/accounts/{account_id}/shares
Get account share by ID
client.ResourceSharing.Get(ctx, shareID, params) (*ResourceSharingGetResponse, error)
GET/accounts/{account_id}/shares/{share_id}
Create a new share
client.ResourceSharing.New(ctx, params) (*ResourceSharingNewResponse, error)
POST/accounts/{account_id}/shares
Update a share
client.ResourceSharing.Update(ctx, shareID, params) (*ResourceSharingUpdateResponse, error)
PUT/accounts/{account_id}/shares/{share_id}
Delete a share
client.ResourceSharing.Delete(ctx, shareID, body) (*ResourceSharingDeleteResponse, error)
DELETE/accounts/{account_id}/shares/{share_id}

Resource SharingRecipients

List share recipients by share ID
client.ResourceSharing.Recipients.List(ctx, shareID, params) (*V4PagePaginationArray[RecipientListResponse], error)
GET/accounts/{account_id}/shares/{share_id}/recipients
Get share recipient by ID
client.ResourceSharing.Recipients.Get(ctx, shareID, recipientID, params) (*RecipientGetResponse, error)
GET/accounts/{account_id}/shares/{share_id}/recipients/{recipient_id}
Create a new share recipient
client.ResourceSharing.Recipients.New(ctx, shareID, params) (*RecipientNewResponse, error)
POST/accounts/{account_id}/shares/{share_id}/recipients
Delete a share recipient
client.ResourceSharing.Recipients.Delete(ctx, shareID, recipientID, body) (*RecipientDeleteResponse, error)
DELETE/accounts/{account_id}/shares/{share_id}/recipients/{recipient_id}

Resource SharingResources

List share resources by share ID
client.ResourceSharing.Resources.List(ctx, shareID, params) (*V4PagePaginationArray[ResourceListResponse], error)
GET/accounts/{account_id}/shares/{share_id}/resources
Get share resource by ID
client.ResourceSharing.Resources.Get(ctx, shareID, resourceID, query) (*ResourceGetResponse, error)
GET/accounts/{account_id}/shares/{share_id}/resources/{resource_id}
Create a new share resource
client.ResourceSharing.Resources.New(ctx, shareID, params) (*ResourceNewResponse, error)
POST/accounts/{account_id}/shares/{share_id}/resources
Update a share resource
client.ResourceSharing.Resources.Update(ctx, shareID, resourceID, params) (*ResourceUpdateResponse, error)
PUT/accounts/{account_id}/shares/{share_id}/resources/{resource_id}
Delete a share resource
client.ResourceSharing.Resources.Delete(ctx, shareID, resourceID, body) (*ResourceDeleteResponse, error)
DELETE/accounts/{account_id}/shares/{share_id}/resources/{resource_id}