Delete an immersive training scenario
curl --request DELETE \ --url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/immersive-training/{immersiveTrainingID}" \ --header "Authorization: Bearer $UNEEQ_API_KEY"const url = `${process.env.UNEEQ_API_URL}/external/v1/organization/${process.env.UNEEQ_ORG_ID}/immersive-training/{immersiveTrainingID}`;const response = await fetch(url, { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.UNEEQ_API_KEY}`, },});console.log(response.status, await response.text());Deletes the scenario. It disappears from the library and from every endpoint here; past sessions and their reports are kept. Deleting is not reversible through the API, and deleting an already-deleted scenario answers 404.
Private practice scenarios (scenario type PRACTICE) belong to one member and cannot be deleted through the API; they answer 404.
The role-play update endpoint can still edit a practice scenario by id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.
Example
org_HYPCX67vaupjhdTnId of the immersive training scenario, as a lowercase UUID.
Responses
Section titled “Responses”The scenario was deleted. No body.
immersiveTrainingID is not a lowercase UUID (message “invalid immersive training id”); an uppercase UUID is also rejected. No error_code is set.
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The Authorization header is missing, or the API key is not valid for this organization. A key check that fails on the server is also reported as 401.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}No scenario with this id exists in the organization, it was already deleted, or it is a member’s private practice scenario (“immersive training not found”).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}The API key has sent too many requests. Wait for the number of seconds in Retry-After, then retry.
The body of an error returned before the request reaches an endpoint (authentication and rate limiting).
object
Human-readable explanation of what went wrong.
Example generated
{ "error": "example"}Headers
Section titled “Headers”Seconds to wait before retrying.
The scenario could not be deleted (“unable to delete immersive training”).
The body of an error returned by an endpoint.
object
Human-readable explanation of what went wrong.
Stable machine-readable cause. Present only for errors that have one.
Example generated
{ "message": "example", "error_code": "example"}
