Change a brand (brand.manage in that brand)
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”object
Conversion attribution window, from 1 to 90 days (7 by default)
Default sender: the connection must have the email domain verified (409 sender_domain_unverified). null removes it
object
Turn the brand AI off or on (owner or admin only; audit log ai_settings.updated)
Subject prefix for test sends (max. 40). Null = the default “[TEST]” in the campaign language; empty = no prefix
Responses
Section titled “Responses”Brand updated
object
Last-click conversion attribution window, in days (M8.8)
Whether the public campaign RSS feed of the brand is on (off by default)
Default tracking for new campaigns of the brand (copied when they are created)
Default opt-in for new lists and for forms or API calls that do not specify one
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
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
Whether owners and brand admins are emailed when a limited user sends or schedules a campaign (on by default)
Subject prefix for test sends. Null = “[TEST]” translated into the campaign language; empty string = no prefix
Example
{ "defaultTrackingMode": "full", "defaultOptIn": "single"}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}