Organizations
Update an organization phone number
Partial update of link target, number, capabilities, label, routing (deep-merged), AI binding, status, number type and org-default flag. A numberType change re-checks the number for the new type: a change to shortcode needs 5 or 6 digits, and a change from shortcode to longcode or tollfree needs a valid E.164 number, so send the new phoneNumber with the type change. grants, when present, REPLACES the whole grant list ([] removes every grant); when absent, stored grants are left untouched. A grant that is unchanged keeps its original grantedBy/grantedAt; new or changed grants are stamped with the calling admin. Admin or SuperAdmin.
Authorization
bearerAuth In: header
Path Parameters
The organization that owns the phone numbers.
_id of the PhoneNumber resource.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Partial update. Only fields present change; null on a link field clears it (both null unlinks the number).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/organizations/string/phone-numbers/string" \ -H "Content-Type: application/json" \ -d '{ "grants": [ { "principalType": "user", "principalId": "6650a1b2c3d4e5f6a7b8c9d4", "verbs": [ "send", "read" ] } ] }'{ "success": true, "phoneNumber": { "_id": "string", "organizationId": "string", "provider": "string", "phoneNumber": "string", "isOrgDefault": true, "linkedType": "user", "linkedUserId": "string", "linkedGroupId": "string", "grants": [ { "principalType": "group", "principalId": "6650a1b2c3d4e5f6a7b8c9d2", "key": "group:6650a1b2c3d4e5f6a7b8c9d2", "verbs": [ "send", "read" ], "grantedBy": { "type": "user", "userId": "6650a1b2c3d4e5f6a7b8c9d0" }, "grantedAt": "2026-09-30T12:00:00.000Z" } ] }}