Phone Numbers
Remove phone numbers from a DIR
Deregister phone numbers from a DIR. The enterprise is resolved server-side from the DIR id. Returns a partial-success envelope.
delete/dir/{dir_id}/phone_numbers
Path parameters
dir_idstring uuid required
Example:16635d38-75a6-4481-82e8-69af60e05011
The DIR id. Lowercase UUID.
Request body
Example request
{
"phone_numbers": [
"+19493253498"
]
}Response
Bulk-delete response. Inspect both deleted and errors.
Example response
{
"data": [
"+19493253498"
],
"meta": {
"errors": [
{
"code": "not_associated",
"detail": "Phone number not associated with this DIR.",
"phone_number": "+19493253498",
"title": "Phone number not associated"
}
]
}
}