Update a Field resource.
Security
bearerToken
If true, admins and contributors can create FieldOption resources for this Field. If false, FieldOption creation uses the existing folder-specific permission logic.
Example:true
If true it is recommended for assets to have a value for this Field. Clients should highlight missing recommended values during creation and editing of assets. Clients can also use the FIELD_IS_EMPTY criterion in an AssetSearch to find assets with missing recommended values.
Example:true
The sort to use when searching for FieldOptions related to this Field if no sort is provided.
Whether assets with a value for this Field can be browsed in the Browse page. Note that this option cannot be changed for Folder fields or non-fixed-option fields.
Example:false
- Productionhttps://api-v2.dash.app/fields/{id}
- Staginghttps://api-v2.dashstaging.app/fields/{id}
curl -i -X PATCH \
https://api-v2.dash.app/fields/cfb665ca-ce35-4418-b9d5-70ee815db4bd \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Folders",
"contributorsCanCreateFieldOptions": true,
"recommended": true,
"defaultSortField": {
"value": "FIELD_ID"
},
"browsable": false
}'Response
{ "result": { "id": "a52b5315-15b8-417f-b742-d6902108bac1", "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "name": "Folders", "dataType": "STRING", "multiValue": true, "hasFixedOptions": true, "hierarchical": true, "editControl": "FOLDER_PICKER", "contributorsCanCreateFieldOptions": true, "indestructible": true, "recommended": true, "defaultSortField": "FIELD_ID", "browsable": true, "entityType": "ASSET", "lookupType": "PRODUCT_VARIANT_CRITERION" }, "permittedActions": [ { … } ] }