DocuSign Momentum 2018DocuSign Momentum 2018
{"api":"esign_rest","category":"reference"}

TemplateLocks Resource

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.

MethodDescription
get
GET /v2/accounts/{accountId}/templates/{templateId}/lock

Retrieves general information about the template lock.

If the call is made by the user who has the lock and the request has the same integrator key as original, then the X-DocuSign-Edit header field and additional lock information is included in the response. This allows users to recover a lost editing session token and the X-DocuSign-Edit header.

update
PUT /v2/accounts/{accountId}/templates/{templateId}/lock

Updates the lock duration time or update the lockedByApp property information for the specified template. The user and integrator key must match the user specified by the lockByUser property and integrator key information and the X-DocuSign-Edit header must be included or an error will be generated.

create
POST /v2/accounts/{accountId}/templates/{templateId}/lock

Locks the specified template, and sets the time until the lock expires, to prevent other users or recipients from accessing and changing the template.

Note: Users must have envelope locking capability enabled to use this function (the userSetting property canLockEnvelopes must be set to true for the user).

delete
DELETE /v2/accounts/{accountId}/templates/{templateId}/lock

Deletes the lock from the specified template. The X-DocuSign-Edit header must be included in the request.