Edit single list option

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

This API endpoint allows to edit an existing list option.

Body attributes

AttributeDescriptionTypeRequired
currentapislugThe current API slug value that needs to be edited. It can be taken from Get List options response.StringYes
optionsAn array containing the old API slug, the new API slug and the new label.ArrayYes
newapislugAPI slug value for the new optionStringYes
new_labellabel name of the new optionStringYes

Request Body

{"options"=>[{"current_api_slug"=>"category_1", "new_api_slug"=>"category_dress_new", "new_label"=>"Dress New"}, {"current_api_slug"=>"categ_2", "new_api_slug"=>"categ_3"}]}

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"}}