Can't attach workflow to free vapi sip phone numbe...
# support
s
The request is sent with a smsEnabled: true for some reason which the backend does not accept
k
The Vapi dashboard incorrectly sends smsEnabled: true when assigning a SIP number, which the backend rejects. Use the API directly without that field or set it to false to avoid the error..
s
yes works with the API
n
hi! please, could you share with me the curl you have used to update from api, I have run this one: and I get error 404 curl -X POST "https://api.vapi.ai/phone-number/423333-XXXXXXXX" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer ******************************" \ -d '{ "assistantId": "cd7108dc-*******************************" }' also i tried assistant_id and with "smsEnabled":false
s
Copy code
curl -X PATCH "https://api.vapi.ai/phone-number/{phone-number-id} \
     -H "Authorization: API_KEY" \
     -H "Content-Type: application/json" \
     -d '{
         "assistantId": null,
       "workflowId": "{workflowId}"
     }'
c
checking if this is resolved/solved for you?
3 Views