Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > White-label settings

Update white-label settings

Body parameters

type string Required

Must be exactly "white_label_settings".

attributes.custom_i18n_messages_template_url null, string Optional

URL of custom I18n messages. The :locale placeholder represents the current DatoCMS UI locale.

Example: "https://my-app-messages.netlify.app/:locale/message.json"

Returns

Returns a resource object of type white_label_settings.

Examples

PUT https://site-api.datocms.com/white-label-settings HTTP/1.1
Authorization: Bearer YOUR-API-TOKEN
Accept: application/json
X-Api-Version: 3
Content-Type: application/vnd.api+json
{
"data": {
"type": "white_label_settings"
}
}
Terminal window
curl -g 'https://site-api.datocms.com/white-label-settings' \
-X PUT \
-H "Authorization: Bearer YOUR-API-TOKEN" \
-H "Accept: application/json" \
-H "X-Api-Version: 3" \
-H "Content-Type: application/vnd.api+json" \
--data-binary '{"data":{"type":"white_label_settings"}}'
await fetch("https://site-api.datocms.com/white-label-settings", {
method: "PUT",
headers: {
Authorization: "Bearer YOUR-API-TOKEN",
Accept: "application/json",
"X-Api-Version": "3",
"Content-Type": "application/vnd.api+json",
},
body: JSON.stringify({ data: { type: "white_label_settings" } }),
});
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: cache-control: max-age=0, private, must-revalidate
X-RateLimit-Limit: 30
X-RateLimit-Remaining: 28
{
"data": {
"type": "white_label_settings",
"id": "312",
"attributes": {
"custom_i18n_messages_template_url": "https://my-app-messages.netlify.app/:locale/message.json"
}
}
}