cURL
rename
curl --request PATCH \ --url https://api.zavu.dev/v1/phone-numbers/{phoneNumberId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Support Line" } '
{ "phoneNumber": { "id": "<string>", "phoneNumber": "+15551234567", "capabilities": [ "sms", "voice" ], "status": "active", "pricing": { "monthlyPrice": 123, "upfrontCost": 123, "monthlyCost": 123, "isFreeNumber": true }, "createdAt": "2023-11-07T05:31:56Z", "name": "<string>", "senderId": "<string>", "nextRenewalDate": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Update a phone number’s name or sender assignment.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Custom name for the phone number. Set to null to clear.
100
Sender ID to assign the phone number to. Set to null to unassign.
Phone number updated.
Show child attributes