POST
/
api
/
artifacts
/
filter

Headers

x-prefect-api-version
string

Body

application/json
artifacts
object

Filter artifacts. Only artifacts matching all criteria will be returned

deployments
object

Filter for deployments. Only deployments matching all criteria will be returned.

flow_runs
object

Filter flow runs. Only flow runs matching all criteria will be returned

flows
object

Filter for flows. Only flows matching all criteria will be returned.

limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

offset
integer
default:
0
Required range: x > 0
sort
enum<string>

Defines artifact sorting options.

Available options:
CREATED_DESC,
UPDATED_DESC,
ID_DESC,
KEY_DESC,
KEY_ASC
task_runs
object

Filter task runs. Only task runs matching all criteria will be returned

Response

200 - application/json
created
string | null
data

Data associated with the artifact, e.g. a result.; structure depends on the artifact type.

description
string | null

A markdown-enabled description of the artifact.

flow_run_id
string | null

The flow run associated with the artifact.

id
string
key
string | null

An optional unique reference key for this artifact.

metadata_
object | null

User-defined artifact metadata. Content must be string key and value pairs.

task_run_id
string | null

The task run associated with the artifact.

type
string | null

An identifier that describes the shape of the data field. e.g. 'result', 'table', 'markdown'

updated
string | null