Read a manual’s working copy
The change set’s working copy, else the file committed on its branch (version 0, meta.saved false), with its validation issues. Only the change set’s author works on its working copies (403 for anyone else who holds content.read.draft; for anyone else another author’s change set is 404, exactly like a missing one). What lies outside the reader’s scope (their content.read.draft roles; for an author without that permission, their content.read roles) is not found. Reads with ?ref= on the branch keep showing the committed file. Needs the content.read 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.
uuidmanualId*string^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100X-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- response
data*id is <changeSetId>/module/<lang>/<moduleId>, <changeSetId>/manual/<manualId>, <changeSetId>/config, <changeSetId>/term/<termId>, <changeSetId>/design/<designId> or <changeSetId>/template/<templateId>/<path>.
curl -X GET 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/manuals/operating/working-copy'{ "data": { "type": "WorkingCopy", "id": "string", "attributes": { "subject": { "type": "module", "lang": "string", "moduleId": "string" }, "content": { "schemaVersion": 1, "id": "string", "kind": "derived", "title": "string", "audience": "string", "deprecated": { "reason": "string", "replacedBy": "string" }, "glossary": true, "design": "string", "coverImage": { "default": { "asset": "string", "alt": "string" }, "variants": [] }, "translations": { "property1": { "sourceCommit": "string", "blocks": { "property1": "string", "property2": "string" } }, "property2": { "sourceCommit": "string", "blocks": { "property1": "string", "property2": "string" } } }, "variants": [ { "property1": "string", "property2": "string" } ], "attributes": {}, "rule": { "source": "string", "moduleTypes": [ "string" ], "exclude": [], "front": [], "back": [], "notices": { "groupBy": "module", "levels": [ "danger" ] } }, "entries": [ { "module": "string", "when": { "op": "all", "of": [ null, null ] } } ] }, "version": 0, "baseCommit": "string", "updatedBy": { "kind": "user", "id": "string" }, "updatedAt": "2019-08-24T14:15:22Z" }, "relationships": { "changeSet": { "data": { "type": "ChangeSet", "id": "string" } } }, "meta": { "saved": true, "issues": [ { "severity": "error", "code": "string", "message": "string", "at": "string" } ] } }}