Skip to content

Create field options

Request

Create new FieldOption resources adding them to the set of valid choices for an Field where Field.hasFixedOptions = true.

Security
bearerToken
Bodyapplication/jsonrequired
itemsArray of objectsrequired
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
      }
    ]
  }'

Responses

Success

Bodyapplication/json
successesobjectrequired

A map of successful results keyed on the batchItemId provided in the request

failuresobjectrequired

A map of failures keyed on the batchItemId provided in the request

Response
{ "successes": { "property1": {}, "property2": {} }, "failures": { "property1": "OPTION_ALREADY_EXISTS_AT_THIS_LEVEL", "property2": "OPTION_ALREADY_EXISTS_AT_THIS_LEVEL" } }