Share template

This endpoint allows an owner of a template to share it with other users (as a viewer or sender).

Note: A template can be shared only once with the same user. The user will receive an email notification about the shared template.

post/v2/templates/{template_id}/roles

Request

Path parameters

ID of the template.

Request body

rolestring required

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

emailstring required

The email address of the user you want to share the template with.

Example request

{
  "role": "sender",
  "email": "user@mail.com"
}

Response

Success.

idstring

ID of the user with whom the template has been shared.

rolestring

Role of the user. Can be sender or viewer.

emailstring

Email of the user with whom the template has been shared.

Changes

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