OpenFolia

Break someone’s lock

POST
/locks/{lockId}/break

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.

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

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

Request Body

application/vnd.api+json
  1. body
meta*

Response Body

Broken.

Example Request
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