Skip to main content
POST
/
v1
/
apps
/
{id}
/
files
/
upload
Upload Files to Application
curl --request POST \
  --url https://api.vertracloud.app/v1/apps/{id}/files/upload \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "response": {}
}
id
string
required
The ID of the application to upload files to. If the application belongs to a workspace, include the workspace_id in the format appId-workspace_id.
restart
string
If set to "true", the application will automatically restart after the upload completes.
file
file
required
The ZIP file to upload. If a single root directory is detected, it will be automatically flattened.

Response

response
object
The result returned from the wing after the upload.
{
  "response": {}
}

Error Responses

code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated.
  • ACCESS_DENIED: The user does not have access to the application.
  • APP_NOT_FOUND: The specified application does not exist.
  • NO_FILE_UPLOADED: No file was provided in the request.
  • UNKNOWN_ERROR: An unexpected error occurred in the wing.
  • INTERNAL_SERVER_ERROR: An unexpected server error occurred.
{
  "code": "UNAUTHORIZED"
}