PATCH {{baseUrl}}/collections/{{collectionId}}/roles
Updates the roles of users, groups, or teams in a collection. On success, this returns a Include the following values in the Note:204 No Content
response.roles
array of objects:
op
— (Required) A string value that contains the operation to perform. Accepts the update
value.path
— (Required) A string value that contains the resource to perform the action on. Accepts the /user
, /group
, or /team
value.value
— (Required) A list of objects that contain the following values:
id
— (Required) An integer value that contains the user, group, or team ID.role
— (Required) A string value that contains the role's type:
EDITOR
— Can edit collections directly.VIEWER
— Can view, fork, and export collections.
EDITOR
[role] in the collection can use this endpoint.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status
ENDPOINTS