Upsert a consent statement localization.
PUT
/api/admin/consent-statements/{sid}/versions/{vid}/localizations/{lang}
Code sample: Shell / cURL
curl --request PUT \ --url https://auth.example.com/api/admin/consent-statements/example/versions/example/localizations/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Terms of Service", "description": "Terms that govern account usage.", "processing_purpose": "Account registration and service operation.", "withdrawal_impact": "Account access may be limited after withdrawal.", "document_url": "https://example.com/legal/terms", "inline_content": null }'Creates or replaces localization content for a language. title and description are required; document_url must be a public URL when supplied.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sid
required
string
Consent statement identifier.
vid
required
string
Consent statement version identifier.
lang
required
string
Localization language code.
Request Body required
Section titled “Request Body required ” Media type application/json
object
title
required
string
description
required
string
processing_purpose
string | null
withdrawal_impact
string | null
document_url
string | null format: uri
inline_content
string | null
key
additional properties
Example
{ "title": "Terms of Service", "description": "Terms that govern account usage.", "processing_purpose": "Account registration and service operation.", "withdrawal_impact": "Account access may be limited after withdrawal.", "document_url": "https://example.com/legal/terms", "inline_content": null}Responses
Section titled “ Responses ”Consent statement localization response.
Media type application/json
object
id
required
string
tenant_id
required
string
version_id
required
string
language
required
string
title
required
string
description
required
string
processing_purpose
Localized user-facing data processing purpose.
string | null
withdrawal_impact
Localized user-facing impact of withdrawing this consent.
string | null
document_url
string | null format: uri
inline_content
string | null
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
Example generated
{ "id": "example", "tenant_id": "example", "version_id": "example", "language": "example", "title": "example", "description": "example", "processing_purpose": "example", "withdrawal_impact": "example", "document_url": "https://example.com", "inline_content": "example", "created_at": 1, "updated_at": 1}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}