TemplateLocks Resource

The TemplateLocks resource provides methods that enable you to manage locks on an template.

To prevent users from changing a template while another user is modifying it, you can lock the template and set the time until the lock expires.

For example, you would use the following flow:

  1. Lock the template.
  2. Make changes to template.
  3. Delete the template lock and save the changes. If the template has a password, you must supply the password to save the changes.

Note: To use template locks, the user must have template locking capability enabled.

GET /restapi/v2.1/accounts/{accountId}/templates/{templateId}/lock

Gets template lock information.

PUT /restapi/v2.1/accounts/{accountId}/templates/{templateId}/lock

Updates a template lock.

POST /restapi/v2.1/accounts/{accountId}/templates/{templateId}/lock

Locks a template.

DELETE /restapi/v2.1/accounts/{accountId}/templates/{templateId}/lock

Deletes a template lock.

}} />