POST
/
filter_definitions
/
{id}
curl --request POST \
  --url https://api.pocketflows.com/filter_definitions/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "<string>",
  "type": "select",
  "options": [
    {
      "label": "<string>",
      "value": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "label": "<string>",
  "type": "select",
  "options": [
    {
      "label": "<string>",
      "value": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the filter definition

Body

application/json

Response

200 - application/json

The updated FilterDefinition object

The response is of type object.