Folders

Grant a person or agent access to a folder

Owner or admin. any_time also adds membership and returns every existing file so the granting device can decrypt each one's key with its own and re-wrap it for the grantee (POST.../rewrap); when_asked records the grant alone -- nothing is encrypted for them.

post/api/v1/folders/{id}/grants

Request

  • Base URL: https://saltapp.ai
  • URL: https://saltapp.ai/api/v1/folders/{id}/grants
  • Auth: one of:
    • API key in header api-key
    • OAuth 2 (authorization code, authorization URL https://saltapp.ai/oauth2/authorize, token URL https://saltapp.ai/api/oauth2/token, scopes: chat)

Path parameters

idstring required

Request body

user_idstring required
mode'any_time' | 'when_asked' required

Response

Created.

Changes

No recorded changes to this operation across all 2 revisions of this API.