Update a change set from its base
Merges its base branch’s head into its branch (a fast-forward when it has no commits of its own), so it holds what was merged there since it started; its baseCommit moves on to that head, and what it changes is counted from there. A draft, by its author only. A conflict writes nothing to Git: 409 refresh-conflict lists the files, and each module, manual, configuration or term among them is recorded as reported (GET /change-sets/{changeSetId}/refresh-conflicts). To resolve, make them what they should be in the editor (saving them), then update again with them in meta.keep, or name those to keep as they are in meta.keepMine (“Keep my version”): their working copies are committed first, as a save point, and where they conflict the change set’s version is kept. A subject in meta.keep whose keeping matters (its file conflicts, or its working copy is in the way) must have been saved since it was reported, against a base whose file is still the one reported: else 409 refresh-unresolved, and nothing is written. The reports are cleared once an update goes through. Audited as change-set.refresh, with the subjects resolved by editing (resolvedByEditing) and kept by choice (keptByChoice). Working copies whose file did not change move on to the new head. The merge commit gets an outbox row like a save point.
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/refresh' \ -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": { "refresh": { "updated": true, "head": "string", "fastForward": true, "savePoint": "string" } }}