Create Share Permissions for a Feed
Creates an access permission on the specified feed.
Authorizations: Administrator
Requests
POST /apis/sections/:sectionId/shares { |
Note
Either id
or name
must be present. If both are provided, id
is used. See User Resources and Group Resources.
Response
Success
{ |
Error
Code | Payload | Description |
---|---|---|
400 | {"code":"010001", "name":"InputValidation", | Supplied data was insufficient or incorrect. |
403 | {"code": "030003", "name":"CannotShare", | 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. |
404 | {"code":"040002", "name":"AssetNotFound", | Video with UUID Id not found. |
404 | {"code":"040004", "name":"UserNotFound", | User with provided id or name was not found. |
404 | {"code":"040005", "name":"GroupNotFound", | Group with provided id or name was not found. |
404 | {"code":"040025", "name":"SharePermissionNotFound", | The access permission to share with was not found. |
409 | {"code":"060001", "name":"UserHasNoRoles", | Make sure a role is assigned to the user or to at least one of the user's groups. |
409 | {"code":"060002", "name":"GroupHasNoRoles", | Make sure a role is assigned to the group. |