{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Graph Admin Admin.admin servicePrincipals.appRoleAssignment API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "servicePrincipals.appRoleAssignment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Graph Get appRoleAssignment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "$top",
                "value": "50",
                "type": "query",
                "description": "Show only the first n items"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Skip the first n items"
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search items by search phrases"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "Filter items by property values"
              },
              {
                "name": "$count",
                "value": "",
                "type": "query",
                "description": "Include count of items"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Order items by property values"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Select properties to be returned"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Expand related entities"
              }
            ]
          },
          "docs": "Read the properties and relationships of an appRoleAssignment object."
        },
        {
          "info": {
            "name": "Microsoft Graph Grant an appRoleAssignment for a service principal",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assign an app role for a resource service principal, to a user, group, or client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment, you need three identifiers:"
        },
        {
          "info": {
            "name": "Microsoft Graph Get appRoleAssignment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo/:appRoleAssignment-id",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Select properties to be returned"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Expand related entities"
              }
            ]
          },
          "docs": "Read the properties and relationships of an appRoleAssignment object."
        },
        {
          "info": {
            "name": "Microsoft Graph Update the navigation property appRoleAssignedTo in servicePrincipals",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo/:appRoleAssignment-id",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Microsoft Graph Update the navigation property appRoleAssignedTo in servicePrincipals"
        },
        {
          "info": {
            "name": "Microsoft Graph Delete appRoleAssignedTo",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo/:appRoleAssignment-id",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              }
            ]
          },
          "docs": "Deletes an appRoleAssignment that a user, group, or client service principal has been granted for a resource service principal."
        },
        {
          "info": {
            "name": "Microsoft Graph Get the number of the resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignedTo/$count",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search items by search phrases"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "Filter items by property values"
              }
            ]
          },
          "docs": "Microsoft Graph Get the number of the resource"
        },
        {
          "info": {
            "name": "Microsoft Graph Get appRoleAssignment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments",
            "headers": [
              {
                "name": "ConsistencyLevel",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "$top",
                "value": "50",
                "type": "query",
                "description": "Show only the first n items"
              },
              {
                "name": "$skip",
                "value": "",
                "type": "query",
                "description": "Skip the first n items"
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search items by search phrases"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "Filter items by property values"
              },
              {
                "name": "$count",
                "value": "",
                "type": "query",
                "description": "Include count of items"
              },
              {
                "name": "$orderby",
                "value": "",
                "type": "query",
                "description": "Order items by property values"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Select properties to be returned"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Expand related entities"
              }
            ]
          },
          "docs": "Read the properties and relationships of an appRoleAssignment object."
        },
        {
          "info": {
            "name": "Microsoft Graph Grant an appRoleAssignment to a service principal",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assign an app role to a client service principal. App roles that are assigned to service principals are also known as application permissions. Application permissions can be granted directly with app role assignments, or through a consent experience. To grant an app role assignment to a client service principal, you need three identifiers:"
        },
        {
          "info": {
            "name": "Microsoft Graph Get appRoleAssignment",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments/:appRoleAssignment-id",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              },
              {
                "name": "$select",
                "value": "",
                "type": "query",
                "description": "Select properties to be returned"
              },
              {
                "name": "$expand",
                "value": "",
                "type": "query",
                "description": "Expand related entities"
              }
            ]
          },
          "docs": "Read the properties and relationships of an appRoleAssignment object."
        },
        {
          "info": {
            "name": "Microsoft Graph Update the navigation property appRoleAssignments in servicePrincipals",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments/:appRoleAssignment-id",
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Microsoft Graph Update the navigation property appRoleAssignments in servicePrincipals"
        },
        {
          "info": {
            "name": "Microsoft Graph Delete appRoleAssignment",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments/:appRoleAssignment-id",
            "headers": [
              {
                "name": "If-Match",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "appRoleAssignment-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of appRoleAssignment"
              }
            ]
          },
          "docs": "Deletes an appRoleAssignment that a service principal has been granted. App roles which are assigned to service principals are also known as application permissions. Deleting an app role assignment for a service principal is equivalent to revoking the app-only permission grant."
        },
        {
          "info": {
            "name": "Microsoft Graph Get the number of the resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.microsoft.com/v1.0/servicePrincipals/:servicePrincipal-id/appRoleAssignments/$count",
            "headers": [
              {
                "name": "ConsistencyLevel",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "servicePrincipal-id",
                "value": "",
                "type": "path",
                "description": "The unique identifier of servicePrincipal"
              },
              {
                "name": "$search",
                "value": "",
                "type": "query",
                "description": "Search items by search phrases"
              },
              {
                "name": "$filter",
                "value": "",
                "type": "query",
                "description": "Filter items by property values"
              }
            ]
          },
          "docs": "Microsoft Graph Get the number of the resource"
        }
      ]
    }
  ],
  "bundled": true
}