Create Share Permissions for a Session
Creates a share permission for a session (i.e., the specified user or group is given access to the session).
Authorizations: Sessions - ACCESS
Requests
POST /apis/sessions/:sessionId/shares { |
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 permission but is trying to share to the OWN level. |
404 | {"code":"040002", "name":"SessionNotFound", | Session with UUID sessionId not found. |
404 | {"code":"040004", "name":"UserNotFound", | The user with provided id or username was not found |
404 | {"code":"040005", "name":"GroupNotFound", | The group with provided id or groupname was not found. |
404 | {"code":"040025", "name":"SharePermissionNotFound", | The specified access permission 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. |
500 | {"code":"070008", "name":"FindUser", | An internal error occurred while searching for user |
500 | {"code":"070009", "name":"FindGroup", | An internal error occurred while searching for group. |