Hatch

Give someone, or everyone, a role in one folder

On this page

The deepest rule that applies wins (in one folder, a rule naming the person beats the one for everyone), then their vault role. Rules for everyone (*) don’t apply to managers. A role of null (or none given) takes the rule away. Owners and managers, plain vaults only.

PUT/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)

Request body

  • folder string: At most 1000 characters
  • who string: At most 64 characters
  • role "editor" | "viewer" | "none" | null

Response

200: It worked

  • ok true (required)

Other answers:

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