Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > Create Build over REST AP...
Dear Spira Team,
I want to create a build using the REST API via postman. The json body looks like
{
"BuildId":24,
"BuildStatusId":2,
"ProjectId":9,
"ReleaseId":556,
"Name":"Rechnungssuche #24"
}
I get an 400 Bad Request and the error message
"Vor der Erstellung eines Build Objekts muss seine BuildId auf Null gesetzt werden."
English: before you create a build object, its BuildId must be set to NULL.
Where is my mistake?
Kind regards,
Cornelia
Hi Cornelia
The BuildId field is auto-generated by Spira.
You need to leave that empty/null. Once the build is created, the JSON returned will have the new value for you.
RegardsDavid
Thanks David, works perfect now :-)
And if you have any questions, please email or call us at +1 (202) 558-6885