POST
/
api
/
flows
/
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z",
  "name": "my-flow",
  "tags": [
    "tag-1",
    "tag-2"
  ],
  "labels": {
    "key": "value1",
    "key2": 42
  }
}

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

Examples:

"my-flow"

tags
string[]

A list of flow tags

Examples:
["tag-1", "tag-2"]
labels
object | null

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

Examples:
{ "key": "value1", "key2": 42 }

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

Examples:

"my-flow"

tags
string[]

A list of flow tags

Examples:
["tag-1", "tag-2"]
labels
object | null

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

Examples:
{ "key": "value1", "key2": 42 }