Merge an approved change set into its base
Merges exactly its review head into its base branch (baseRef) with a merge commit carrying one Approved-by trailer per approver, then marks it merged, releases its locks and records change-set.merge. By a publisher whose release.publish scope covers everything it changes. Each approval counts only while its approver still holds the role and scope it took. A conflict changes nothing: the change set stays approved but unmerged; nor does a merge that would leave content invalid under the configuration it keeps (422 config-in-use).
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/merge' \ -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": { "merge": { "commit": "string", "fastForward": true } }}