Uploading new builds programmatically
You can upload new builds for your apps programmatically.
Tip: To programmatically upload new builds, you must be assigned the participant role in
MobileFirst Quality Assurance. For more information about the roles, see
Managing participants.
About this task
Updating and distributing a build is a three-step process:
- Request a location to upload the build artifact. This request returns a URL location to upload the build artifact.
- Upload the build artifact by using the URL upload location that is returned in step 1. This request provides information about the uploaded artifact, including the installer ID if the build artifact is installable.
- Optional. Distribute the build to a group of testers by using the installer ID from step 2.
API | Request | Response | Return codes | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Request for the upload URL:
Where:
The following header is used:
|
Note: You can use this generated upload URL once only
to upload an artifact. Use the POST request with a content type of
multipart/form-data to upload the build. Attach the artifact file
to the field named resource.
|
|
|||||||||
|
Refer to the URL that was returned from the request in Create Artifact Metadata. That URL can only be used once.
Request to upload the build
artifact:
The
following content is included in the body of the request:
The following header is used:
|
|
|
||||||||
|
Request to distribute the application
version:
The
following headers are used:
The following JSON parameters are used:
|
|
|
Procedure
Use the MobileFirst Quality Assurance upload and distribute APIs to upload and distribute your .apk, .api, and symbolic files:
Tip: In the following code snippets, the Linux curl command
is used to demonstrate how to use the MobileFirst Quality Assurance APIs. The responses
that are shown are examples and the answers change with each request.