Class ResourceActionGroupsApi

API client for interacting with the Resource Action Groups API.

Hierarchy

  • BasePermitApi
    • ResourceActionGroupsApi

Implements

Constructors

Methods

  • Deletes a action group based on the resource key and group key.

    Parameters

    • resourceKey: string

      The resource key.

    • groupKey: string

      The group key.

    Returns Promise<void>

    A promise that resolves when the action group is successfully deleted.

    Throws

    PermitApiError If the API returns an error HTTP status code.

    Throws

    PermitContextError If the configured ApiContext does not match the required endpoint context.

  • Ensure that the API Key has the necessary permissions to successfully call the API endpoint. Note that this check is not foolproof, and the API may still throw 401.

    Parameters

    • requiredAccessLevel: ApiKeyLevel

      The required API Key Access level for the endpoint.

    Returns Promise<void>

    Throws

    PermitContextError If the currently set API key access level does not match the required access level.

  • Ensure that the API context matches the required endpoint context.

    Parameters

    • requiredContext: ApiContextLevel

      The required API context level for the endpoint.

    Returns Promise<void>

    Throws

    PermitContextError If the currently set API context level does not match the required context level.

Generated using TypeDoc