Skip to main content
POST
Create or Edit Application Environment Variables
string
required
The ID of the application to create or update environment variables for.
string
If the application belongs to a workspace, the workspace’s ID. Required for workspace members acting on an application they don’t own.
array
required
An array of environment variable objects.

Response

array
An array of environment variable objects after creation or update.

Error Responses

string
The error code indicating the reason for failure. Possible values:
  • AUTH_TOKEN_MISSING, API_KEY_INVALID, SESSION_REVOKED: The Authorization header is missing, the API key is invalid, or the dashboard session was revoked (401).
  • API_KEY_IP_DENIED, API_KEY_SCOPE_DENIED: The API key is used from an IP outside its allowlist, or it lacks the scope the route requires (403).
  • ACCESS_DENIED: You are a workspace member without the permission for this action, or you did not send the workspace_id (403).
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application was not found.
  • INVALID_BODY: The request body is not a valid array or is empty.
  • INVALID_ENVIRONMENT: One or more environment variables are invalid or use forbidden keys.
  • VALIDATION_ERROR: A key is longer than 255 characters or a value is longer than 3,072 characters (400); details.path points to the field.
  • ENV_LIMIT_EXCEEDED: The total number of environment variables exceeds the limit of 256.
string
A descriptive message providing additional details about the error.
Last modified on November 20, 2026