permission.principal_not_allowed
This principal type may not call this operation
- HTTP status
- 403
- Problem type
https://api.field-viewer.com/problems/permission.principal_not_allowed- Catalogue
- Generic (any operation)
What it means
This kind of caller may never call this operation: for example, a shared workstation or an API token calling an operation that only a signed-in person may use.
What to do
Call the operation as the kind of principal it allows; the operation's description in the reference names it.
Example response
Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.
HTTP/1.1 403
Content-Type: application/problem+json
{
"type": "https://api.field-viewer.com/problems/permission.principal_not_allowed",
"title": "This principal type may not call this operation",
"status": 403,
"detail": "This principal type may not call this operation",
"instance": "/v1/context",
"code": "permission.principal_not_allowed",
"requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}
Returned by
No operation declares this code in its contract. The API can return it for any request, for example from the request pipeline before an operation runs.