/branding
Update channel branding
Updates the custom CSS and theme fields (colors, fonts, border radius) for the current channel's branding. Only fields present in the body are changed; null clears a field.
Visa hela beskrivningen
Requires the X-Channel header and a valid X-Admin-Preview token for the same tenant and channel. The CSS is sanitised before it is stored, so the value in the response is what was actually saved and may differ from what was sent.
Body krävs
| Fält | Typ |
|---|---|
accentColor
|
string · nullable |
accentHoverColor
|
string · nullable |
backgroundColor
|
string · nullable |
borderRadius
|
string · nullable |
customCss
|
string · nullable |
fontBody
|
string · nullable |
fontHeading
|
string · nullable |
footerBackgroundColor
|
string · nullable |
footerTextColor
|
string · nullable |
headerBackgroundColor
|
string · nullable |
headerTextColor
|
string · nullable |
imageBackground
|
string · nullable |
primaryColor
|
string · nullable |
primaryHoverColor
|
string · nullable |
textColor
|
string · nullable |
Svar
PatchChannelBrandingCssPatchBrandingCssResponse
| Fält | Typ | Beskrivning |
|---|---|---|
customCss
|
string · nullable | CSS:en som faktiskt lagrades, efter sanering. |
success
|
boolean | Sant när CSS:en sparades. |
ProblemDetails
Unsupported Media Type
| Fält | Typ |
|---|---|
detail
|
string · nullable |
instance
|
string · nullable |
status
|
integer · nullable |
title
|
string · nullable |
type
|
string · nullable |
-
Retry-After— Seconds to wait before retrying.
Standardfel:
400
401
404
Felhantering
Exempel
curl -X PATCH "https://api.erp.fluit.cloud/ecom/branding" \
-H "X-Tenant-Id: $FLUIT_TENANT_ID" \
-H "X-Channel: web" \
-H "Content-Type: application/json" \
-d @body.json
{
"customCss": "string",
"success": true
}
Bas-URL https://api.erp.fluit.cloud/ecom. Svarsexemplet är genererat ur schemat: formen stämmer, värdena är påhittade.