@inrupt/solid-client
    Preparing search index...

    Function setResourcePolicy

    • The ACP specification is a draft. As such, this function is experimental and
      subject to change, even in a non-major release.
      See also: https://solid.github.io/authorization-panel/acp-specification/
      

      Insert the given [[ResourcePolicy]] into the given Resource's Acccess Control Resource, replacing previous instances of that Policy.

      Type Parameters

      • T extends WithAccessibleAcr

      Parameters

      • resourceWithAcr: T

        The Resource whose Access Control Resource contains Access Policies.

      • policy: ThingPersisted

        The Policy to insert into the Resource's Access Control Resource.

      Returns T

      A new Resource equal to the given Resource, but with the given Policy in its Access Control Resource.

      1.18.0