Update template
Updates the body of an existing theme template. Requires admin scope.
PUT
/themes/{theme_id}/templates/{id}Authorization
AuthorizationBearer token (JWT) · headerrequiredOAuth 2.0 Bearer token. Obtain via `POST https://auth.onbolder.com/oauth/token`.
Scopes:
adminPath parameters
theme_idstringrequiredidstringrequiredTemplate ID
Request body
requiredapplication/jsonfile_namestringrequiredFile name including extension, e.g. `about.html`
bodystringrequiredTemplate content
Responses
200Template updated
idstringfile_namestringnamestringcontent_typestringAllowed:
htmlcssjsbodystringupdated_onstring<date-time>_linksobjectRequest
curl -X PUT "https://api.onbolder.com/v1/themes/string/templates/string" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"file_name": "string",
"body": "string"
}'const response = await fetch("https://api.onbolder.com/v1/themes/string/templates/string", {
method: "PUT",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"file_name": "string",
"body": "string"
})
});import requests
response = requests.put(
"https://api.onbolder.com/v1/themes/string/templates/string",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"file_name": "string",
"body": "string"
},
)Response
{
"id": "string",
"file_name": "string",
"name": "string",
"content_type": "html",
"body": "string",
"updated_on": "2019-08-24T14:15:22Z",
"_links": {}
}