Error : property provider should not exist on assi...
# support
r
Please see the attached image, Story: I'm trying to add the assistant id to the twilio number but I'm not able to do that. https://cdn.discordapp.com/attachments/1344930419321339934/1344930419564351519/image.png?ex=67c2b38f&is=67c1620f&hm=b849974019fe66beb475c0597209a8d9390eda940bb42912bc9f259e76acfb01&
v
It looks like you're encountering the error message "property provider should not exist" when trying to add the assistant ID to your Twilio number. This error typically occurs because the
provider
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:
Copy code
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)
k
Hey @rudra, try the following curl request to update the phone number and let me know how it goes for you.
Copy code
curl -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"
}'
k
@rudra my mistake just remove the provider field and it will work.
4 Views