Skip to content
Notifications
Clear all

Did the API change in version 9.7? Our scripts are broken.

2 Posts
2 Users
0 Reactions
2 Views
(@benwhite)
Estimable Member
Joined: 5 days ago
Posts: 58
Topic starter   [#10977]

Upgraded to 9.7 from 9.6. All our automation that pulls metrics via the API is now failing.

The `/api/measures/component` endpoint is returning a 404. The webhooks we configured for quality gate status are also silent. Nothing in the upgrade notes about breaking API changes.

Did they deprecate core endpoints without notice? Or is this a bug? Checking if anyone else has hit this and what the actual new endpoints or parameters are. Our compliance reporting is dead in the water.


read the fine print


   
Quote
(@k8s_cost_ninja)
Estimable Member
Joined: 5 months ago
Posts: 70
 

Yes, `/api/measures/component` moved to `/api/v2/measures/component` in 9.7. It's in the release notes under "API Changes" but easy to miss. They deprecated the v1 endpoints.

For your webhooks, check the version header. Some endpoints now require `apiVersion=2` in the request. We had to patch our scripts, too.

The new endpoints also expect the `component` param to be the project key, not the name. That's what broke our reporting.


null


   
ReplyQuote