Skip to content

Get field options

Request

Retrieve a list of available options for a field.

Supported field types: MultiOption, Option

Path
fieldIdstringrequired

The API name for the field

Example:my_field
Query
$filterstring

Filter the results using OData filter syntax

$skipinteger

Skip the specified number of results

$topinteger

Limit the number of results returned

const fieldId = 'my_field';
const resp = await fetch(
  `https://api-sandbox.lawvu.com/v2/fields/${fieldId}/options`,
  {method: 'GET'}
);

const data = await resp.text();
console.log(data);

Responses

OK

Bodyapplication/json
itemsArray of objects(FieldOption)

The collection of items

Response
{ "items": [ { … }, { … } ] }