Hatch

Folder rules: who may do what in which folder

On this page

The owner and managers get every rule. Anyone else gets the rules that open or narrow folders for them, never the ones that hide a folder.

GET/api/sync/vaults/{vault}/rules

Authorization

  • session: Authorization: Bearer <token>. The session token from signing in (or the session cookie in a browser on the same origin).

Path parameters

  • vault string (required)

Response

200: It worked

  • rules array<FolderRule> (required)

    • folder string: At most 1000 characters
    • who string: A person’s id, or * for everyone. At most 64 characters
    • role "editor" | "viewer" | "none": editor: reads and writes there. viewer: reads only. none: the folder is hidden.
    • at number
    • by string | null
  • epoch number (required)

Other answers:

  • 4XX: Refused, with a message to show the person