GPT Driver User Guide
GPT Driver API
GPT Driver API
  • Welcome
  • Basics
    • Upload builds
      • Web UI
      • API
      • CI/CD Examples
        • Github Actions
        • Bitrise
        • GitLab CI
        • CodeMagic
        • Jenkins
        • Circle CI
    • Trigger tests
      • Web UI
      • API
      • API Examples
      • Physical-Device Examples
  • MORE
    • Webhooks
    • Screenshots
    • Meta Data
    • App launch parameters
    • Run existing Appium tests
    • Github Action Step Script
    • TestRail Integration
  • Connectors (Jira + Google Docs)
  • Splunk Integration
Powered by GitBook
On this page
  1. Basics
  2. Upload builds

API

PreviousWeb UINextCI/CD Examples

Last updated 7 months ago

To upload a build file directly from your CI/CD system we recommend using our api endpoint.

Examples

With a curl command:

curl -L \
  -X POST \
  -H "Content-Type: multipart/form-data" \
  -F "build=@path/to/your/build_file.apk" \
  -F "organisation_key=YOUR_ORGKEY_12345" \
  -F "platform=android" \
  -F "metadata={\"branch\":\"dev-feature-007\"}" \
  https://api.mobileboost.io/uploadBuild/

  • POSTUpload a build file
  • Examples

Upload a build file

post

Uploads a build file along with associated metadata.

Body
buildstring ยท binaryOptional

The build file to be uploaded.

organisation_keystringOptional

The organization key.

Example: ORG_KEY_12345
platformstringOptional

The platform for the build. Options are "android" or "ios".

Example: android
metadatastringOptional

Metadata as a JSON string.

Example: {"branch":"dev-feature-1"}
Responses
200
Build uploaded successfully
application/json
post
POST /uploadBuild/ HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 118

{
  "build": "binary",
  "organisation_key": "ORG_KEY_12345",
  "platform": "android",
  "metadata": "{\"branch\":\"dev-feature-1\"}"
}
200

Build uploaded successfully

{
  "buildId": "build_12345"
}