Skip to content

Update a list

PATCH
/v1/lists/{list}
curl --request PATCH \
--url https://api.replifier.com/v1/lists/lst_01hx0000000000000000000000 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "description": "example", "optIn": "single", "confirmation": { "es-MX": { "subject": "example", "body": "example", "page": "example" }, "es-ES": { "subject": "example", "body": "example", "page": "example" }, "es-AR": { "subject": "example", "body": "example", "page": "example" }, "en": { "subject": "example", "body": "example", "page": "example" }, "pt-BR": { "subject": "example", "body": "example", "page": "example" }, "fr": { "subject": "example", "body": "example", "page": "example" }, "de": { "subject": "example", "body": "example", "page": "example" }, "it": { "subject": "example", "body": "example", "page": "example" }, "ja": { "subject": "example", "body": "example", "page": "example" }, "ko": { "subject": "example", "body": "example", "page": "example" }, "zh-CN": { "subject": "example", "body": "example", "page": "example" }, "ar": { "subject": "example", "body": "example", "page": "example" } }, "consent": { "version": "example", "text": { "es-MX": "example", "es-ES": "example", "es-AR": "example", "en": "example", "pt-BR": "example", "fr": "example", "de": "example", "it": "example", "ja": "example", "ko": "example", "zh-CN": "example", "ar": "example" }, "requireCheckbox": false, "preChecked": false } }'
list
required
string
/^lst_[a-z0-9]{26}$/

Example

lst_01hx0000000000000000000000
Media typeapplication/json
object
name
string
>= 1 characters <= 120 characters /^[^\x00-\x1f\x7f]*$/
description
string
nullable <= 1000 characters
optIn
string
Allowed values: single double
confirmation
object
es-MX
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
es-ES
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
es-AR
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
en
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
pt-BR
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
fr
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
de
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
it
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
ja
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
ko
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
zh-CN
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
ar
object
subject
string
<= 200 characters
body
string
<= 5000 characters
page
string
<= 5000 characters
consent
object
version
required
string
>= 1 characters <= 64 characters /^[^\x00-\x1f\x7f]*$/
text
required
object
es-MX
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
es-ES
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
es-AR
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
en
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
pt-BR
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
fr
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
de
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
it
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ja
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ko
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
zh-CN
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ar
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
requireCheckbox
boolean
preChecked
boolean

List updated

Media typeapplication/json
object
id
required
string
brandId
required
string
name
required
string
description
required
string
nullable
optIn
required
string
Allowed values: single double
confirmation
required
object
key
additional properties
nullable
consent
required
object
version
required
string
>= 1 characters <= 64 characters /^[^\x00-\x1f\x7f]*$/
text
required
object
es-MX
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
es-ES
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
es-AR
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
en
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
pt-BR
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
fr
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
de
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
it
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ja
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ko
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
zh-CN
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
ar
string
>= 1 characters <= 2000 characters /^[^\x00-\x1f\x7f]*$/
requireCheckbox
boolean
preChecked
boolean
createdAt
required
string
updatedAt
required
string

Example

{
"optIn": "single",
"consent": {
"requireCheckbox": false,
"preChecked": false
}
}

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