OpenFolia

Discard a term’s working copy

DELETE
/change-sets/{changeSetId}/terms/{termId}/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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

changeSetId*string

The change set’s ID (a UUID). One that names no change set, malformed or not, is 404.

Formatuuid
termId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 100

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

Discarded.

Example Request
curl -X DELETE 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/terms/charger/working-copy'
Example Response
Empty