Create a consent statement version.
POST
/api/admin/consent-statements/{sid}/versions
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/consent-statements/example/versions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "version": "20260619", "content_type": "url", "effective_at": 1770000000000 }'Creates a draft version for a consent statement. version must use YYYYMMDD format and effective_at is required. effective_until is optional; omit or set null for no planned end.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” sid
required
string
Consent statement identifier.
Request Body required
Section titled “Request Body required ” Media type application/json
object
version
required
string
content_type
string
effective_at
required
integer format: int64
effective_until
Optional end timestamp. Null means no planned end.
integer | null format: int64
key
additional properties
Example
{ "version": "20260619", "content_type": "url", "effective_at": 1770000000000}Responses
Section titled “ Responses ”Consent statement version response.
Media type application/json
object
id
required
string
tenant_id
required
string
statement_id
required
string
version
required
string
content_type
required
string
effective_at
required
integer format: int64
effective_until
Optional end timestamp. Null means no planned end.
integer | null format: int64
is_current
required
integer
status
required
string
created_at
required
integer format: int64
updated_at
required
integer format: int64
key
additional properties
Example
{ "content_type": "url", "is_current": 0, "status": "draft"}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"}