cURL
curl --request PATCH \ --url https://api.example.com/api/variables/name/{name} \ --header 'Content-Type: application/json' \ --data ' { "name": "my_variable", "value": "my-value", "tags": [ "tag-1", "tag-2" ] } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Data used by the Prefect REST API to update a Variable.
The name of the variable
255
"my_variable"
The value of the variable
"my-value"
A list of variable tags
["tag-1", "tag-2"]
Successful Response
Was this page helpful?