Nimbu Developer Docs
ReferenceThemes

List all files of a theme

GET
/themes/{theme_id}/files

Lightweight listing of every layout, template, snippet and asset (no source code). locked is true when the file was changed live in the editor since the last push; a push without force would return 409 for it.

Authorization

AuthorizationBearer <token>

Personal access token tied to a user account. Requires the X-Nimbu-Site header to scope requests.

In: header

X-Nimbu-Site<token>

Identifier of the site context when authenticating with a personal access token.

In: header

Path Parameters

theme_id*string

Theme slug or ID

Query Parameters

type?string

Only list files of this type. Any other value returns an empty list.

Value in"layout" | "template" | "snippet" | "asset"

Header Parameters

X-Nimbu-Site*string

Site identifier

Response Body

application/json

curl -X GET "https://example.com/themes/string/files" \  -H "X-Nimbu-Site: string"
{
  "theme": {
    "id": "string",
    "name": "string"
  },
  "count": 0,
  "files": [
    {
      "type": "layout",
      "name": "string",
      "path": "string",
      "updated_at": "2019-08-24T14:15:22Z",
      "locked": true
    }
  ]
}
Empty