Website Builder API
POST /services/websites/v1/websites/update/customization Auth

Update Website Customization

Request Body Required

FieldTypeRequiredDescriptionExample
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

Responses

500
200
404
422
401
403
429
Internal server error
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Successful response
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Resource not found
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Forbidden — insufficient permissions for this resource
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
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
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
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())
Response Example
{
    "error": false,
    "message": "string"
}

Try It
Request Body Required

Export