Websites - Grant Exception
Grants an admin exception for one or more Power Pages websites in a tenant.
Grants a break-glass admin exception (one-time per website and exception type) across one or more websites in the tenant. Gating, validation, and audit/state writes are synchronous; application-setting propagation is queued asynchronously.
POST https://api.powerplatform.com/powerpages/environments/{environmentId}/exceptions/grant?api-version=2024-10-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
environment
|
path | True |
string |
The environment ID. |
|
api-version
|
query | True |
string |
The API version. |
Request Body
| Name | Type | Description |
|---|---|---|
| exceptionType |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
|
| portalIds |
string[] |
Websites the exception should be applied to (deduplicated server-side). |
| riskAcknowledged |
boolean |
Whether the admin explicitly acknowledged the risk. Must be true to proceed. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 400 Bad Request |
Bad Request |
|
| 401 Unauthorized |
Unauthorized |
|
| 403 Forbidden |
Forbidden |
|
| 404 Not Found |
Not Found |
Security
oauth2
Microsoft Entra ID OAuth2
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize?resource=https://api.powerplatform.com
Scopes
| Name | Description |
|---|---|
| .default | .default |
Definitions
| Name | Description |
|---|---|
| Details | |
| Error | |
|
Error |
|
|
Exception |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
|
Grant |
|
|
Grant |
|
|
Portal |
Details
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code |
| message |
string |
Error message |
| target |
string |
Target parameter |
Error
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code |
| details |
Details[] |
|
| message |
string |
Error message |
| target |
string |
Target parameter |
ErrorMessage
| Name | Type | Description |
|---|---|---|
| error |
ExceptionType
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets.
| Value | Description |
|---|---|
| WebApiStarRetirement |
GrantExceptionRequest
| Name | Type | Description |
|---|---|---|
| exceptionType |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
|
| portalIds |
string[] |
Websites the exception should be applied to (deduplicated server-side). |
| riskAcknowledged |
boolean |
Whether the admin explicitly acknowledged the risk. Must be true to proceed. |
GrantExceptionResult
| Name | Type | Description |
|---|---|---|
| exceptionId |
string |
Id of the audit record created for this grant request. |
| exceptionType |
Exception scenario discriminator identifying which admin exception ("break-glass") scenario a grant, revoke, or query targets. |
|
| expirationDate |
string (date-time) |
Effective UTC expiry applied to every accepted website in this request. |
| portals |
Per-website outcomes. |
|
| propagationOrchestrationId |
string |
Optional orchestration instance id for queued application-setting propagation. |
PortalExceptionResult
| Name | Type | Description |
|---|---|---|
| message |
string |
Optional human-readable detail (populated for non-granted outcomes). |
| portalId |
string |
Website unique identifier (ID). |
| status |
string |
Per-website outcome status, e.g. "Granted", "Accepted", "AlreadyGranted", "NotApplicable", "Failed", "Revoked", "AlreadyRevoked". |