OsoClarinete
10/29/2025, 3:52 PMVapi Support Bot
10/29/2025, 3:53 PMjavascript
// Example: Assign assistant to phone number
await vapi.phoneNumbers.update({
id: "your-phone-number-id",
assistantId: "your-assistant-id"
});
This helps prevent the "Assistant not valid" error and ensures calls are handled as expected ([Discord discussion](https://discord.com/channels/1211482211119796234/1336652401733668864)).
Source:
- [Discord discussion about Assistant not valid error](https://discord.com/channels/1211482211119796234/1336652401733668864)