Updates a site template.
Note:
- You can specify up to three namespaces in a site template.
- You can set an explicit order for the namespaces assigned to a site template.
PUT https://api-<BlueCat.edge.url>/v1/api/siteTemplates/{siteTemplateId}
Authorization: Bearer authorization token
Content-type: application/JSON
{
"id": "siteTemplateId1",
"name": "Default",
"associatedNamespaces": [{"id": "namespaceId1"}, {"id": "namespaceId2"}, ...]
}
The id
is a unique identifier (UUID) for the site template.
The name
is the name of the site template.
associatedNamespaces
contain the unique identifiers (UUID) of the
namespaces assigned to the template.
Note: You can use /v1/siteTemplates (GET) to
obtain the UUID for the site template and namespaces.
Successful response
204 NO CONTENT
Response on unsuccessful authorization
401 Unauthorized
Content-Type: application/JSON
{"code": "UNAUTHORIZED", "brief": "You are not authorized to perform this action"}
Possible error codes
- NOT_FOUND - The given site template id does not exist.
- FORBIDDEN - Cannot rename the default site template
- INTERNAL SERVER ERROR - Unexpected error