Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

Update theme settings

Updates the settings object for a theme. Requires admin scope.

PUT/themes/{id}
Authorization
AuthorizationBearer token (JWT) · headerrequired
OAuth 2.0 Bearer token. Obtain via `POST https://auth.onbolder.com/oauth/token`.
Scopes:admin
Path parameters
idstringrequired
Theme ID
Request body
requiredapplication/json
settingsobject
Theme settings key/value pairs (theme-specific)
Responses
200Theme updated
idstring
titlestring
productionboolean
settingsobject
updated_onstring<date-time>
_linksobject
_embeddedobject
Show properties
templatesTemplate[]
Show properties
Array of Template
idstring
file_namestring
namestring
content_typestring
Allowed:htmlcssjs
bodystring
updated_onstring<date-time>
_linksobject
assetsThemeAsset[]
Show properties
Array of ThemeAsset
idstring
file_namestring
content_typestring
file_sizeinteger
digeststring
updated_onstring<date-time>
_linksobject
Show properties
fileHalLink
Show properties
hrefstring
methodstring
titlestring
typestring
templatedboolean
Request
curl -X PUT "https://api.onbolder.com/v1/themes/string" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "settings": {}
}'
Response
{
  "id": "string",
  "title": "string",
  "production": true,
  "settings": {},
  "updated_on": "2019-08-24T14:15:22Z",
  "_links": {},
  "_embedded": {
    "templates": [
      {
        "id": "string",
        "file_name": "string",
        "name": "string",
        "content_type": "html",
        "body": "string",
        "updated_on": "2019-08-24T14:15:22Z",
        "_links": {}
      }
    ],
    "assets": [
      {
        "id": "string",
        "file_name": "string",
        "content_type": "string",
        "file_size": 0,
        "digest": "string",
        "updated_on": "2019-08-24T14:15:22Z",
        "_links": {
          "file": {
            "href": "string",
            "method": "string",
            "title": "string",
            "type": "string",
            "templated": true
          }
        }
      }
    ]
  }
}