IT | Mind2Move
03/03/2025, 11:46 AMVapi Support Bot
03/03/2025, 11:47 AMtype 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:
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)Vapi Support Bot
03/03/2025, 11:48 AMAniah
03/04/2025, 10:12 AM