Environments
Create or Edit Application Environment Variables
Creates or updates environment variables for an application by its ID.
POST
Create or Edit Application Environment Variables
If the application belongs to a workspace, the workspace’s ID. Required for workspace members acting on an application they don’t own.
Response
Error Responses
The error code indicating the reason for failure. Possible values:
AUTH_TOKEN_MISSING,API_KEY_INVALID,SESSION_REVOKED: TheAuthorizationheader 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 theworkspace_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: Akeyis longer than 255 characters or avalueis longer than 3,072 characters (400);details.pathpoints to the field.ENV_LIMIT_EXCEEDED: The total number of environment variables exceeds the limit of 256.
Last modified on November 20, 2026