OpenFolia

What renaming a module would touch

GET
/change-sets/{changeSetId}/module-references/{moduleId}

What renaming the module would touch at the change set’s branch head: the languages it has a file in and every other module (per language) and manual whose module references, cross-references or entries name it, and every other module deprecated in favour of it (replacedBy), with those that have a working copy in the change set. Checked as the rename is (the author only, a draft only, one 403 when any of it lies outside the actor’s scope). 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
moduleId*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

The module’s languages and the files naming it.

application/vnd.api+json
  1. response
data*

id is the module’s ID.

Example Request
curl -X GET 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/module-references/battery-charging'
Example Response
{  "data": {    "type": "ModuleReferences",    "id": "string",    "attributes": {      "languages": [        "string"      ],      "references": [        {          "type": "module",          "lang": "string",          "moduleId": "string"        }      ],      "translations": [        {          "type": "module",          "lang": "string",          "moduleId": "string"        }      ]    },    "meta": {      "head": "string",      "workingCopies": [        {          "type": "module",          "lang": "string",          "moduleId": "string"        }      ]    }  }}