TeamCity API - how to update a build step?

I'm trying to update a build step across multiple (100+) projects, so the API looks to be a good candidate. However, I'm having 2 problems:

  1. It's not obvious how to update a specific build step
  2. Using Postman, I can see my target buildtype, with all the steps, but if I try to GET one of them using <base_url>/buildTypes/id:<buildtypeid>/steps/id:RUNNER_208/ (using Postman), I get:

Responding with error, status code: 404 (Not Found).
Details: jetbrains.buildServer.server.rest.errors.NotFoundException: No step with id 'id:RUNNER_208' is found  in the build configuration.
Could not find the entity requested. Check the reference is correct and the user has permissions to access the entity.

It's not likely to be a permissions issue and RUNNER_208 definitely exists in the BuildTypes Steps.

Can anyone help me out?

Thanks

Richard

 

0
1 comment

Hi Richard!

You need to get the step you want by using locators , as in the following example:

<base_url>/app/rest/buildTypes/id:<buildtypeid>/steps?locator=id:RUNNER_208

Please let me know if this works for you or if you have any more questions.

Thank you,

Guilherme

0

Please sign in to leave a comment.