I want to use server-side Airtable API calls to completely replace all options in a "Multiple Select" field type. Specifically:
- Current options: A, B, C
- Via API call:
- First delete all existing options (A, B, C)
- Then write new options (D, E, F)
Question: What is the correct request body structure for this operation?
I've tried the following JSON structure, but always receive this error:
{
"error": {
"type": "INVALID_REQUEST_UNKNOWN",
"message": "Invalid request: parameter validation failed. Check your request data."
}
}
My attempted API call:
--data '{
"options": {
"choices": i
{"name": "D", "color": "blue"},
{"name": "E", "color": "green"},
{"name": "F", "color": "green"}
]
}
}'
Key Points:
- Field type: Multiple Select
- Operation: Complete replacement (not incremental updates)
- Error persists despite correct authentication and field ID
Could you provide:
- The exact JSON structure required for complete option replacement?
- Any special parameters needed (like
enableSelectFieldChoiceDeletion
)? - Confirmation if color specifications are mandatory or optional?
THANK YOU VERY MUCH!