Skip to main content
POST
/
v2
/
item-filters
Create an Item filter
curl --request POST \
  --url https://api-sandbox.argyle.com/v2/item-filters \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Key paystub fields supported",
  "filters": {
    "status": {
      "eq": "healthy"
    },
    "field_coverage": {
      "paystubs": {
        "gross_pay": {
          "supported": {
            "eq": true
          }
        },
        "paystub_date": {
          "supported": {
            "eq": true
          }
        }
      }
    }
  }
}
'
{
  "id": "087394d4-83b5-4722-8c5e-0235362c12f5",
  "name": "Key paystub fields supported"
}

Authorizations

Authorization
string
header
required

Username = api_key_id, Password = api_key_secret

Body

application/json
name
string
required

Name for the Item filter.

filters
object

The set of filters, which can be applied when listing Items.

Response

200 - application/json
id
string

The ID of the item filter.

Example:

"087394d4-83b5-4722-8c5e-0235362c12f5"

name
string

The name of the item filter.

Example:

"Key paystub fields supported"