Add list options
POST {{api-server}}/:token/{{api-version}}/meta/model/fields/:select_field_uuid/options
This API endpoint is used to add a new option in the list of a SELECTONE or MULTISELECT metadata field.
Body attributes
Attribute | Description | Type | Required |
---|---|---|---|
options | An array containing api_slug and label for each of the new options | Array | Yes |
api_slug | API slug value for the new options. It should be unique. Also - the slug should be in lowercase, no special characters or language variants allowed and please do not use space (" ) but only underscores (_"). | String | Yes |
label | Label name of the new option. This is the value that the Filerobot users will see. | String | Yes |
Request Body
{"options"=>[{"api_slug"=>"socks", "label"=>"Socks"}, {"api_slug"=>"belt", "label"=>"Belt"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Filerobot-Key | string | Filerobot API key | |
Content-Type | string |
RESPONSES
status: OK
{"status":"success","field_uuid":"cf1b6ee8-cc1e-4436-b23d-13c38a67e596","api_version":{"hash":"fb3440b980d63376bfcd277b9811349cd7f6280a","datetime":"2023-08-07T23:26:19+07:00"}}