Unenroll from exercise
DELETE
/api/v1/ttx/{ttx_id}/access
const url = 'https://example.com/api/v1/ttx/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/access';const options = { method: 'DELETE', headers: { cookie: 'ttx_access_token=<ttx_access_token>', 'X-CSRF-Token': '<X-CSRF-Token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://example.com/api/v1/ttx/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/access \ --header 'X-CSRF-Token: <X-CSRF-Token>' \ --cookie ttx_access_token=<ttx_access_token>Self-service leave – no role guard: any caller can only ever remove their own TTXAccess row (keyed off their own user id), so there’s no BOLA surface here regardless of role.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ttx_id
required
Ttx Id
string format: uuid
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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" } ]}