Create a new FieldOption resource adding it to the set of valid choices for an Field where Field.hasFixedOptions = true.
Security
bearerToken
The unique ID of the Field the FieldOption should belong to
Example:"a52b5315-15b8-417f-b742-d6902108bac1"
- Productionhttps://api-v2.dash.app/field-options
- Staginghttps://api-v2.dashstaging.app/field-options
- Create at top level
- Create at sub level
curl -i -X POST \
https://api-v2.dash.app/field-options \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fieldId": "a52b5315-15b8-417f-b742-d6902108bac1",
"value": "My Top Level Folder",
"position": 3,
"parentId": null
}'Success
Permitted actions for FieldOption resources:
FIELD_OPTION:UPDATE_METADATA_WITH_FIELD_OPTION- Whether the user can assign thisFieldOptionas a value inAsset.metadata.values
Response
- Create at top level
- Create at sub level
{ "result": { "id": "1fc6d6c3-c42d-48e2-b0db-5d680a58ca52", "fieldId": "a52b5315-15b8-417f-b742-d6902108bac1", "value": "My Top Level Folder", "position": 0, "leaf": false, "parent": null }, "permittedActions": [] }