v50

latestOpenAPI 3.1.0raw.githubusercontent.com2025-01-16170291390.7 KB
Variables

Create Variable

post/api/variables/

Headers

x-prefect-api-versionstring

Request body

namestring required

The name of the variable

valuestring required

The value of the variable

tagsstring[]

A list of variable tags

Example request

{
  "name": "my-variable",
  "value": "my-value",
  "tags": [
    "tag-1",
    "tag-2"
  ]
}

Response

Successful Response

idstring uuid
createdstring date-time
updatedstring date-time
namestring required

The name of the variable

valuestring required

The value of the variable

tagsstring[]

A list of variable tags

Example response

{
  "name": "my-variable",
  "value": "my-value",
  "tags": [
    "tag-1",
    "tag-2"
  ]
}