I think I fixed it through the console. I will reach out again if it doesn't stick. Thank you for your help.
Solution for others:
const token = "xxxx";
const assistantIds = [
"xxxx",
];
const body = {
firstMessageMode: "assistant-speaks-first",
firstMessage: "xxxxt?"
};
(async () => {
for (const id of assistantIds) {
try {
const res = await fetch(
https://api.vapi.ai/assistant/${id}, {
method: "PATCH",
headers: {
"Content-Type": "application/json",
"Authorization": Bearer ${token}
},
body: JSON.stringify(body)
});
const data = await res.json().catch(() => ({}));
console.log([PATCH ${id}] status=${res.status}, data);
} catch (e) {
console.log([PATCH ${id}] error, e);
}
}
})();