Create Build over REST API fails - BuildID must be set to NULL

Thursday, December 10, 2020
Avatar

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

2 Replies
Thursday, December 10, 2020
Avatar
re: csieber Thursday, December 10, 2020

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.

Regards
David

Saturday, December 19, 2020
Avatar
re: inflectra.david Thursday, December 10, 2020

Thanks David, works perfect now :-)

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Thursday, December 10, 2020
  • Last Reply: Saturday, December 19, 2020
  • Replies: 2
  • Views: 3688