cURL
curl --request PATCH \ --url https://api.voicebot.studio/api/v1/phone-number/{phone_number_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "assistantId": "<string>", "squadId": "<string>", "fallbackDestination": { "type": "number", "number": "<string>", "extension": "<string>", "callerId": "<string>", "message": "<string>", "description": "<string>", "numberE164CheckEnabled": true }, "serverUrl": "<string>", "serverUrlSecret": "<string>" } '
{ "id": "<string>", "provider": "<string>", "number": "<string>", "name": "<string>", "assistantId": "<string>", "squadId": "<string>", "fallbackDestination": { "type": "number", "number": "<string>", "extension": "<string>", "callerId": "<string>", "message": "<string>", "description": "<string>", "numberE164CheckEnabled": true }, "serverUrl": "<string>", "serverUrlSecret": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "orgId": "<string>", "twilioAccountSid": "<string>", "twilioAuthToken": "<string>" }
Update an existing phone number.
Show child attributes
Server URL must match either workflow.amira.bot or workflow.voicebot.studio
Successful Response