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"
}
}Upload a zip file and extract its contents to the specified destination path.
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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Browser session ID
Zip uploaded and extracted successfully