How to apply settings
1 min
To apply the setting you need to send a PUT request to such address-
Tenant_link/v2-core/tenant
Where the tenant link is a link of the tenant on which you want to change settings
Headers should be -
content-type - application/json
authorization - Bearer (You need a valid bearer token, just copy it from any other request)
The body should look like that -
{
"theme": {
"variables": {
"NEW_DESIGN__primaryColor-6": "#0074ff"
}
}
}
In the variables array, you should put colors for the new design, here you can check what each variable does.
Most variables are in HEX, but those that have RGB in the name use RGB.
Keep in mind that if you want to use multiple variables, you need to use them all in one request, pushing only one variable will reset everything else to default.
Here is an example of curl -
curl --location --request PUT 'https://volodymyro.hyper1.net/v2-core/tenant' \
--header 'content-type: application/json' \
--header 'authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Im05MXk3M2ZqMzcifQ.eyJ0ZW5hbnRJZCI6InZvbG9keW15cm8iLCJzdWIiOiJvVEtLSXdaZHJWVU9IdU5DRHVXclgiLCJlbnRpdHlEb21haW4iOm51bGwsImdyb3VwcyI6WyJvd25lcklzX19vVEtLSXdaZHJWVU9IdU5DRHVXclgiLCJoeXBlclVzZXJzIiwiaHlwZXJBZG1pbnMiLCJoeXBlclBsYXRmb3JtQWRtaW5zIl0sInRlbmFudFBlcm1pc3Npb25zIjpbIlBPUlRBTCIsIkNNUyIsIldPUktGTE9XUyIsIkhZUEVSX0NSRURFTlRJQUxTIiwiQlVMS19FRElUIiwiUFJPQ0VTU19DQU5DRUxMQVRJT04iLCJIWVBFUl9CSSIsIkFQUF9BRE1JTiIsIkhZUEVSX0ZPUk1TIiwiQ01TX0VYUE9SVCIsIklOVEVHUkFUSU9OIiwiTUFJTF9URU1QTEFURVMiLCJ6Qkp4dGJZd0RoTkduQlNWdHRSbU4iLCJQQVlNRU5UX1NVQlNDUklQVElPTiIsIlBMQVRGT1JNX0FETUlOIl0sInRlbmFudERlZmF1bHRMYW5ndWFnZSI6ImVuIiwiYXVkIjpbIkhZUEVSIiwiZWNvbW0iXSwiaWF0IjoxNjYyMDM5Njg3LCJ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