Skip to main content
POST
/
api
/
variables
/
count
Count Variables
curl --request POST \
  --url https://api.example.com/api/variables/count \
  --header 'Content-Type: application/json' \
  --data '
{
  "variables": {
    "operator": "and_",
    "id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "name": {
      "any_": [
        "<string>"
      ],
      "like_": "my_variable_%"
    },
    "tags": {
      "operator": "and_",
      "all_": [
        "tag-1",
        "tag-2"
      ],
      "is_null_": true
    }
  }
}
'
123

Headers

x-prefect-api-version
string

Body

application/json
variables
VariableFilter · object

Filter variables. Only variables matching all criteria will be returned

Response

Successful Response

The response is of type integer.