Sanity Library Reference Docs
    Preparing search index...
    • The URL path a resource's ACL is served at — where the engine fetches an actor's grants for that resource (and the canonical encoding of the shape a caller passes as grantsFromPath). Known for dataset (/projects/<id>/datasets/<ds>/acl) and canvas (/canvases/<resourceId>/acl); undefined for resource types without a known grants endpoint, so a caller can degrade open (no grants → no advisory forecast) instead of guessing a path.

      Parameters

      • res: { id: string; type: "dataset" } | { id: string; type: "canvas" }

      Returns string

    • The URL path a resource's ACL is served at — where the engine fetches an actor's grants for that resource (and the canonical encoding of the shape a caller passes as grantsFromPath). Known for dataset (/projects/<id>/datasets/<ds>/acl) and canvas (/canvases/<resourceId>/acl); undefined for resource types without a known grants endpoint, so a caller can degrade open (no grants → no advisory forecast) instead of guessing a path.

      Parameters

      Returns string | undefined