[Experimental]
Create an environment variable
⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
Creates a new environment variable in a project's production or preview environment, or a preview branch override when branchId is supplied. Returns 409 if a variable with the same key already exists in that scope — use PATCH to replace its value. Values are stored encrypted and are not returned by subsequent reads.
post/v1/environment-variables
Request
- Base URL: https://api.prisma.io
- URL: https://api.prisma.io/v1/environment-variables
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
- HTTP bearer
Request body
Response
Variable created.
Changes
No recorded changes to this operation across all 1 revision of this API.