v1
latestSwagger 2.02026-07-135658136.3 KBOAuth2PermissionGrant_Create
Grants OAuth2 permissions for the relevant resource Ids of an app.
post/{tenantID}/oauth2PermissionGrants
Path parameters
tenantIDstring required
The tenant ID.
Query parameters
api-versionstring required
Client API version.
Request body
Example request
{
"odata.type": "odata.type",
"resourceId": "resourceId",
"clientId": "clientId",
"scope": "scope",
"expiryTime": "expiryTime",
"consentType": "consentType",
"principalId": "",
"startTime": "startTime"
}Response
OK. The operation was successful.
Example response
{
"odata.type": "odata.type",
"resourceId": "resourceId",
"clientId": "clientId",
"scope": "scope",
"expiryTime": "expiryTime",
"consentType": "consentType",
"principalId": "",
"startTime": "startTime"
}