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
{
"shareType": "USER",
"permission": "WATCH",
"name": "InfoDev",
"email": null
}
Response
Success
{
"data": {
"id": "bbc1cbf3-fbee-48dd-8639-920487b6186f",
"shareType": "USER",
"permission": "WATCH",
"name": "creator",
"email": null
}
}
Error
Code | Payload | Description |
---|---|---|
400
|
| Supplied data was insufficient or incorrect. |
403
|
| 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
|
| Session with UUID sessionId not found. |
404
|
| The user with provided id or username was not found |
404
|
| The group with provided id or groupname was not found. |
404
|
| The specified access permission was not found. |
409
|
| Make sure a role is assigned to the user or to at least one of the user's groups. |
409
|
| Make sure a role is assigned to the group. |
500
|
| An internal error occurred while searching for user |
500
|
| An internal error occurred while searching for group. |