Ella Edwards
04/24/2025, 10:29 PMVapi Support Bot
04/24/2025, 10:30 PMjavascript
// When updating, preserve all properties
const response = await vapi.patch('/assistant/{id}', {
model: {...modelPrevProperties, ...updated}
});
Unfortunately, Vapi doesn't currently have version history for prompts, so documenting your settings before updates is recommended.
Sources:
- [Discord conversation about nested properties](https://discord.com/channels/1211482211119796234/1336023224898814012)
- [Discord conversation about version history](https://discord.com/channels/1211482211119796234/1334944779850485790)Kyle
04/24/2025, 10:59 PMElla Edwards
04/25/2025, 12:42 AM