Discard a template file’s working copy
Throws the working copy away; the committed file stays as it is. No lock needed. 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). 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.
uuidtemplateId*string^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100path*stringThe file’s path in the template’s folder (templates/<templateId>/<path>): names of letters, digits, _, - and . joined by /, none starting with ., at most 8 deep and 150 characters, ending in a text file’s extension (.typ, .yaml, .yml, .json, .toml, .csv, .txt, .xml, .svg, .bib). Any other path is 404, never a file outside the folder.
length <= 1000X-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).
Discarded.
curl -X DELETE 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/page-design-templates/house/files/working-copy?path=parts%2Fnotice.typ'