OpenFolia

Break all locks of a change set or a holder

POST
/locks/break

An admin removes every lock of one change set (meta.changeSet) or one holder (meta.holder: exactly one of the two), with a required comment, in one transaction: a holder who left, or lost content.edit, cannot release. Each lock gets its own lock.break audit event (the comment, the holder, data.bulk). Answers with meta.count, which may be 0. A holder holds at most 1,000 locks, so a call breaks at most that many. A lock taken after the call is a new one and stays. 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.

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

application/vnd.api+json
  1. response
meta*
Example Request
curl -X POST 'http://localhost:3000/locks/break' \  -H 'Content-Type: application/vnd.api+json' \  -d '{  "meta": {    "comment": "string"  }}'
Example Response
{  "meta": {    "count": 0  }}