@Riccardo Russo (MSC Technology Italia) Thanks for reaching out. When you create a revision for an api it is considered as a new api and inorder to make it as current you need to create an API release
{
"properties": {
"apiId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/{apiId}",
}
}
Once after creating a new release then you will be able to make a revision as current
PATCH [https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}?api-version=2022-08-01]()
json
{
"properties": {
"apiRevision": "2",
"isCurrent": true,
"isOnline": true
}
}
{
"id": "/subscriptions/xx/resourceGroups/xx/providers/Microsoft.ApiManagement/service/xxx/apis/swagger-petstore",
"type": "Microsoft.ApiManagement/service/apis",
"name": "swagger-petstore",
"properties": {
"displayName": "Swagger Petstore",
"apiRevision": "2",
"description": "janani",
"subscriptionRequired": true,
"serviceUrl": "https://new-cxp-apim.azure-api.net/",
"backendId": null,
"path": "testingopenapi",
"protocols": [
"http",
"https"
],
"authenticationSettings": {
"oAuth2": null,
"openid": null
},
"subscriptionKeyParameterNames": {
"header": "Ocp-Apim-Subscription-Key",
"query": "subscription-key"
},
"termsOfServiceUrl": "http://swagger.io/terms/",
"contact": {
"name": null,
"url": null,
"email": "apiteam@swagger.io"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
},
"isCurrent": true,
"apiRevisionDescription": "janani"
}
}
do let me know incase of further queries, I would be happy to assist you.
refer: https://learn.microsoft.com/en-us/azure/api-management/api-management-revisions#current-revision
Please accept as Yes if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.