Skip to content
UneeqUneeqUneeq Docs

Delete an immersive training scenario

DELETE
/external/v1/organization/{organizationID}/immersive-training/{immersiveTrainingID}
curl --request DELETE \
--url "$UNEEQ_API_URL/external/v1/organization/$UNEEQ_ORG_ID/immersive-training/{immersiveTrainingID}" \
--header "Authorization: Bearer $UNEEQ_API_KEY"

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.

organizationID
required
string

ID of the organization the API key belongs to, for example org_HYPCX67vaupjhdTn.

Example

org_HYPCX67vaupjhdTn
immersiveTrainingID
required
string format: uuid
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/

Id of the immersive training scenario, as a lowercase UUID.

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.

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

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.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

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”).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

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.

Media typeapplication/json

The body of an error returned before the request reaches an endpoint (authentication and rate limiting).

object
error
required

Human-readable explanation of what went wrong.

string

Example generated

{
"error": "example"
}
Retry-After
integer
>= 1

Seconds to wait before retrying.

The scenario could not be deleted (“unable to delete immersive training”).

Media typeapplication/json

The body of an error returned by an endpoint.

object
message
required

Human-readable explanation of what went wrong.

string
error_code

Stable machine-readable cause. Present only for errors that have one.

string

Example generated

{
"message": "example",
"error_code": "example"
}