Clear an emergency route override and restore the base policy
DELETE
/v1/mobile/receptionist/numbers/{number_id}/emergency-override
const url = 'https://api.vocapable.com/v1/mobile/receptionist/numbers/example/emergency-override';const options = { method: 'DELETE', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"override_id":"example","expected_version":1}'};
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://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 }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”number_id
required
Number Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”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
expected_version
required
Expected Version
integer
Examplegenerated
{ "override_id": "example", "expected_version": 1}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}