Carry a fix forward to main
For a change set merged into a maintenance line: starts a new draft change set on main and applies the same change there, three-way (its own diff only, never what the line held before it). Each module, manual, configuration or term it changes is locked for the new change set, and what applied cleanly is committed there as a save point; what did not (a conflict, a lock another change set holds, a subject outside the actor’s scope on main, a file that is no subject) is left as it is on main and listed in meta.carryForward.conflicts, with the blocks to apply by hand where it can tell. Never automatic. Records change-set.create (with carriedForwardFrom) on the new change set and change-set.carry-forward on this one, with an outbox row naming both. By its author, or an editor whose content.edit scope covers everything it changes.
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/carry-forward' \ -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": { "carryForward": { "from": "string", "commit": "string", "applied": [ { "type": "module", "lang": "string", "moduleId": "string" } ], "conflicts": [ { "path": "string", "subject": { "type": "module", "lang": "string", "moduleId": "string" }, "kinds": [ "string" ], "blockIds": [ "string" ] } ], "total": -9007199254740991 } }}