Partially update a phone number
PATCH/v1/businesses/{businessId}/phone-numbers/{phoneNumber}
Changes some of what the number carries, leaving the rest alone.
Omit branding or spoofDefense to leave it unchanged, send null
to clear it, or send an object to replace it. The two are independent —
changing one never affects the other.
A supplied object replaces that object entirely, so include its required
fields (branding.displayName, spoofDefense.enabled). This is not
RFC 7396 merge patch: nesting is not merged.
Unlike PUT, this never creates a number — patching one that isn't
registered returns 404. Sending every field makes this equivalent to
PUT.
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 + becomes %2B
(e.g. %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 in the
response body. Hiya generates one if omitted. A value that doesn't
match the pattern is rejected with 400 INVALID_HEADER.
Possible values: <= 200 characters, Value must match regular expression ^[A-Za-z0-9._:/+=@-]+$
job-2f9c1a7e-0042Body
requiredbrandingobject | null
Replaces the number's branding. null removes it; omit to leave it
unchanged.
Name shown on the recipient's phone for branded calls.
Possible values: non-empty and <= 200 characters
Acme PlumbingThe id of a logo uploaded via the logo endpoints.
string<uuid>550e8400-e29b-41d4-a716-446655440000Reason for the call, shown next to the brand.
Possible values: <= 50 characters
Appointment reminderMark the number as Do-Not-Originate — it should only receive calls, never place them.
falsefalsesecureBrandingobject | null
Secure Branding for the number — delivers the business's branding at call time.
truespoofDefenseobject | null
Replaces the number's Spoof Defense state. null turns it off; omit
to leave it unchanged.
Whether Spoof Defense is on for the number.
trueResponses
- 200
- 400
- 401
- 404
- 409
- 500
The phone number after the update.
Response Body
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264ZThe number, in E.164 format.
Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$
+12065550123ISO 3166-1 alpha-2 country code, inferred from the phone number.
Possible values: Value must match regular expression ^[A-Z]{2}$
USA phone number's registration status.
Registering a number is synchronous — the write returns once it is
registered or rejected. This status reports what happens after that:
the number is checked against Hiya's number-attribute, conflict and
fraud screening, and the outcome arrives asynchronously. A number is
therefore live and brandable while still PENDING, and can move to
NEEDS_ATTENTION after its branding is already in place.
| Value | Meaning |
|-------|---------|
| PENDING | Screening has not finished. The number is registered and usable. |
| REGISTERED | Screening passed. |
| NEEDS_ATTENTION | Screening flagged or declined the number — it may stop being distributed. attentionReason says why. Contact Hiya. |
phone_PhoneStatus (string)Possible values: [PENDING, REGISTERED, NEEDS_ATTENTION]
REGISTEREDWhy the number is NEEDS_ATTENTION, as text. Set only while
status is NEEDS_ATTENTION; null otherwise. Meant to be
shown to a person — don't parse it, since the wording can change.
Number is flagged for fraudbrandingobject | null
The number's branding, or null if branded call is off for it.
Name shown on the recipient's phone for branded calls.
Acme PlumbingThe id of an uploaded logo.
string<uuid>550e8400-e29b-41d4-a716-446655440000Reason for the call, shown next to the brand.
Appointment reminderWhether the number is marked Do-Not-Originate.
falsesecureBrandingobject | null
Secure Branding state for the number.
trueThe state of a number's branding.
| Value | Meaning |
|-------|---------|
| BRANDED | Branding is live. |
| CHANGES_PENDING | A change is being processed. |
| LIMITED_DISTRIBUTION | Branding is live, but only on some networks. |
| NEEDS_ATTENTION | Branding was flagged; branding.attentionReason says why. You may need to contact Hiya. |
| UNVERIFIED | Branding isn't verified yet. |
phone_BrandingStatus (string)Possible values: [BRANDED, CHANGES_PENDING, LIMITED_DISTRIBUTION, NEEDS_ATTENTION, UNVERIFIED]
BRANDEDWhy the branding is NEEDS_ATTENTION, as text. Set only while
branding.status is NEEDS_ATTENTION; null otherwise. Meant to be
shown to a person — don't parse it, since the wording can change.
Display name doesn't match the businessspoofDefenseobject | null
The number's Spoof Defense state, or null if it has never been
set. Mirrors the three states the write side accepts.
Whether Spoof Defense is on for the number.
trueWhen the number was last registered.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264ZWhen the number was last changed.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:45:00.324ZExample from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"phoneNumber": "+12065550123",
"country": "US",
"status": "REGISTERED",
"attentionReason": "Number is flagged for fraud",
"branding": {
"displayName": "Acme Plumbing",
"logoId": "550e8400-e29b-41d4-a716-446655440000",
"callReason": "Appointment reminder",
"doNotOriginate": false,
"secureBranding": {
"enabled": true
},
"status": "BRANDED",
"attentionReason": "Display name doesn't match the business"
},
"spoofDefense": {
"enabled": true
},
"createdAt": "2026-05-28T14:32:10.264Z",
"updatedAt": "2026-05-28T14:45:00.324Z"
}
The request is invalid — for example a supplied object lacks its
required field (branding.displayName, spoofDefense.enabled), or
the X-Hiya-Request-Id header doesn't match its pattern.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'branding.callReason' must be at most 50 characters.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'branding.callReason' must be at most 50 characters."
}
]
}
The API key is missing or invalid.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'branding.callReason' must be at most 50 characters.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'branding.callReason' must be at most 50 characters."
}
]
}
The business or phone number doesn't exist, or isn't one of yours — the two are indistinguishable by design.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'branding.callReason' must be at most 50 characters.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'branding.callReason' must be at most 50 characters."
}
]
}
The business hasn't completed verification yet, or is being deleted,
so its numbers can't be changed. A verified business whose branded
call is switched off (INACTIVE) still accepts changes.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'branding.callReason' must be at most 50 characters.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'branding.callReason' must be at most 50 characters."
}
]
}
Something went wrong on our side.
Response Body
Array [
]
The X-Hiya-Request-Id this call was handled under — the value you
sent, or one Hiya generated if you didn't send one.
job-2f9c1a7e-0042When Hiya handled the request.
string<date-time>Possible values: Value must match regular expression ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$
2026-05-28T14:32:10.264Zerrorsobject[]required
The errors that occurred.
| Code | Status | Meaning |
|---|---|---|
| MISSING_REQUIRED_FIELD | 400 | A required field or parameter is missing. |
| INVALID_FIELD | 400 | A field in the request body fails validation. |
| INVALID_HEADER | 400 | The X-Hiya-Request-Id header doesn't match its pattern. |
| UNAUTHORIZED | 401 | The API key is missing or invalid. |
| NOT_FOUND | 404 | The resource doesn't exist, or isn't yours. |
| CONFLICT | 409 | The resource isn't in a state that allows this action. |
| INTERNAL_ERROR | 500 | Something went wrong on our side. |
Possible values: [MISSING_REQUIRED_FIELD, INVALID_FIELD, INVALID_HEADER, UNAUTHORIZED, NOT_FOUND, CONFLICT, INTERNAL_ERROR]
INVALID_FIELDA description of what went wrong.
'branding.callReason' must be at most 50 characters.Example from Schema
{
"requestId": "job-2f9c1a7e-0042",
"timestamp": "2026-05-28T14:32:10.264Z",
"errors": [
{
"code": "INVALID_FIELD",
"message": "'branding.callReason' must be at most 50 characters."
}
]
}