Create new FieldOption resources adding them to the set of valid choices for an Field where Field.hasFixedOptions = true.
Security
bearerToken
- Productionhttps://api-v2.dash.app/field-option-batches
- Staginghttps://api-v2.dashstaging.app/field-option-batches
curl -i -X POST \
https://api-v2.dash.app/field-option-batches \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"items": [
{
"batchItemId": "my-item-1",
"fieldId": "a52b5315-15b8-417f-b742-d6902108bac1",
"value": "Folder A",
"position": 2,
"parentId": null
}
]
}'Response
{ "successes": { "property1": { … }, "property2": { … } }, "failures": { "property1": "OPTION_ALREADY_EXISTS_AT_THIS_LEVEL", "property2": "OPTION_ALREADY_EXISTS_AT_THIS_LEVEL" } }