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:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application does not exist.
  • 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.
  • ENV_VARIABLE_TOO_LONG: An environment variable key or value exceeds length limits.
  • ENV_LIMIT_EXCEEDED: The total number of environment variables exceeds the limit of 25.
string
A descriptive message providing additional details about the error.