Break someone’s lock
POST
An admin removes a lock held by someone else, with a required comment, recorded with a lock.break audit event naming the holder. Needs the admin.roles permission.
bearerheader
AuthorizationBearer <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.
Format
uuidX-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).
application/vnd.api+json- body
meta*Broken.
curl -X POST 'http://localhost:3000/locks/497f6eca-6276-4993-bfeb-53cbbbba6f08/break' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "meta": { "comment": "string" }}'Example Response
Empty