curl --location --request GET 'https://open.teambition.com/api/code/pipeline/platforms//pipelines//builds' \
--header 'X-Tenant-Id;' \
--header 'X-Tenant-Id;' \
--header 'X-Tenant-Type;' \
--header 'X-Tenant-Type;' \
--header 'Authorization;'
{
"result": {
"totalSize": 0,
"nextPageToken": "string",
"builds": [
{
"cause": {
"causeType": "string",
"userId": "string",
"userName": "string"
},
"repo": {
"type": "git",
"remoteUrl": "string",
"branches": [
{
"SHA1": "string",
"name": "string",
"id": "string"
}
]
},
"id": "string",
"code": "string",
"organizationId": "string",
"pipelineId": "string",
"version": "string",
"changeSets": [
{
"type": "git",
"shaId": "string",
"htmlUrl": "string",
"msg": "string",
"timestamp": 0,
"user": {
"userId": "string",
"name": "string"
}
}
],
"createdAt": "string",
"updatedAt": "string",
"duration": 0,
"number": 0,
"status": "BuildStatusList",
"timestamp": 0,
"url": "string",
"log": "string",
"stages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"subStages": [
{
"code": "string",
"name": "string",
"status": "string",
"timestamp": 0,
"duration": 0,
"pauseDuration": 0,
"errorType": "string",
"errorMessage": "string",
"log": "string"
}
]
}
]
}
]
},
"code": 0,
"errorMessage": "string",
"requestId": "string"
}