Management API role delete returns 200

,

A successful delete of a role returns http 200 but according to documentation it should return 204. This leads to issues with our automation pipelines.
First time we have seen this broken was 2021/06/30, last time it was good was 2021/06/28.

Hi @lilvinz,

Welcome to the Auth0 Community!

After testing this myself, I can confirm your observations. When I try to delete a role, I also receive an HTTP 200 status code response.

Let me check with our Engineering teams on whether this is a bug and clarify what the intended response code should be and if any documentation needs to be updated.

For now, could you please elaborate more on how this led to breaking behavior in your automation pipelines?

Thank you.

We are using terraform-provider-auth0 and that fails deleting roles for our review-apps because of the issue i explained. I assume the terraform provider expects the response code to be 204 as it is documented and obviously has been implemented until 2021/06/30. The roles are deleted but the terraform state is kept because of the failure.

Hi @lilvinz,

Thank you for your continued patience.

I have an update. After collaborating with our Engineers, they have clarified that ideally, the response code should return 204 as shown in our current documentation.

However, given that it is currently returning 200, we will be updating our documentation to reflect that to prevent any further breaking behavior.

Please let me know if there are any questions.

Thank you.

Thanks for getting back to me. Honestly to me that looks like you broke the API and now you are going to work around that by redefining what is correct.
That does not prevent further breaking behavior at all in my opinion.
Preventing further breaking would be to add a test-case to your test suite which ensures that you don’t accidentally change your API in the future.

Hi @lilvinz,

Thank you for your response.

I completely understand your frustration and have passed along this information to our Engineers. Whenever we receive valuable feedback such as this, we try to correct our services as quickly as possible.

We apologize for any inconvenience it may have caused you or your team. Rest assured that we’re taking action to help prevent similar issues from occurring in the future.

Please let me know if there is anything else I can do to help.

Thank you.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.