Remove phone numbers
POST/v1/businesses/{businessId}/phone-numbers/delete
Unregisters several phone numbers at once. Numbers that aren't registered to the business are ignored.
This is a POST action rather than a DELETE on the collection,
because request bodies on DELETE are unreliable across clients and
proxies. To remove a single number, DELETE it directly.
Path Parameters
The ID of the business, assigned by Hiya.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fHeader Parameters
Your own correlation ID for this call, returned as
requestId
400
INVALID_HEADER
Possible values: <= 200 characters, Value must match regular expression ^[A-Za-z0-9._:/+=@-]+$
job-2f9c1a7e-0042Body
required
Responses
- 200
- 400
- 401
- 404
- 409
- 500
The numbers were removed.
Response Body
The request is invalid — phoneNumbers is missing, empty, or has
more than 1000 items — or the X-Hiya-Request-Id header doesn't
match its pattern.
Response Body
The API key is missing or invalid.
Response Body
The business doesn't exist, or isn't one of yours — the two are indistinguishable by design.
Response Body
The business is being deleted.
Response Body
Something went wrong on our side.
Response Body