Skip to main content
string
required
The API key for your account. You can find this in your account settings.
Requires an API key with the apps:write scope. 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 domain 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. The request body is limited to 101 MB (a file of up to 100 MB plus form overhead): a larger request is rejected with 413 FILE_TOO_LARGE while it is still uploading. Only the first file part is read; additional form fields are ignored. Once the application is running, manage it with Start, Stop, and Restart, and check on it with Get Application Status.

Parameters

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

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

Common errors