Skip to content

Change a brand (brand.manage in that brand)

PATCH
/v1/brands/{brand}
curl --request PATCH \
--url https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000 \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "slug": "example", "defaultLocale": "es-MX", "timezone": "example", "conversionWindowDays": 1, "status": "active", "rssEnabled": true, "defaultTrackingMode": "full", "defaultOptIn": "single", "defaultSender": { "connectionId": "example", "fromName": "example", "fromEmail": "hello@example.com", "replyTo": "hello@example.com" }, "aiEnabled": true, "notifyLimitedSend": true, "testSubjectPrefix": "example" }'
brand
required
string
/^brd_[a-z0-9]{26}$/

Example

brd_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
slug
string
>= 1 characters <= 48 characters /^[a-z0-9]+(-[a-z0-9]+)*$/
defaultLocale
string
Allowed values: es-MX es-ES es-AR en pt-BR fr de it ja ko zh-CN ar
timezone
string
<= 64 characters
conversionWindowDays

Conversion attribution window, from 1 to 90 days (7 by default)

integer
>= 1 <= 90
status
string
Allowed values: active archived
rssEnabled
boolean
defaultTrackingMode
string
Allowed values: full anonymous none
defaultOptIn
string
Allowed values: single double
defaultSender

Default sender: the connection must have the email domain verified (409 sender_domain_unverified). null removes it

object
connectionId
required
string
<= 64 characters
fromName
string
nullable >= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
fromEmail
required
string format: email
<= 320 characters
replyTo
string format: email
nullable <= 320 characters
aiEnabled

Turn the brand AI off or on (owner or admin only; audit log ai_settings.updated)

boolean
notifyLimitedSend
boolean
testSubjectPrefix

Subject prefix for test sends (max. 40). Null = the default “[TEST]” in the campaign language; empty = no prefix

string
nullable <= 40 characters

Brand updated

Media typeapplication/json
object
id
required
string
organizationId
required
string
name
required
string
slug
required
string
defaultLocale
required
string
timezone
required
string
conversionWindowDays
required

Last-click conversion attribution window, in days (M8.8)

number
status
required
string
rssEnabled
required

Whether the public campaign RSS feed of the brand is on (off by default)

boolean
defaultTrackingMode
required

Default tracking for new campaigns of the brand (copied when they are created)

string
Allowed values: full anonymous none
defaultOptIn
required

Default opt-in for new lists and for forms or API calls that do not specify one

string
Allowed values: single double
defaultSender
required

Default sender and reply-to for the brand (DAT-3070): copied to a new campaign that does not set its own. Null if none

object
connectionId
required
string
<= 64 characters
fromName
string
nullable >= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
fromEmail
required
string format: email
<= 320 characters
replyTo
string format: email
nullable <= 320 characters
aiEnabled
required

Whether the brand can use AI (brands.settings.ai.enabled; on by default). A brand with AI off does not use even the organization key

boolean
notifyLimitedSend
required

Whether owners and brand admins are emailed when a limited user sends or schedules a campaign (on by default)

boolean
testSubjectPrefix
required

Subject prefix for test sends. Null = “[TEST]” translated into the campaign language; empty string = no prefix

string
nullable
role
required
string
permissions
required
Array<string>
createdAt
required
string
updatedAt
required
string

Example

{
"defaultTrackingMode": "full",
"defaultOptIn": "single"
}

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"
}
}