Add or replace a phone number
PUT/v1/businesses/{businessId}/phone-numbers/{phoneNumber}
Sets one phone number to exactly what you send. branding and
spoofDefense are both required — pass null for a product you do not
want rather than omitting it, since PUT replaces the number's whole
state. A number that isn't registered yet is created.
Use PATCH instead to change one product and leave the other untouched.
The business must have completed verification (ACTIVE or
INACTIVE).
Path Parameters
The ID of the business, assigned by Hiya.
9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8fAn E.164 phone number, URL-encoded — the leading
+
%2B
%2B12065550123
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
+12065550123Header 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 phone number after the update.
Response Body
The request is invalid — for example branding or spoofDefense is
missing, a supplied branding has no displayName, 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 or phone number doesn't exist, or isn't one of yours — the two are indistinguishable by design.
Response Body
The business hasn't completed verification yet, or is being deleted,
so numbers can't be registered or replaced. A verified business
whose branded call is switched off (INACTIVE) still accepts them.
Response Body
Something went wrong on our side.
Response Body