Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

Update a template

Replace the body of an existing template.

PUT/themes/{theme_id}/templates/{id}
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
theme_idstringrequired
Theme ID
idstringrequired
Template ID or filename slug
Request body
requiredapplication/json
bodystring
New template source code
Responses
200Template updated
_linksHalLinks
idstring
file_namestring
pathstring
bodystring
Full template source code
is_sectionboolean
schemaobject
Present only when `is_section` is true — the section's configurable schema.
parent_commitstring | null
updated_onstring<date-time>
401Unauthorized
403Access denied
404Template not found
Request
curl -X PUT "https://api.onbolder.com/v2/themes/abc123/templates/layout.html" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "body": "<html><head><title>{{ shop.name }}</title></head><body>{{ content }}</body></html>"
}'
Response
{
  "_links": {
    "property1": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    },
    "property2": {
      "href": "string",
      "templated": true,
      "method": "get",
      "title": "string",
      "type": "string"
    }
  },
  "id": "string",
  "file_name": "layout.html",
  "path": "string",
  "body": "string",
  "is_section": true,
  "schema": {},
  "parent_commit": "string",
  "updated_on": "2019-08-24T14:15:22Z"
}