Create Share Permissions for a Source
Requests
|
Parameters
Property | JSON Type | Property Type | Description |
|---|---|---|---|
id | UUID | Immutable | Group ID or user ID. Identifies the share entity. |
shareType | String | Required Immutable | Accepted values, GROUP or USER:
|
permission | String | Required | Permission level granted to the group or user. Accepted values: WATCH, EDIT, OWN, or <uuid> of admin-defined access permission. |
name | String | Optional | Group name or user name. |
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 |
|---|---|---|
|
| Supplied data was insufficient or incorrect. |
|
| Source with UUID |
|
| The user with provided |
|
| The group with provided |
|
| 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. |
|
| An internal error occurred while searching for user. |
|
| An internal error occurred while searching for group. |