Update environment variable
documentedUpdate an environment variable for a project.
PATCH /v1/projects/{idOrName}/env/{id}Projectsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.vercel.com/v9/projects/{{$idOrName}}/env/{{$id}}/editProjectEnv" \
-X PATCH \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"key": "{{$key}}", "target": {{$target}}, "gitBranch": "{{$gitBranch}}", "type": "{{$type}}", "value": "{{$value}}", "customEnvironmentIds": {{$customEnvironmentIds}}, "comment": "{{$comment}}"}'