/services/websites/v1/websites/update/customization
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
website_id |
string | Yes | ID of the website whose customization to update | |
section |
string|null | No | Customization section name, used to select the correct success/error translation message | |
colors |
array|null | No | Color definitions array, each key-value pair saved as a meta (color_ prefix stripped) | |
textsizes |
array|null | No | Desktop body text size definitions, each saved as a meta | |
headingsizes |
array|null | No | Desktop heading size definitions, each saved as a meta | |
tabletheadingsizes |
array|null | No | Tablet heading size definitions, each saved as a meta | |
mobileheadingsizes |
array|null | No | Mobile heading size definitions, each saved as a meta | |
tablettextsizes |
array|null | No | Tablet body text size definitions, each saved as a meta | |
mobiletextsizes |
array|null | No | Mobile body text size definitions, each saved as a meta | |
fonts |
array|null | No | Font family definitions, each saved as a meta | |
button |
array|null | No | Button style definitions (e.g. border-radius, padding), each saved as a meta | |
accordion |
array|null | No | Accordion style definitions, each saved as a meta | |
custom_css |
string|null | No | Custom CSS code saved as website meta | |
header_code |
string|null | No | Custom HTML injected into the <head> section, saved as website meta | |
footer_code |
string|null | No | Custom HTML injected before closing </body> tag, saved as website meta | |
disable_responsive |
boolean|null | No | Whether to disable mobile responsive layout, saved as website meta |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/websites/v1/websites/update/customization" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"website_id": "string",
"section": "string",
"colors": "string",
"textsizes": "string",
"headingsizes": "string",
"tabletheadingsizes": "string",
"mobileheadingsizes": "string",
"tablettextsizes": "string",
"mobiletextsizes": "string",
"fonts": "string",
"button": "string",
"accordion": "string",
"custom_css": "string",
"header_code": "string",
"footer_code": "string",
"disable_responsive": "string"
}'
fetch('https://api.wemasy.nl/api/services/websites/v1/websites/update/customization', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"website_id": "string",
"section": "string",
"colors": "string",
"textsizes": "string",
"headingsizes": "string",
"tabletheadingsizes": "string",
"mobileheadingsizes": "string",
"tablettextsizes": "string",
"mobiletextsizes": "string",
"fonts": "string",
"button": "string",
"accordion": "string",
"custom_css": "string",
"header_code": "string",
"footer_code": "string",
"disable_responsive": "string"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/websites/v1/websites/update/customization', {
"website_id": "string",
"section": "string",
"colors": "string",
"textsizes": "string",
"headingsizes": "string",
"tabletheadingsizes": "string",
"mobileheadingsizes": "string",
"tablettextsizes": "string",
"mobiletextsizes": "string",
"fonts": "string",
"button": "string",
"accordion": "string",
"custom_css": "string",
"header_code": "string",
"footer_code": "string",
"disable_responsive": "string"
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"website_id": "string",
"section": "string",
"colors": "string",
"textsizes": "string",
"headingsizes": "string",
"tabletheadingsizes": "string",
"mobileheadingsizes": "string",
"tablettextsizes": "string",
"mobiletextsizes": "string",
"fonts": "string",
"button": "string",
"accordion": "string",
"custom_css": "string",
"header_code": "string",
"footer_code": "string",
"disable_responsive": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/websites/v1/websites/update/customization", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string"
}