Interface IResourceActionsApi

Interface representing the Resource Actions API.

Hierarchy

  • IResourceActionsApi

Implemented by

Methods

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

    Parameters

    • resourceKey: string

      The resource key.

    • actionKey: string

      The action key.

    Returns Promise<void>

    A promise that resolves when the action 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.

  • Retrieves an action based on the resource key and the action key. Alias for the get method.

    Parameters

    • resourceKey: string

      The resource key.

    • actionKey: string

      The action key.

    Returns Promise<ResourceActionRead>

    A promise that resolves to a ResourceActionRead object representing the action.

    Throws

    PermitApiError If the API returns an error HTTP status code.

    Throws

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

Generated using TypeDoc