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

Set default context

PUT
/api/v1/auth/default-context
curl --request PUT \
--url https://example.com/api/v1/auth/default-context \
--header 'Content-Type: application/json' \
--header 'X-CSRF-Token: <X-CSRF-Token>' \
--cookie ttx_access_token=<ttx_access_token> \
--data '{ "organization_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "role": "program_manager", "ttx_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Set the organization, exercise and role the caller lands on.

Media typeapplication/json
DefaultContextRequest

Login-time default context. All three optional; null means “use the first available one”. See organization_service.set_default_context.

object
organization_id
Any of:
string format: uuid
role
Any of:
string
Allowed values: program_manager planner controller facilitator evaluator observer player
ttx_id
Any of:
string format: uuid

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"
}
]
}