buildDistro
Attach a file to a build
Please note the unique upload server URL for this endpoint.
The file must be included in a 'file' field as form data. Please see below for an example curl request:
curl -X POST \
-F "file=@test_results.html" \
-F 'data={"fileName":"user friendly file name"}' \
-H "X-API-KEY:API-KEY" \
https://upload-api.runway.team/v1/app/{appId}/bucket/{bucketId}/build/{buildDistroBuildId}/additionalFiles
post/app/{appId}/bucket/{bucketId}/build/{buildDistroBuildId}/additionalFiles
Request
- Base URLhttps://upload-api.runway.team/v1
- URLhttps://upload-api.runway.team/v1/app/{appId}/bucket/{bucketId}/build/{buildDistroBuildId}/additionalFiles
- AuthAPI key in header X-API-Key
Path parameters
appIdstring required
The id of the app
bucketIdstring required
The id of the bucket
buildDistroBuildIdstring required
The id of the Build Distro build
Request body multipart/form-data
Response
A Build Distro build response
Example response
{
"buildId": "12345",
"bucketName": "CIs",
"bucketId": "abc123",
"artifactFileName": "my-app.ipa",
"createdAt": "2022-03-02T01:15:00Z",
"updatedAt": "2022-03-02T01:15:00Z",
"downloadURL": "https://api.runway.team/v1/app/my-app/bucket/my-bucket/build/my-build/download",
"ciBuildInfo": {
"buildHash": "abc123def456",
"buildIdentifier": "123",
"buildUrl": "https://ci.example.com/build/123",
"buildStartedAt": "2022-03-02T01:15:00Z",
"buildFinishedAt": "2022-03-02T01:20:00Z",
"providerBuildStatusString": "In progress",
"commit": "abcdef123456",
"commitMessage": "Fix bug in authentication",
"commitAuthor": "John Doe",
"commitUrl": "https://github.com/org/repo/commit/abcdef123456",
"workflowName": "CI Build",
"branchName": "main",
"workflowRunIdOrCommaDelimitedIds": "workflow-run-123"
},
"binaryBuildNumber": "12345",
"binaryBuildVersion": "1.2.3",
"binaryBuildType": "ipa",
"additionalArtifacts": [
{
"fileName": "test_results.html",
"size": 1048576,
"downloadUrl": "https://api.runway.team/v1/app/my-app/bucket/my-bucket/build/my-build/additionalFiles/test_results.html"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.