Skip Navigation LinksHome Page > Forums > SpiraTeam Forums > SpiraTeam Issues & Questi... > Creating a Buid via REST ...
We are trying to create a build via the REST API of Spira but we are not succeeding.
We post to url: /Services/v5_0/RestService.svc/projects/1/releases/175/builds
However whatever we pass in the body we receive the following error (full trace at the bottom):
'The associated release/iteration RL0 does not exist in the current project'
It seems like he does not read the release id correctly.Could you have a look and let me know if this could be a bug or advice on what could be going wrong
<p>The server encountered an error processing the request. The exception message is 'The associated release/iteration RL0 does not exist in the current project'. See server logs for more details. The exception stack trace is: </p>
<p> at Inflectra.SpiraTest.Business.BuildManager.Insert(Int32 projectId, Int32 releaseId, String name, String description, DateTime creationDate, BuildStatusEnum status, Int32 userId)
at Inflectra.SpiraTest.Web.Services.v5_0.RestService.Build_Create(String project_id, String release_id, RemoteBuild remoteBuild)
at SyncInvokeBuild_Create(Object , Object , Object )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object inputs, Object& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)</p>
Could you please log a support ticket and https://www.inflectra.com/Support/Ticket/List.aspx
and provide the body you are using.
The method definitely works, but it may be that the ReleaseId is not being correctly specified.