Update role for template

This endpoint allows API users to change a user's role for a shared template.

Note: Only the template owner can make role changes.

put/v2/templates/{template_id}/roles/{user_id}

Request

Path parameters

ID of the template.

ID of the user.

Request body

rolestring required

The role assigned to the user. Allowed values are sender and viewer.

Example request

{
  "role": "viewer"
}

Response

Successful response.

idstring

ID of the user.

rolestring

New role of the user for the template: viewer or sender.

emailstring

Email address of the user.

Changes

No recorded changes to this operation across all 1 revision of this API.