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
Attribute | Description | Type | Required |
---|---|---|---|
currentapislug | The current API slug value that needs to be edited. It can be taken from Get List optionsresponse. | String | Yes |
options | An array containing the old API slug, the new API slug and the new label. | Array | Yes |
newapislug | API slug value for the new option | String | Yes |
new_label | label name of the new option | String | Yes |
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
Key | Datatype | Required | Description |
---|---|---|---|
X-Filerobot-Key | string | Filerobot API key | |
Content-Type | string |
RESPONSES
status: OK
{"status":"success","field_uuid":"9395c01d-eb61-4013-bfff-cb1bd8d21707","api_version":{"hash":"fb3440b980d63376bfcd277b9811349cd7f6280a","datetime":"2023-08-07T23:26:19+07:00"}}