Skip to main content
POST
/
api
/
block_schemas
/
filter
Read Block Schemas
curl --request POST \
  --url https://api.example.com/api/block_schemas/filter \
  --header 'Content-Type: application/json' \
  --data '
{
  "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"
      ]
    }
  },
  "offset": 0,
  "limit": 123
}
'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z",
    "checksum": "<string>",
    "block_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "fields": {},
    "block_type": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created": "2023-11-07T05:31:56Z",
      "updated": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "slug": "<string>",
      "logo_url": "<string>",
      "documentation_url": "<string>",
      "description": "<string>",
      "code_example": "<string>",
      "is_protected": false
    },
    "capabilities": [
      "<string>"
    ],
    "version": "non-versioned"
  }
]

Headers

x-prefect-api-version
string

Body

application/json
block_schemas
BlockSchemaFilter · object

Filter BlockSchemas

offset
integer
default:0
Required range: x >= 0
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

Response

Successful Response

id
string<uuid>
required
created
string<date-time> | null
required
updated
string<date-time> | null
required
checksum
string
required

The block schema's unique checksum

block_type_id
string<uuid> | null
required

A block type ID

fields
Fields · object

The block schema's field schema

block_type
BlockType · object

The associated block type

capabilities
string[]

A list of Block capabilities

version
string
default:non-versioned

Human readable identifier for the block schema