PUT
/
api
/
v1
/
projects
/
{project_id}
/
vars
Update a project environment variable
curl --request PUT \
  --url https://app.miget.com/api/v1/projects/{project_id}/vars \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>"
}
'

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

project_id
string
required

Project ID or UUID

Body

application/json

Update a project environment variable

key
string
required

Variable name to update

value
string
required

New variable value

Response

Update a project environment variable