Locks

A lock is a resource that enables only the user who created the lock to edit or delete the resource indicated by the lock's data.

Remarks

The locked object is indicated by the id and type fields of the lock. The user field indicates who can edit or delete the locked resource.

If there is no chance that another user might edit or delete a resource, you do not need to create a lock. 

If other users might attempt to edit the resource, handle locking explicitly in your code:

  1. POST a request for a lock. If the resource is already locked, the lock operation fails.
  2. POST an update request for the locked resource.
  3. The locked resource is updated.
  4. Send a DELETE request for the lock.

DELETE any lock you POST, even if you do not update the resource.

URIs

/qcbin/api/domains/default/projects/REST/locks

/qcbin/api/domains/default/projects/REST/locks/{ID}

Limitations

Header Parameters

Example

See Also