Release a lock
Removes the lock, recorded with a lock.release audit event. Only its holder may release it (an admin may break it): 403 for anyone else who may read it, and 404, exactly like a missing lock, for anyone who may not (no content.read.draft, or the lock outside its scope). With ifUnchanged=true, only while the lock’s change set has no changes to its subject (no working copy of it, no commit changing it since its base): else 409 has-changes and the lock stays. The editor frees a module so from another of the holder’s change sets. Needs the content.edit permission.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
lockId*stringThe lock’s ID (a UUID). One that names no lock, malformed or not, is 404.
uuidifUnchanged?stringtrue: release only while the lock’s change set has no changes to its subject (409 has-changes otherwise). Default false.
"true""false"X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
Released.
curl -X DELETE 'http://localhost:3000/locks/497f6eca-6276-4993-bfeb-53cbbbba6f08'