Updating "serverUrlSecret " from the API doesn't w...
# support
m
v
Hi @Moe, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Update Assistant]() * [Update Phone Number]() * [List Phone Numbers]() * [Get Assistant]() -----------------------------
### Answer It seems you are encountering issues with updating the
serverUrlSecret
through the API. Make sure that your request format adheres to the specifications detailed in the documentation. Here's an example of how you can structure your PATCH request to update
serverUrlSecret
for an assistant:
Copy code
bash
curl --request PATCH \
  --url https://api.vapi.ai/assistant/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "serverUrlSecret": "new_secret_here"
  }'
[(1)]() Ensure that you replace
<id>
,
<token>
, and
new_secret_here
with the appropriate values. If problems persist, it could be an issue with how the request is being sent or it might be a bug, and checking with the documentation or verifying the request format might be necessary.
s
Please send me the payload on DM
3 Views