Replace the entire set of environment variables
Changed onReplaces the application's environment variables with exactly the set provided in the request body. Variables not listed are removed; pass an empty object to wipe all of them.
Limits: up to 256 variables, each key max 1024 chars, each value max 4096 chars.
Names are letters, digits, underscores, dots and hyphens, not starting with a digit. A value with spaces or shell characters (such as & or ;) is stored single-quoted, as the dashboard does, because the application loads its variables with a shell; a value already quoted is kept as sent. A reference to another variable ($HOST, ${HOST}, alone or inside double quotes) keeps working; command substitution ($(...), backticks) is stored as plain text. The 4096-character limit counts the value, not the quotes added around it.
Requires the workspace Administrator role (or ownership) when called against a workspace-shared application.
Request
- Base URLhttps://api.squarecloud.app
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Application identifier. Optionally suffixed with -<workspaceId> to act on a workspace-shared application.
Request body
Response
Environment variables replaced.
Changes
- warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status - warning
added the new
SNAPSHOTS_UNAVAILABLEenum value to the////response property for the response status
- warning
- warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRITE_FAILEDenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status - warning
added the new
WRONG_HOSTenum value to the////response property for the response status
- warning