rudra
02/28/2025, 7:13 AMVapi Support Bot
02/28/2025, 7:14 AMprovider
field is included in your request payload, which is not required for this API call.
To resolve this issue, you should remove the providerId
field from your JSON body. Your updated JSON payload should look like this:
json
{
"assistantId": "3c02fda2-6ef9-43f0-ac74-636032cdd9e7"
}
Make sure to keep the Content-Type
header set to application/json
and use the correct PATCH method for your request. After making this change, try sending the request again, and it should work without the error. If you have any more questions or need further assistance, feel free to ask! 😊
Sources:
- [Vapi API Reference: Update Phone Number](https://docs.vapi.ai/api-reference/phone-numbers/update-phone-number)
- [Error Handling in Vapi API](https://discord.com/channels/1211482211119796234/1211483291191083018/1331719181732679751)Kyle
03/02/2025, 4:17 AMcurl -X PATCH https://api.vapi.ai/phone-number/insert-your-phone-number-id-here \
-H "Authorization: Bearer token" \
-H "Content-Type: application/json" \
-d '{
"provider": "twilio",
"assistantId": "insert-your-assistant-id-here"
}'
rudra
03/04/2025, 7:37 AMKyle
03/06/2025, 10:57 PM