Akash Malhotra
06/12/2025, 3:37 AMVapi Support Bot
06/12/2025, 3:39 AMmessages field in a PATCH /assistant/{id} request should preserve its value, but typically, optional fields should remain unchanged if not provided. As a workaround, to avoid your system prompt being reset, always include the existing messages value in your PATCH payload when updating other fields:
json
{
"model": {
"provider": "google",
"model": "gemini-1.5-pro"
},
"messages": [ /* your current system prompt here */ ]
}
This ensures your custom prompt is retained until the API behavior is clarified or fixed.
Source:
- [Vapi API Reference – Update Assistant (PATCH)](https://docs.vapi.ai/api-reference/assistants/update?explorer=true)Chiranjeet Mishra
06/13/2025, 2:19 AMChiranjeet Mishra
06/13/2025, 2:19 AM