Save the subscription pages' redirect URLs (replaces the previous ones). Requires brand.manage
PUT
/v1/brands/{brand}/page-redirects
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/page-redirects';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"confirmed":"example","already_subscribed":"example","no_consent":"example","reconsent":"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/brands/brd_01hx0000000000000000000000/page-redirects \ --header 'Content-Type: application/json' \ --data '{ "confirmed": "example", "already_subscribed": "example", "no_consent": "example", "reconsent": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”brand
required
string
Example
brd_01hx0000000000000000000000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Custom https URL per page: confirmed (subscription confirmed), already_subscribed, no_consent (no consent) and reconsent. Without a URL, the standard page in 12 languages.
object
confirmed
string
already_subscribed
string
no_consent
string
reconsent
string
Example generated
{ "confirmed": "example", "already_subscribed": "example", "no_consent": "example", "reconsent": "example"}Responses
Section titled “Responses”URL per page
Media typeapplication/json
object
brandId
required
string
pages
required
object
key
additional properties
string
Example generated
{ "brandId": "example", "pages": { "additionalProperty": "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" }}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" }}