ServicePrincipal

PATCH /{tenantID}/servicePrincipals/{objectId}

Updates a service principal in the directory.

Request

  • Base URL
    https://graph.windows.net
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

objectIdstring required

The object ID of the service principal to delete.

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Request body

accountEnabledboolean

whether or not the service principal account is enabled

appRoleAssignmentRequiredboolean

Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.

servicePrincipalTypestring

the type of the service principal

tagsstring[]

Optional list of tags that you can apply to your service principals. Not nullable.

Response

No Content

Changes

No recorded changes to this operation across all 17 revisions of this API.