{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Power Automate Management Connections Flow Permissions API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
      "accessTokenUrl": "https://login.microsoftonline.com/common/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Flow Permissions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Power Automate List Flow Owners",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/:environmentName/flows/:flowName/owners",
            "params": [
              {
                "name": "environmentName",
                "value": "",
                "type": "path",
                "description": "The name of the environment."
              },
              {
                "name": "flowName",
                "value": "",
                "type": "path",
                "description": "The name or ID of the flow."
              }
            ]
          },
          "docs": "List all owners of a specific flow in an environment."
        },
        {
          "info": {
            "name": "Microsoft Power Automate Modify Flow Owners",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.flow.microsoft.com/providers/Microsoft.ProcessSimple/environments/:environmentName/flows/:flowName/owners",
            "params": [
              {
                "name": "environmentName",
                "value": "",
                "type": "path",
                "description": "The name of the environment."
              },
              {
                "name": "flowName",
                "value": "",
                "type": "path",
                "description": "The name or ID of the flow."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add or remove owners of a specific flow in an environment."
        }
      ]
    }
  ],
  "bundled": true
}