Start a maintenance line
Starts a line for fixing an older product revision: creates the branch named by CCMS_MAINTENANCE_BRANCH (default maintenance/{product}/{revision}, the base release’s) at exactly the release’s commit, then records the line and a maintenance-line.start audit event. Change sets start on it with maintenanceLine (POST /change-sets) and merge into its branch; releases are cut from its head with maintenanceLine (POST /releases). One line per release. Needs the release.publish permission in a role whose scope covers the release’s product in every language, module type and audience, and content.read (to read openfolia.yaml at the release’s tag).
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.
X-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*application/vnd.api+json- response
data*curl -X POST 'http://localhost:3000/maintenance-lines' \ -H 'Content-Type: application/vnd.api+json' \ -d '{ "data": { "type": "MaintenanceLine", "relationships": { "baseRelease": { "data": { "type": "Release", "id": "string" } } } }}'{ "data": { "type": "MaintenanceLine", "id": "string", "attributes": { "product": "string", "revision": "string", "branch": "string", "baseCommit": "string", "state": "open", "createdBy": { "kind": "user", "id": "string" }, "createdAt": "2019-08-24T14:15:22Z", "closedBy": { "kind": "user", "id": "string" }, "closedAt": "2019-08-24T14:15:22Z" }, "relationships": { "baseRelease": { "data": { "type": "Release", "id": "string" } } }, "meta": { "head": "string" } }}