Hatch

Change what someone a vault is shared with may do

On this page

The owner sets any role. A manager sets editors and viewers.

PUT/api/sync/vaults/{vault}/people/{user}/role

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)
  • user string (required)

Request body

  • role "manager" | "editor" | "viewer" | "guest": manager: edits and manages editors and viewers. editor: reads and writes. viewer: reads only. guest: only the folders a rule opens to them (plain vaults).

Response

200: It worked

  • ok true (required)

Other answers:

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