List locks
Who holds which module or manual, for which change set; newest first. Only locks whose subject, as committed on its change set's branch, lies within the reader's content.read.draft scope are listed (and counted); a subject with nothing committed only for a reader of all of its language (a module) or manuals of every audience. Without content.read.draft, only the caller's own locks, within their content.read scope (authors always see their own work).
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.
filter[holder]?stringOnly locks held by this user (or service) ID.
1 <= length <= 200filter[changeSet]?stringOnly locks of this change set (its ID).
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidfilter[subject]?stringOnly the lock on this subject: module/<lang>/<moduleId>, manual/<manualId>, config or term/<termId>, e.g. module/en/battery-charging.
length <= 300page[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200X-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- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/locks'{ "data": [ { "type": "Lock", "id": "string", "attributes": { "subject": { "type": "module", "lang": "string", "moduleId": "string" }, "holder": { "kind": "user", "id": "string" }, "since": "2019-08-24T14:15:22Z" }, "relationships": { "changeSet": { "data": { "type": "ChangeSet", "id": "string" } } } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 } }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}