Replace all list options

PUT {{api-server}}/:token/{{api-version}}/meta/model/fields/:select_field_uuid/options

This endpoint replaces the existing list options.

Body attributes

AttributeDescriptionTypeRequired
optionsArray containing api_slug and label for each of the new optionArrayYes
api_slugAPI slug value for the new optionsStringYes
labellabel name of the new optionStringYes

Request Body

{"options"=>[{"api_slug"=>"bw", "label"=>"Black and white"}, {"api_slug"=>"col", "label"=>"Colorfull"}]}

HEADERS

KeyDatatypeRequiredDescription
X-Filerobot-KeystringFilerobot API key
Content-Typestring

RESPONSES

status: OK

{"status":"success","field_uuid":"9395c01d-eb61-4013-bfff-cb1bd8d21707","api_version":{"hash":"fb3440b980d63376bfcd277b9811349cd7f6280a","datetime":"2023-08-07T23:26:19+07:00"}}