curl -X PATCH https://api.neuraldraft.io/v1/brand \
-H "Authorization: Bearer ndsk_live_yourkey" \
-H "Content-Type: application/json" \
-d '{"colors":{"primary":{"hex":"#2A4A3C","name":"forest"}}}'await nd.brand.update({
colors: { primary: { hex: "#2A4A3C", name: "forest" } },
});
requests.patch(
"https://api.neuraldraft.io/v1/brand",
headers={"Authorization": f"Bearer {key}"},
json={"colors": {"primary": {"hex": "#2A4A3C", "name": "forest"}}},
)
<?php
$client->patch('brand', [
'headers' => ['Authorization' => 'Bearer '.$key],
'json' => ['colors' => ['primary' => ['hex' => '#2A4A3C', 'name' => 'forest']]],
]);
{
"voice": "warm, grounded, inviting; avoids hype",
"audience": "women 30-55 in greater London seeking stress relief",
"content_tone": "friendly_professional",
"content_goals": [
"drive_class_signups",
"build_email_list"
],
"preferred_topics": [
"breathwork",
"beginner_yoga",
"prenatal_yoga",
"mindfulness"
],
"colors": {
"primary": {
"hex": "#2A4A3C",
"name": "forest"
},
"secondary": {
"hex": "#E8DCC4",
"name": "linen"
}
},
"fonts": {
"heading": "Fraunces",
"body": "Inter"
},
"logo_url": "https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/logo.svg",
"description": "A boutique yoga studio in Richmond offering small-group classes."
}{
"type": "https://api.neuraldraft.io/errors/bad_request",
"title": "Bad request",
"status": 400,
"detail": "Request body could not be parsed.",
"code": "bad_request",
"instance": "req_2Nh4PqRsTuVw"
}{
"type": "https://api.neuraldraft.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "API key missing or invalid.",
"code": "unauthorized",
"instance": "req_2Nh4PqRsTuVw"
}{
"type": "https://api.neuraldraft.io/errors/validation_failed",
"title": "Validation failed",
"status": 422,
"detail": "One or more fields failed validation.",
"code": "validation_failed",
"instance": "req_2Nh4PqRsTuVw",
"errors": {
"customer_email": [
"The customer email field must be a valid email address."
],
"starts_at": [
"The starts at field must be a date after now."
]
}
}Update the brand context
Partial update of the brand object. Any field omitted from the body is
left unchanged. To clear a field, send null explicitly.
Updating brand colors does not retroactively recolor generated
images or already-published content. It changes future generations
only. Issue follow-up POST /images/{key} calls to regenerate
existing assets with the new palette.
curl -X PATCH https://api.neuraldraft.io/v1/brand \
-H "Authorization: Bearer ndsk_live_yourkey" \
-H "Content-Type: application/json" \
-d '{"colors":{"primary":{"hex":"#2A4A3C","name":"forest"}}}'await nd.brand.update({
colors: { primary: { hex: "#2A4A3C", name: "forest" } },
});
requests.patch(
"https://api.neuraldraft.io/v1/brand",
headers={"Authorization": f"Bearer {key}"},
json={"colors": {"primary": {"hex": "#2A4A3C", "name": "forest"}}},
)
<?php
$client->patch('brand', [
'headers' => ['Authorization' => 'Bearer '.$key],
'json' => ['colors' => ['primary' => ['hex' => '#2A4A3C', 'name' => 'forest']]],
]);
{
"voice": "warm, grounded, inviting; avoids hype",
"audience": "women 30-55 in greater London seeking stress relief",
"content_tone": "friendly_professional",
"content_goals": [
"drive_class_signups",
"build_email_list"
],
"preferred_topics": [
"breathwork",
"beginner_yoga",
"prenatal_yoga",
"mindfulness"
],
"colors": {
"primary": {
"hex": "#2A4A3C",
"name": "forest"
},
"secondary": {
"hex": "#E8DCC4",
"name": "linen"
}
},
"fonts": {
"heading": "Fraunces",
"body": "Inter"
},
"logo_url": "https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/logo.svg",
"description": "A boutique yoga studio in Richmond offering small-group classes."
}{
"type": "https://api.neuraldraft.io/errors/bad_request",
"title": "Bad request",
"status": 400,
"detail": "Request body could not be parsed.",
"code": "bad_request",
"instance": "req_2Nh4PqRsTuVw"
}{
"type": "https://api.neuraldraft.io/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "API key missing or invalid.",
"code": "unauthorized",
"instance": "req_2Nh4PqRsTuVw"
}{
"type": "https://api.neuraldraft.io/errors/validation_failed",
"title": "Validation failed",
"status": 422,
"detail": "One or more fields failed validation.",
"code": "validation_failed",
"instance": "req_2Nh4PqRsTuVw",
"errors": {
"customer_email": [
"The customer email field must be a valid email address."
],
"starts_at": [
"The starts at field must be a date after now."
]
}
}Authorizations
Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage
keys via /projects/me/api-keys. Test-mode keys use
the ndsk_test_ prefix.
Body
Response
Updated brand.
Free-form description of the brand voice.
"warm, grounded, inviting; avoids hype"
"women 30-55 in greater London seeking stress relief"
friendly_professional, formal, playful, authoritative, warm, witty "friendly_professional"
["drive_class_signups", "build_email_list"]
[
"breathwork",
"beginner_yoga",
"prenatal_yoga",
"mindfulness"
]
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"https://cdn.neuraldraft.io/prj_2NfQmBcKpXY8/logo.svg"
"A boutique yoga studio in Richmond offering small-group classes."
Languages configured on this project.
Show child attributes
Show child attributes