Creates sharing permissions for a collection with specified users. Requires user authentication and collection sharing authorization.
curl --request POST \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/share-collections \
--header 'Content-Type: application/json' \
--data '{
"actions": [
"<string>"
],
"collectionIds": [
[
127
]
],
"shareTo": [
[
127
]
],
"shareToEmails": [
"<string>"
]
}'
{
"code": "<string>",
"data": {
"existingUsers": [
{
"createdAt": "2023-11-07T05:31:56Z",
"displayName": "<string>",
"etag": "<string>",
"id": "<string>",
"lifecycleState": "<string>",
"modifiedAt": "2023-11-07T05:31:56Z",
"pictureUrl": "<string>",
"potentialScore": -1,
"primaryEmail": "<string>",
"version": -1
}
],
"newUsers": [
{
"grants": [
{
"action": "<string>",
"collectionId": [
127
]
}
],
"inviteeEmail": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"issuedByDisplayName": "<string>",
"issuedByUserId": [
127
],
"organizationId": [
127
],
"publicToken": "<string>",
"tenantId": [
127
],
"token": [
127
]
}
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}
Success response
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://production-storytell-ai-platfor-cds2.encr.app/v1/share-collections \
--header 'Content-Type: application/json' \
--data '{
"actions": [
"<string>"
],
"collectionIds": [
[
127
]
],
"shareTo": [
[
127
]
],
"shareToEmails": [
"<string>"
]
}'
{
"code": "<string>",
"data": {
"existingUsers": [
{
"createdAt": "2023-11-07T05:31:56Z",
"displayName": "<string>",
"etag": "<string>",
"id": "<string>",
"lifecycleState": "<string>",
"modifiedAt": "2023-11-07T05:31:56Z",
"pictureUrl": "<string>",
"potentialScore": -1,
"primaryEmail": "<string>",
"version": -1
}
],
"newUsers": [
{
"grants": [
{
"action": "<string>",
"collectionId": [
127
]
}
],
"inviteeEmail": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"issuedByDisplayName": "<string>",
"issuedByUserId": [
127
],
"organizationId": [
127
],
"publicToken": "<string>",
"tenantId": [
127
],
"token": [
127
]
}
]
},
"details": {
"consumption": {
"units": 123
},
"operation": {
"duration": 123,
"operationId": "<string>"
}
},
"done": true,
"eventKey": "<string>",
"message": "<string>"
}