Lock a document for editing and deletion
post/locks/documents
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.
Name | Type | Required | Description |
---|---|---|---|
id | string | true | The ID of the document. |
type | string | true | The entity type name of the document. |
Status | Meaning | Description | ||
---|---|---|---|---|
201 | Created | A lock was placed on the document. There is no body in the response. | Schema | |
400 | Bad Request | The request was invalid. | Schema | |
404 | Not Found | The document was not found. | Schema | |
409 | Conflict | Unable to place a lock on the document because another user has already locked it. | Schema |