cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/brands/e6220a5e-4a68-4d39-8bb9-5105e9a3a164/edits' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header 'idempotency-key: acme-atlas-pro-color-update' \
--header "Content-Type: application/json" \
--data '{
"baseSkillId": "6590fb89-c177-45b3-85d4-74ab6b92dc2a",
"change": {
"kind": "instruction",
"instruction": "Update Acme Inc. to use burgundy #6D1A36 for Atlas Pro materials. Keep the rest of the brand unchanged."
}
}'{
"data": {
"id": "22f07ed4-665a-46de-9843-b271e2e3d247",
"brandId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"baseSkillId": "6590fb89-c177-45b3-85d4-74ab6b92dc2a",
"target": null,
"changeSet": null,
"targetProfile": null,
"interaction": null,
"replacement": null,
"changeSummary": null,
"statusMessage": "Preparing Acme Inc.'s brand update.",
"error": null,
"createdAt": "2026-10-24T09:00:00.000Z",
"updatedAt": "2026-10-24T09:00:00.000Z",
"status": "preparing"
}
}{
"error": {
"code": "INVALID_INPUT",
"status": 400,
"message": "Invalid Brand Edit input",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"status": 402,
"message": "Not enough credits to edit this brand",
"data": {
"action_url": "<string>",
"credits_required": 123,
"balance": 123,
"pricing_version": 0
}
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_SKILL_UNAVAILABLE",
"status": 409,
"message": "Brand has no editable Skill",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"status": 500,
"message": "Failed to create Brand Edit",
"data": "<unknown>"
}
}Brand Edits
Create a Brand Edit
Prepare proposed changes without changing the active brand. Inspect progress and the proposal with Get a Brand Edit.
POST
/
brands
/
{id}
/
edits
cURL
curl --request POST \
--url 'https://www.rainbrand.com/api/v1/brands/e6220a5e-4a68-4d39-8bb9-5105e9a3a164/edits' \
--header "x-api-key: $RAINBRAND_API_KEY" \
--header 'idempotency-key: acme-atlas-pro-color-update' \
--header "Content-Type: application/json" \
--data '{
"baseSkillId": "6590fb89-c177-45b3-85d4-74ab6b92dc2a",
"change": {
"kind": "instruction",
"instruction": "Update Acme Inc. to use burgundy #6D1A36 for Atlas Pro materials. Keep the rest of the brand unchanged."
}
}'{
"data": {
"id": "22f07ed4-665a-46de-9843-b271e2e3d247",
"brandId": "e6220a5e-4a68-4d39-8bb9-5105e9a3a164",
"baseSkillId": "6590fb89-c177-45b3-85d4-74ab6b92dc2a",
"target": null,
"changeSet": null,
"targetProfile": null,
"interaction": null,
"replacement": null,
"changeSummary": null,
"statusMessage": "Preparing Acme Inc.'s brand update.",
"error": null,
"createdAt": "2026-10-24T09:00:00.000Z",
"updatedAt": "2026-10-24T09:00:00.000Z",
"status": "preparing"
}
}{
"error": {
"code": "INVALID_INPUT",
"status": 400,
"message": "Invalid Brand Edit input",
"data": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"status": 401,
"message": "Invalid or missing API credentials",
"data": "<unknown>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"status": 402,
"message": "Not enough credits to edit this brand",
"data": {
"action_url": "<string>",
"credits_required": 123,
"balance": 123,
"pricing_version": 0
}
}
}{
"error": {
"code": "ACCOUNT_BANNED",
"status": 403,
"message": "This account has been suspended.",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_NOT_FOUND",
"status": 404,
"message": "Brand not found",
"data": "<unknown>"
}
}{
"error": {
"code": "BRAND_SKILL_UNAVAILABLE",
"status": 409,
"message": "Brand has no editable Skill",
"data": "<unknown>"
}
}{
"error": {
"code": "TOO_MANY_REQUESTS",
"status": 429,
"message": "Rate limit exceeded",
"data": "<unknown>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"status": 500,
"message": "Failed to create Brand Edit",
"data": "<unknown>"
}
}Authorizations
apiKeybeareroauth
Headers
Body
application/json
Was this page helpful?