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

AttributeDescriptionTypeRequired
optionsAn array containing api_slug and label for each of the new optionsArrayYes
api_slugAPI 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 (_").StringYes
labelLabel name of the new option. This is the value that the Filerobot users will see.StringYes

Request Body

{"options"=>[{"api_slug"=>"socks", "label"=>"Socks"}, {"api_slug"=>"belt", "label"=>"Belt"}]}

HEADERS

KeyDatatypeRequiredDescription
X-Filerobot-KeystringFilerobot API key
Content-Typestring

RESPONSES

status: OK

{"status":"success","field_uuid":"cf1b6ee8-cc1e-4436-b23d-13c38a67e596","api_version":{"hash":"fb3440b980d63376bfcd277b9811349cd7f6280a","datetime":"2023-08-07T23:26:19+07:00"}}