Create Share Permissions for a Feed
Creates an access permission on the specified feed.
Authorizations: Administrator
Requests
POST /apis/sections/:sectionId/shares
{
"id": "a78758cc-48da-47ad-bc6e-6c8564badb7e",
"shareType": "USER",
"permission": "EDIT",
"name": "viewer"
}
Note
Either id
or name
must be present. If both are provided, id
is used. See User Resources and Group Resources.
Response
Success
{
"data": {
"id": "a78758cc-48da-47ad-bc6e-6c8564badb7e",
"shareType": "USER",
"permission": "EDIT",
"name": "viewer",
"email": null
}
}
Error
Code | Payload | Description |
---|---|---|
|
| Supplied data was insufficient or incorrect. |
|
| User is not allowed to share to this permission ID. Ex.: User has the WATCH access permission, but is trying to share to the OWN level. |
|
| Video with UUID Id not found. |
|
| User with provided id or name was not found. |
|
| Group with provided id or name was not found. |
|
| The access permission to share with was not found. |
|
| Make sure a role is assigned to the user or to at least one of the user's groups. |
|
| Make sure a role is assigned to the group. |