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
Attribute | Description | Type | Required |
---|---|---|---|
options | Array containing api_slug and label for each of the new option | Array | Yes |
api_slug | API slug value for the new options | String | Yes |
label | label name of the new option | String | Yes |
Request Body
{"options"=>[{"api_slug"=>"bw", "label"=>"Black and white"}, {"api_slug"=>"col", "label"=>"Colorfull"}]}
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"}}