Skip to navigation

TemplateLocks Resource

View as Markdown

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

You can lock the template, and set the time until the lock expires, to prevent users from accessing and changing the template.

Users must have envelope locking capability enabled to use these functions.

Methods supported

MethodDescription
createPOST /restapi/v2/accounts/{accountId}/templates/{templateId}/lock
Lock a template.
deleteDEL /restapi/v2/accounts/{accountId}/templates/{templateId}/lock
Deletes a template lock.
getGET /restapi/v2/accounts/{accountId}/templates/{templateId}/lock
Gets template lock information.
updatePUT /restapi/v2/accounts/{accountId}/templates/{templateId}/lock
Updates a template lock.

TemplateLocks properties

PropertyTypeDescription
errorDetailserrorDetailsThis object describes errors that occur. It is only valid for responses and ignored in requests.
lockDurationInSecondsstringSets the time, in seconds, until the lock expires when there is no activity on the envelope.

If no value is entered, then the default value of 300 seconds is used. The maximum value is 1,800 seconds.

The lock duration can be extended.
lockedByAppstringSpecifies the friendly name of the application that is locking the envelope.
lockedByUseruserInfoA complex type containing information about the user that has the Envelope or Template locked.
lockedUntilDateTimestringThe datetime until the envelope lock expires.
lockTokenstringA unique identifier provided to the owner of the envelope lock. Used to prove ownership of the lock.
lockTypestringThe type of envelope lock. Currently “edit” is the only supported type.
useScratchPadstringReserved for future use.

Indicates whether a scratchpad is used for editing information.