cURL
curl --request PUT \ --url https://api.specular.dev/branches/{id}/env-vars \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "vars": [ { "name": "<string>", "value": "<string>" } ] } '
{ "environmentVariables": [ { "id": "<string>", "name": "<string>", "value": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } ] }
Bearer authentication with API key (format: Bearer sk_xxx)
Branch ID
Environment variables to upsert
Show child attributes
Environment variables upserted