POST
/
api
/
artifacts
/
latest
/
filter

Headers

x-prefect-api-version
string

Body

application/json
artifacts
object

Filter artifact collections. Only artifact collections 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 collection 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
required
id
string
required
key
string
required

An optional unique reference key for this artifact.

latest_id
string
required

The latest artifact ID associated with the key.

updated
string | null
required
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.

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'