List a page design template’s files
The regular files of the template’s folder (templates/<templateId>/) at ?ref=, by path (#396): its size, and whether the template screen edits it as text. With workingCopy=true (the change set’s author), files its working copies hold stand in for theirs (meta.draft), and files only a working copy holds are listed too. Only the listing is read. Templates carry no audience: every reader of the ref reads them.
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.
templateId*stringThe template’s folder name (templates/<templateId>/).
^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100workingCopy?stringFor authors (left out of the delivery document): true reads the change set’s working copies (what its editor autosaved, not committed yet) in place of their files, modules and manuals alike; module references resolve to their own working copies where there are any; an image uploaded into the change set links to GET /change-sets/{changeSetId}/assets/{hash} in an HTML page, and the PDF shows it. Needs ref to name the change set’s branch (change-sets/<id>; else 400 invalid-parameter) and only for its author: 403 for anyone else who may read drafts, 404 for anyone who may not. private, no-cache, without the commit’s ETag. Default: false.
"false""true""false"page[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200ref?stringBranch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.
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- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/page-design-templates/house/files'{ "data": [ { "type": "PageDesignTemplateFile", "id": "string", "attributes": { "path": "string", "size": 0, "text": true }, "meta": { "draft": true, "committed": true } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 }, "folder": { "files": 0, "bytes": 0, "maxFiles": -9007199254740991, "maxBytes": -9007199254740991, "pastCaps": true } }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}