Skip to content

Delete an option from a field

Request

Removes an option from a field by value.

Supported field types: MultiOption, Option

Path
fieldIdstringrequired

The API name for the field

Example:my_field
valuestringrequired

The system generated value for the field option

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

if (resp.status === 204) {
  console.log('success');
} else {
  const data = await resp.text();
  console.log(data);
}

Responses

No Content

Response
No content