Define which lists are offered as topics (with a public name and description per language), whether frequency is offered and whether the name can be edited (captures.write). The brand cannot add steps or hide the unsubscribe option
PUT
/v1/brands/{brand}/preference-settings
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/preference-settings';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"offerFrequency":true,"allowName":true,"lists":[{"id":"example","showInPreferences":true,"position":1,"publicName":{},"publicDescription":{}}]}'};
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/brands/brd_01hx0000000000000000000000/preference-settings \ --header 'Content-Type: application/json' \ --data '{ "offerFrequency": true, "allowName": true, "lists": [ { "id": "example", "showInPreferences": true, "position": 1, "publicName": {}, "publicDescription": {} } ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
offerFrequency
required
boolean
allowName
required
boolean
lists
required
Array<object>
object
id
required
string
showInPreferences
required
boolean
position
integer
publicName
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
publicDescription
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
Responses
Section titled “Responses”Settings
Media typeapplication/json
object
offerFrequency
required
boolean
allowName
required
boolean
lists
required
Array<object>
object
id
required
string
showInPreferences
required
boolean
position
integer
publicName
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
publicDescription
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
lists
required
Array<object>
object
id
required
string
showInPreferences
required
boolean
position
required
integer
publicName
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
publicDescription
object
es-MX
string
es-ES
string
es-AR
string
en
string
pt-BR
string
fr
string
de
string
it
string
ja
string
ko
string
zh-CN
string
ar
string
name
required
string
Example
{ "lists": [ { "publicName": {}, "publicDescription": {} } ]}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" }}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" }}