Skip to content
The API may change between versions while TTX-Zone is 0.x.

Accept

POST
/api/v1/auth/legal/accept
curl --request POST \
--url https://example.com/api/v1/auth/legal/accept \
--header 'Content-Type: application/json' \
--header 'X-CSRF-Token: <X-CSRF-Token>' \
--cookie ttx_access_token=<ttx_access_token> \
--data '{ "acceptances": [ { "kind": "terms", "version": 1 } ] }'

Record the caller’s acceptance of the current legal documents.

Media typeapplication/json
LegalAcceptRequest
object
acceptances
required
Acceptances
Array<object>
>= 1 items <= 2 items
LegalAcceptanceItem

One version of one document the user accepts (signup, or after a substantial change). Must be the version currently published.

object
kind
required
LegalDocumentKind

The legal documents a deployment’s operator publishes for its users (Platform), accepted together at signup.

string
Allowed values: terms privacy
version
required
Version
integer
>= 1

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}