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 (4.1) User Resources and (4.1) 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 |
|
|
|
User with provided |
|
|
|
Group with provided |
|
|
|
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. |