OpenFolia

Release a lock

DELETE
/locks/{lockId}

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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

lockId*string

The lock’s ID (a UUID). One that names no lock, malformed or not, is 404.

Formatuuid

Query Parameters

ifUnchanged?string

true: release only while the lock’s change set has no changes to its subject (409 has-changes otherwise). Default false.

Value in"true""false"

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

Released.

Example Request
curl -X DELETE 'http://localhost:3000/locks/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty