Insufficient role
A refusal because the workspace role of whoever made the request, a person or a token, is lower than the action needs.
| Field | Value |
|---|---|
type |
https://mockhub.dev/problems/insufficient-role |
| Status | 403 |
What it means
Section titled “What it means”Every action in a workspace needs a least role: Viewer, Editor, Admin or Owner. MockHub checks it on every request, whatever the app shows, and this problem says the check failed. Nothing was changed. The app hides most controls your role cannot use, so this usually means your role changed while a page was open, or the request came from a token with a lower role than you expected.
Status
Section titled “Status”Always 403.
Where it comes from
Section titled “Where it comes from”| Action | detail |
|---|---|
| Any action above the caller’s role, such as a Viewer creating a mock or an Editor changing a project’s logging settings | You do not have permission to perform this action. |
| Anything a machine token asks for outside projects, mocks, their configuration and request logs | You do not have permission to perform this action. |
| Transfer ownership of a workspace, as anyone but one of its Owners | Only an Owner can transfer ownership. |
| Apply a configuration document that changes settings, chaos profiles or webhooks, with the Editor role | Applying changes to settings and webhooks requires the manage permission on this project. |
In the last message, the sections the document changes are named in the order settings, chaosProfiles, webhooks, joined by and. Roles and permissions lists the least role of every action.
This type carries no extension members.
{ "type": "https://mockhub.dev/problems/insufficient-role", "title": "Your role does not allow this", "status": 403, "detail": "You do not have permission to perform this action."}What to do
Section titled “What to do”Check your role and ask for the one the action needs, as Your role does not allow it describes. A personal token has your role; a machine token has the role it was created with.
For a configuration document, remove the changes to the named sections and apply the rest, or have an Admin apply it.
A machine token can never do more than work with projects, mocks, their configuration and request logs; for anything else, use a personal token. See Roles, personal tokens and machine tokens.
Not this type
Section titled “Not this type”Other refusals also answer 403 with their own reason, and a role change does not help with them:
Create an account to use workspace administration and independent credentials.: a demo cannot invite members, create workspaces, tokens or custom domains. See I cannot see or use a feature.This workspace is suspended.: a payment failed and was not settled in time; see Fix a failed payment.- A
403with a Plan limit, Role hierarchy, Email unverified, AI disabled or Token scope type.
When your role allows the action but your personal token’s role does not, the answer is Token scope instead: create a token with a higher role, up to your own.
A request without a valid session or token answers 401 instead, often with Sign in to MockHub or send an API token to do this.: sign in again, or check that the token has not expired or been revoked.