envvars
Upload environment variables
Changed onUpload mulitple environment variables for a specific project and environment.
post/api/v1/projects/{projectRef}/envvars/{env}/import
Request
- Base URLhttps://api.trigger.dev
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"variables": [
{
"name": "SLACK_API_KEY",
"value": "slack_123456"
}
]
}Response
Environment variables imported successfully
Changes
- breaking
removed the media type
multipart/form-datafrom the request body
- breaking
- info
the endpoint scheme security
secretKeywas added to the API - info
the endpoint scheme security
apiKeywas removed from the API
- info