Skip to content

Clear an emergency route override and restore the base policy

DELETE
/v1/mobile/receptionist/numbers/{number_id}/emergency-override
curl --request DELETE \
--url https://api.vocapable.com/v1/mobile/receptionist/numbers/example/emergency-override \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "override_id": "example", "expected_version": 1 }'
number_id
required
Number Id
string
Media typeapplication/json
EmergencyOverrideClearRequest

Compare-and-swap clear for the exact emergency route the operator reviewed.

An override row is retained and reused for a number so override_id alone cannot distinguish a prior arm from a later re-arm. The client sends the current routing version returned by the read model; the router and repository bind and condition the clear against both values.

object
override_id
required
Override Id
string
>= 1 characters <= 128 characters
expected_version
required
Expected Version
integer
>= 1
Examplegenerated
{
"override_id": "example",
"expected_version": 1
}

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}