Delete exercise
DELETE
/api/v1/ttx/{ttx_id}
const url = 'https://example.com/api/v1/ttx/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'DELETE', headers: { cookie: 'ttx_access_token=<ttx_access_token>', 'X-CSRF-Token': '<X-CSRF-Token>', 'Content-Type': 'application/json' }, body: '{"confirmation":"example"}'};
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 \ --header 'Content-Type: application/json' \ --header 'X-CSRF-Token: <X-CSRF-Token>' \ --cookie ttx_access_token=<ttx_access_token> \ --data '{ "confirmation": "example" }'Delete the exercise and everything under it, for good: its Lead Planner or a Program Manager of its organization, with its name typed (no step-up; the activity log records it). The one write a Program Manager makes on an exercise without a seat on its team (oversight of the portfolio), so it is guarded here rather than by RequiresOrgAndTTXAccess.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ttx_id
required
Ttx Id
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
TTXDeleteRequest
The exercise’s name, typed to confirm a permanent delete.
object
confirmation
required
Confirmation
string
Example generated
{ "confirmation": "example"}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" } ]}