Commit working copies
A save point: commits the change set’s working copies (all, or subjects) and deletes (a deleted module’s translation record in its language with it) in one commit on its branch, each printed canonically, with the actor as author, then drops those working copies and records a change-set.commit audit event (and one <module|manual>.write or .delete per file). Only the change set’s author, while it is a draft, and only for subjects whose lock it holds; scope is checked again against the branch head, as for a save. Invalid content is refused (422, one error per problem). A page design still named by the configuration or a manual, as the commit leaves them, is not deleted (409 design-in-use, #554). A working copy holding exactly the committed file is dropped without a commit; when nothing changes, no commit is made (200). The client decides when (closing a module, submitting, every few minutes); the server has no timer. Needs the content.edit permission.
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
data?Nothing changed: no commit.
application/vnd.api+json- response
meta*curl -X POST 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/commits' \ -H 'Content-Type: application/vnd.api+json' \ -d '{}'{ "meta": { "commit": null, "head": "string", "unchanged": [ { "type": "module", "lang": "string", "moduleId": "string" } ] }}