cURL
curl --request POST \ --url https://api.example.com/api/variables/ \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "value": "my-value", "tags": [ "<string>" ] } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "created": "2023-11-07T05:31:56Z", "updated": "2023-11-07T05:31:56Z", "name": "<string>", "value": "my-value", "tags": [ "<string>" ] }
Create a variable.
For more information, see https://docs.prefect.io/v3/concepts/variables.
Data used by the Prefect REST API to create a Variable.
The name of the variable
255
The value of the variable
"my-value"
A list of variable tags
Successful Response
Was this page helpful?