Skip to main content
POST
Create Flow

Headers

x-prefect-api-version
string

Body

application/json

Data used by the Prefect REST API to create a flow.

name
string
required

The name of the flow

Pattern: ^[^/%&><]+$
Example:

"my-flow"

tags
string[]

A list of flow tags

Example:
labels
Labels · object | null

A dictionary of key-value labels. Values can be strings, numbers, or booleans.

Example:

Response

Successful Response

An ORM representation of flow data.

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

The name of the flow

Pattern: ^[^/%&><]+$
Example:

"my-flow"

tags
string[]

A list of flow tags

Example:
labels
Labels · object | null

A dictionary of key-value labels. Values can be strings, numbers, or booleans.

Example: