Set the agency's white label (replaces the previous one)
PUT
/v1/orgs/{org}/branding
const url = 'https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/branding';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"productName":"example","colors":{},"logoLightVersionId":"example","logoDarkVersionId":"example","iconVersionId":"example","supportEmail":"hello@example.com","helpUrl":"example","systemMailFromName":"example","systemMailDomain":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.replifier.com/v1/orgs/org_01hx0000000000000000000000/branding \ --header 'Content-Type: application/json' \ --data '{ "productName": "example", "colors": {}, "logoLightVersionId": "example", "logoDarkVersionId": "example", "iconVersionId": "example", "supportEmail": "hello@example.com", "helpUrl": "example", "systemMailFromName": "example", "systemMailDomain": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Example
org_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
productName
required
string
colors
Primary, primary_contrast, sidebar and accent as #rrggbb; primary and primary_contrast with AA contrast (4.5:1)
object
key
additional properties
string
logoLightVersionId
string
logoDarkVersionId
string
iconVersionId
string
supportEmail
string format: email
helpUrl
string
systemMailFromName
string
systemMailDomain
string
Responses
Section titled “Responses”White label
Media typeapplication/json
object
configured
required
boolean
entitled
required
The agency is currently entitled (5 or more paid brands)
boolean
productName
required
string
colors
required
object
key
additional properties
string
logoLightVersionId
required
string
logoDarkVersionId
required
string
iconVersionId
required
string
logoLightUrl
required
string
logoDarkUrl
required
string
iconUrl
required
string
supportEmail
required
string
helpUrl
required
string
systemMailFromName
required
string
systemMailDomain
required
string
systemMailDomainVerified
required
boolean
updatedAt
required
string
Example generated
{ "configured": true, "entitled": true, "productName": "example", "colors": { "additionalProperty": "example" }, "logoLightVersionId": "example", "logoDarkVersionId": "example", "iconVersionId": "example", "logoLightUrl": "example", "logoDarkUrl": "example", "iconUrl": "example", "supportEmail": "example", "helpUrl": "example", "systemMailFromName": "example", "systemMailDomain": "example", "systemMailDomainVerified": true, "updatedAt": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}