Skip to main content
Change who a template is shared with

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Body

application/json
ids
string[]
required

Identifiers of the templates whose sharing is being changed.

Required array length: 1 - 10000 elements
Minimum string length: 1
Example:
allowEdit
boolean

Whether the recipients may change the templates rather than only use them. It applies to every recipient of a template at once, and only the caller's own editing rights let it be changed at all. Leave it out to keep each template's current setting.

Example:

true

groupsToAdd
string[]

Groups to add to the recipients, sharing the templates with everyone in them. Every group has to exist, otherwise nothing is shared.

Minimum string length: 1
groupsToRemove
string[]

Groups to take off the recipients. Their members lose access unless they hold it some other way.

Minimum string length: 1
message
string

Text to pass on to the newly added users in that notification. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

notify
boolean
default:false

Whether the users who newly gained access are told about it. Nobody who could already reach the template is notified again.

Example:

false

removeAll
boolean
default:false

Clears the recipients of the listed templates completely, users and groups alike, which takes precedence over the add and remove lists in the same request.

Example:

false

usersToAdd
string[]

Users to add to the recipients. Every one of them has to be an existing active user, otherwise nothing is shared.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$
usersToRemove
string[]

Users to take off the recipients, losing their access to the listed templates.

Minimum string length: 1
Pattern: ^[A-Za-z0-9.@_+-]+$

Response

Reports the outcome for each template; individual templates may still have failed, so read the per-item results.

count
integer
required

Number of items the request processed, successful and failed alike.

Example:

22

errors
boolean
required

Whether any item failed. Check it before treating the call as a clean success - the request itself answers 200 even when individual items did not go through.

Example:

false

items
object[]

Per-item outcomes. Endpoints report the failed items here; some also list the successful ones, so read each item's own status rather than inferring it from being listed.