Sign off a change set’s restricted module types
The extra approval restricted module types (restricted: true in the configuration) need: one sign-off per such type it changes whose changed modules all lie within the approver’s content.approve scope. Not by its author: whoever started it or wrote a commit it holds, the writers of what a carry-forward or a move onto a rewritten base carried into it included (403; 409 too-many-commits when its line is too long to read whole), unless the installation’s self-approval rule (GET /settings) is review-and-sign-off: then their scope is checked as anyone’s, and the approval, its audit event and meta.review carry self: true (selfApproved). Otherwise as approve. Audited as change-set.sign-off.
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.
changeSetId*stringThe change set’s ID (a UUID). One that names no change set, malformed or not, is 404.
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?application/vnd.api+json- response
data*meta*curl -X POST 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/sign-off' \ -H 'Content-Type: application/vnd.api+json' \ -d '{}'{ "data": { "type": "ChangeSet", "id": "string", "attributes": { "title": "string", "description": "string", "state": "draft", "author": { "kind": "user", "id": "string" }, "baseRef": "string", "baseCommit": "string", "branch": "string", "reviewHead": "string", "mergeCommit": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "meta": { "branchMissing": true, "behind": 0, "base": { "state": "current" }, "supersededBy": "string", "supersedes": "string" } }, "meta": { "review": { "required": [ "string" ], "granted": [ "string" ], "pending": [ "string" ], "approvals": [ { "requirement": "string", "approver": { "kind": "user", "id": "string" }, "head": "string", "self": true, "at": "2019-08-24T14:15:22Z" } ], "lapsed": [ { "requirement": "string", "approver": { "kind": "user", "id": "string" }, "head": "string", "self": true, "at": "2019-08-24T14:15:22Z" } ], "selfApproved": true, "selfApproval": "never", "yours": true } }}