Skip to main content
POST
/
api
/
block_documents
/
count
Count Block Documents
curl --request POST \
  --url https://api.example.com/api/block_documents/count \
  --header 'Content-Type: application/json' \
  --data '
{
  "block_documents": {
    "operator": "and_",
    "id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "is_anonymous": {
      "eq_": false
    },
    "block_type_id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "name": {
      "any_": [
        "<string>"
      ],
      "like_": "my-block%"
    }
  },
  "block_types": {
    "name": {
      "like_": "marvin"
    },
    "slug": {
      "any_": [
        "<string>"
      ]
    }
  },
  "block_schemas": {
    "operator": "and_",
    "block_type_id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "block_capabilities": {
      "all_": [
        "write-storage",
        "read-storage"
      ]
    },
    "id": {
      "any_": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ]
    },
    "version": {
      "any_": [
        "2.0.0",
        "2.1.0"
      ]
    }
  }
}
'
123

Headers

x-prefect-api-version
string

Body

application/json
block_documents
BlockDocumentFilter · object

Filter BlockDocuments. Only BlockDocuments matching all criteria will be returned

block_types
BlockTypeFilter · object

Filter BlockTypes

block_schemas
BlockSchemaFilter · object

Filter BlockSchemas

Response

Successful Response

The response is of type integer.