{ "meta": { "requestId": "req_2c9a0jf23l4k567" }, "error": { "detail": "The resource you are attempting to modify is protected and cannot be changed", "status": 403, "title": "Forbidden", "type": "https://unkey.com/docs/api-reference/errors-v2/unkey/application/protected_resource" }}
This error occurs when you attempt to modify or delete a resource that is marked as protected in the Unkey system. Protected resources have a special status that prevents them from being changed or removed, typically because they are system resources, defaults, or otherwise critical to proper system operation.Common scenarios that trigger this error:
Attempting to delete a default API or workspace
Trying to modify system-created roles or permissions
Attempting to change protected settings or configurations
Trying to remove or alter resources that are required for system integrity
Here’s an example of a request that might trigger this error:
Since protected resources are deliberately shielded from modification, the solution is usually to work with or around them rather than trying to change them:
Work with the protected resource: Use the resource as-is and build your workflows around it
Create a new resource: Instead of modifying a protected resource, create a new one with your desired configuration
Use alternatives: Look for alternative ways to achieve your goal without modifying protected resources
Contact support: If you believe you have a legitimate need to modify a protected resource, contact Unkey support
For example, instead of deleting a protected API, you might create a new one: