Get the current SDK context level.
Get the current environment in the context.
Get the API project and environment parameters from an environment-level context.
An object containing the project and environment IDs.
PermitContextError If the API context is not set to environment level or the project or environment is null.
Get the current API key level.
replaced with permit.config.apiContext.permittedAccessLevel
Get the current organization in the context.
Get the current API key access level.
Get the current project in the context.
Generated using TypeDoc
The
ApiContext
class represents the required known context for an API method. Since the Permit API hierarchy is deeply nested, it is less convenient to specify the full object hierarchy in every request. For example, in order to list roles, the user needs to specify the (id or key) of the:We can only run this function if the current context already knows the org, project, and environments that we want to run under, and that is why this method assumes we are running under a
ApiContextLevel.ENVIRONMENT
context.