Skip to content

Assign Templates to Template Group

Assign one or more templates to a template group. This is a many-to-many assignment with all templates being assigned to all specified template groups, however all specified templates and template groups must belong to the specified organization.

Verb POST
Endpoint {base-url}/template-groups/assign/templates
Max Page Size N/A

Request body

{
  "routeFilter": {
    "templateIds": [7],
    "templateGroupIds": [1]
  }
}

Filters Honored

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

Response body

// 204 - No Content

On Error

HTTP Code Error Code Definition
403 DATA_ACCESS_VIOLATION One or more of the specified templates or template groups belong to an organization you do not have access to.
403 DATA_ACCESS_VIOLATION The specified templates and template group belong to different organizations.
404 MISSING_RECORD One or more of the specified templates or template groups does not exist.