Component Labels REST API Request to Assign Labels Throws 405 Error - Sonatype Lifecycle & Repository Firewall - Sonatype Community

Component Labels REST API Request to Assign Labels Throws 405 Error

post by kwagner on Jan 10, 2024

According to the documentation Component Labels REST API - v2 it is possible assign component labels to organizations and applications. This is documented as a POST HTTP request. Unfortunately it throws a 405 Error.

Can you confirm that this API should work as intended?

post by kwagner on Jan 16, 2024

We were able to fix this issue with the help of Sonatype support. The logs showed that our POST requests were received as GET requests. It turned out that all our requests got redirected internally, thus altering the method type.

So I’m happy to say that the API is working as intended.