Lock a document for editing and deletion

post/locks/documents
Internal-Use Only

Places a lock on a document prior to modifying or deleting the document. If another user has a lock on the object, the request fails. Be sure to delete the lock after editing the document. A document lock times out after two hours or when the session ends; whichever occurs first.

Request Samples

1

Response Samples

1{}

Query Parameters

NameTypeRequiredDescription
id
string
true

The ID of the document.

type
string
true

The entity type name of the document.

Request Body

No schema defined

Responses

StatusMeaningDescription
201CreatedA lock was placed on the document. There is no body in the response. Schema
400Bad RequestThe request was invalid. Schema
404Not FoundThe document was not found.Schema
409ConflictUnable to place a lock on the document because another user has already locked it.Schema