Skip to content

Create Template Groups

Creates the specified template group(s).

Verb PUT
Endpoint {base-url}/template-groups/
Max Page Size N/A

Request body

{
  "body": [
    {
      "name": "Standard",
      "description": "Default template group for the organization",
      "organizationId": 1
    }
  ]
}

Note

All changes in this request are atomic. If any item fails, the entire batch is rolled back and no changes are made.

Returns

On Success

A list of id(s) representing the created template group(s).

Response body

[
  6
]

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified organizationId values belong to an organization you do not have access to.
422 VALIDATION_ERROR A required field is missing or invalid (e.g. name is required and must be 100 characters or fewer, description must be 200 characters or fewer, organizationId must be a positive integer).