I've already updated some fields using the Airtable API, but never in a multiple select field. Right now I need to update a multiple select field using Airtable API. For this, I'm implementing the following code in a script action on an automation.
let inputConfig = input.config();
let recordId = inputConfig.recorId;
const update = {
"fields": {
"Testeee": [{name: 'A'}, {name: 'B'}]
}}
let myHeaders = new Headers();
myHeaders.append("Authorization", "I_PUT_MY_VALID_TOKEN_HERE");
myHeaders.append("Content-Type", "application/json");
let response = await fetch(`https://api.airtable.com/v0/{baseid}/{tableid}/${recordId}`, {method: 'PATCH', headers: myHeaders, body: JSON.stringify(update)});
let res = await response.json();
console.log(res);
type: "INVALID_VALUE_FOR_COLUMN"
message: "Cannot parse value for field Testeee"