Can modify APIs but unable to create revisions

Kim Patrick Delos Reyes 26 Reputation points
2023-03-09T01:33:23.7966667+00:00

We are using a shared/centralized API Management service within Grundfos and we can update/modify the operations within our existing APIs.

However, we are getting an error when trying to create a revision.

We would like to clarify why creating revisions are not permitted when they are within the same API. Is the permission different from creating revisions?

User's image

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2023-03-09T09:23:22.53+00:00

    @Kim Patrick Delos Reyes Thanks for reaching. Can you please confirm what permission do you have on the APIM resource for which you are trying to perform the operation? If you have API Management Service Contributor then you should be able to perform the create revision operation. In case you are using the custom roles then make sure that you are providing the Write permission for the revisions so you can able the revisions on your APIM service.

    User's image

    Please accept as "Yes" if the answer is helpful so that it can help others in the community. If you need any help/clarification/concerns/follow up questions, then please click on "Add Comment" on my answer and provide more details.


  2. MuthuKumaranMurugaachari-MSFT 22,446 Reputation points Moderator
    2023-03-14T16:02:59.51+00:00

    Kim Patrick Delos Reyes Thanks for sharing the additional context. Based on my understanding, you are using a custom role instead of built-in roles with specific actions, scopes assigned to users instead of whole APIM instance like described in doc: Custom Roles.

    For updating and modifying Operations within an API, you need Microsoft.ApiManagement/service/apis/operations/write (or Microsoft.ApiManagement/service/apis/*/write) however, for creating a revision, you require Microsoft.ApiManagement/service/apis/write as referenced in the example in the doc.

    User's image

    For full list of operations and corresponding permissions required, please refer Microsoft.ApiManagement. We will add a note to specifically mention about creating revision in the doc.

    I hope this helps with your question and feel free to let me know if any other questions.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.