Missing Value within Vapi endpoints
# support
i
Hi Vapi Team, I encountered an issue when making an API call using the endpoints listed in your documentation. Endpoint: Create Squad Issue: The "type" value for assistantDestination is missing from the request options. Error Message: "members.0.assistantDestinations.0.type must be one of the following values: assistant" There doesn’t seem to be an option to specify the required type. Thanks in advance! https://cdn.discordapp.com/attachments/1346086266009030666/1346086266608947271/image.png?ex=67c6e807&is=67c59687&hm=65b031505f4a162dbb04bae087293da51857e3846822c59ba48c65d1edb158e1&
v
It looks like you're encountering an issue with the
type
value in the
assistantDestinations
when making a request to the Create Squad API. To resolve this, you need to ensure that the
type
field is included in your request body and set to
"assistant"
. Here's how you can structure your JSON request:
Copy code
json
{
  "members": [
    {
      "assistantId": "your_assistant_id",
      "assistantDestinations": [
        {
          "type": "assistant",  // Make sure to include this line
          "assistantName": "Your Assistant Name",
          "message": "Please hold on while I transfer you.",
          "description": "Transfer to the specified assistant."
        }
      ]
    }
  ]
}
Make sure that the
type
field is explicitly set to
"assistant"
in the
assistantDestinations
array. This should resolve the error message you're seeing:
"members.0.assistantDestinations.0.type must be one of the following values: assistant"
. If you continue to have issues, double-check that your request body matches the required format and that there are no empty member objects. Let me know if you need further assistance! 😊 Sources: - [Create Squad API Documentation](https://docs.vapi.ai/api-reference/squads/create-squad) - [Squad Example](https://docs.vapi.ai/squads-example)
Message marked as helpful by @IT | Mind2Move! 🎉
s
You have to pass the type assistant, and thanks for informing us. Its from the docs team’s side. Let me inform them about the change required.