Save the brand's legal profile (replaces the previous one). Requires brand.manage
PUT
/v1/brands/{brand}/legal-profile
const url = 'https://api.replifier.com/v1/brands/brd_01hx0000000000000000000000/legal-profile';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"legalName":"example","postalAddress":"example","privacyEmail":"hello@example.com","country":"MX","privacyPolicyUrls":{"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"},"dpoName":"example","dpoEmail":"hello@example.com","euRepresentative":"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/legal-profile \ --header 'Content-Type: application/json' \ --data '{ "legalName": "example", "postalAddress": "example", "privacyEmail": "hello@example.com", "country": "MX", "privacyPolicyUrls": { "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" }, "dpoName": "example", "dpoEmail": "hello@example.com", "euRepresentative": "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
object
legalName
required
string
postalAddress
required
string
privacyEmail
required
string format: email
country
required
Brand country, ISO 3166-1 alpha-2 in uppercase.
string
Example
MXprivacyPolicyUrls
HTTPS URL of the privacy notice per language.
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
dpoName
string
dpoEmail
string format: email
euRepresentative
string
Responses
Section titled “Responses”Legal profile
Media typeapplication/json
object
brandId
required
string
legalName
required
string
postalAddress
required
string
privacyEmail
required
string
country
required
string
privacyPolicyUrls
required
object
key
additional properties
string
dpoName
required
string
dpoEmail
required
string
euRepresentative
required
string
complete
required
boolean
updatedAt
required
string
Example generated
{ "brandId": "example", "legalName": "example", "postalAddress": "example", "privacyEmail": "example", "country": "example", "privacyPolicyUrls": { "additionalProperty": "example" }, "dpoName": "example", "dpoEmail": "example", "euRepresentative": "example", "complete": true, "updatedAt": "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" }}