Interface IResourcesApi

Hierarchy

  • IResourcesApi

Implemented by

Methods

  • Deletes a resource.

    Parameters

    • resourceKey: string

      The key of the resource to delete.

    Returns Promise<void>

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

  • Creates a resource if such a resource does not exists, otherwise completely replaces the resource configuration.

    Parameters

    • resourceKey: string

      The key of the resource.

    • resourceData: ResourceReplace

      The updated data for the resource.

    Returns Promise<ResourceRead>

    A promise that resolves to the updated resource.

    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