Skip to main content
Authorization
string
required
The API key for your account. You can find this in your account settings.
Upload creates a brand-new application from a zip archive: it detects the runtime and version, provisions a container on whichever cluster currently has the lowest RAM usage, and starts it. Use this for a first deployment; for pushing a change to an application that already exists, use Commit Application instead, which is faster because it does not re-provision the container. The caller needs at least 256 MB of available memory on their plan before the upload is accepted, and the zip is capped at 100 MB. The response fields depend on your squarecloud.config: description and subdomain are only present when set there, and language reports the detected runtime and version. Requests are rate limited to 1 upload every 3 seconds per user. Once the application is running, manage it with Start, Stop, and Restart, and check on it with Get Application Status.

Parameters

file
file
required
The application to be uploaded must be compressed in a zip file (.zip) and the Content-Type must be multipart/form-data.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
response
object
The contents of the response.

Common errors