Skip to main content
POST
/
browsers
/
{id}
/
fs
/
upload_zip
Upload a zip archive and extract it
curl --request POST \
  --url https://api.onkernel.com/browsers/{id}/fs/upload_zip \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form zip_file='@example-file' \
  --form 'dest_path=<string>'
{
  "code": "bad_request",
  "message": "Missing required field: app_name",
  "details": [
    {
      "code": "invalid_input",
      "message": "Provided version string is not semver compliant"
    }
  ],
  "inner_error": {
    "code": "invalid_input",
    "message": "Provided version string is not semver compliant"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Browser session ID

Body

multipart/form-data
zip_file
file
required
dest_path
string
required

Absolute destination directory to extract the archive to.

Response

Zip uploaded and extracted successfully