Tenant-specific settings
You can retrieve or update settings for a specific tenant only if you have the necessary permissions and are an Administrator or Owner.
Note
Get the default locale setting
Use this method to retrieve the default locale. In this example, the default locale is sv-SE.
RequestResponse
curl --location --request GET '<BASE_URL>/api/content/v1/settings' \
--header 'Accept: text/plain' \
--header 'Authorization: <BEARER_TOKEN>'
RequestResponse
{
"localization": {
"defaultLocale": "sv-SE"
}
}Update the default locale setting
Use this method to update a setting. In this example, the default locale is updated to be en-US.
RequestResponse
curl --location --request PATCH'<BASE_URL>/api/content/v1/settings' \
--header 'Content-Type: application/json' \
--header 'Authorization: <BEARER_TOKEN>' \
--data '{"localization":
{"defaultLocale":"en-US"}
}'
In this example, the default locale is set to null, making the locale no longer the default locale.
RequestResponse
curl --location --request PATCH'<BASE_URL>/api/content/v1/settings' \
--header 'Content-Type: application/json' \
--header 'Authorization: <BEARER_TOKEN>' \
--data '{"localization":
{"defaultLocale": null}
}'