locked
Through rest call am cancelling running instance of logic app but it is giving Authorization failed Error RRS feed

  • Question

  • Hi,

    in Logic app am making a post call to cancel running instance of logic app but am getting Authorization Failed Error

    {
    "error": {
        "code": "AuthorizationFailed",
        "message": "The client 'XX' with object id 'XX' does not have authorization to perform action 'Microsoft.Logic/workflows/runs/cancel/action' over scope '/subscriptions/{subscriptionsID}/resourceGroups/{resourceGroupsName}/providers/Microsoft.Logic/workflows/TimerJob/runs/name' or the scope is invalid. If access was recently granted, please refresh your credentials."
      }
    }

    and
    I tried in Postman it is giving error as

    {
        "error": {
    "code": "AuthenticationFailed",
            "message": "Authentication failed. The 'Authorization' header is missing."
        }

    }

    but https://docs.microsoft.com/en-us/rest/api/logic/workflowruns/cancel from this link try it am doing here it is working not working in post call and Logic App

    In logic app doing post call to cancel running instance


    Wednesday, August 21, 2019 12:19 PM

All replies