See all operations
GET: projects/{project_id}/releases/{release_id}/builds/{build_id}
Description
Retrieves the a single build (and associated source code revisions) by its id
How to Execute
To access this REST web service, you need to use the following URL:
https://api.inflectra.com/Spira/Services/v4_0/RestService.svc/projects/{project_id}/releases/{release_id}/builds/{build_id}
Request Parameters
Name
|
Description
|
project_id
|
|
release_id
|
|
build_id
|
|
Request Body
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
Property
|
Description
|
BuildId
|
The id of the build
|
BuildStatusId
|
The id of the status of the build (1=Failed, 2=Passed)
|
ProjectId
|
The id of the project the build belongs to
|
ReleaseId
|
The id of the release or iteration the build belongs to
|
Name
|
The name of the build
|
Description
|
The detailed description of the host
Optional
|
LastUpdateDate
|
The date/time that the build was last modified
|
CreationDate
|
The date the build was created
Pass null to use the current server date/time
|
BuildStatusName
|
The display name of the status of the build
Read-only
|
Revisions
|
The list of source code revisions associated with the build
|
<RemoteBuild xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v4_0.DataObjects">
<BuildId i:nil="true" />
<BuildStatusId>0</BuildStatusId>
<BuildStatusName i:nil="true" />
<CreationDate i:nil="true" />
<Description i:nil="true" />
<LastUpdateDate>0001-01-01T00:00:00</LastUpdateDate>
<Name i:nil="true" />
<ProjectId>0</ProjectId>
<ReleaseId>0</ReleaseId>
<Revisions i:nil="true" />
</RemoteBuild>
{"BuildId":null,
"BuildStatusId":0,
"BuildStatusName":null,
"CreationDate":null,
"Description":null,
"LastUpdateDate":"\/Date(-62135578800000-0500)\/",
"Name":null,
"ProjectId":0,
"ReleaseId":0,
"Revisions":null}