Folder
Grant folder access
Give users and user groups access to a folder, or change the permission of those who already have it, with the same rules as the app.
POST
cURL
Gives users and user groups access to a folder, or changes the permission (
CanView, CanComment, FullAccess) of those who already have it, with the same rules as the app. An API key acts for its workspace, so it can manage the access of any folder it can see.
Users are given by userId, as returned by the list users endpoint, or by email:
- Claap onboarding (demo) and support users are not returned by the list users endpoint, and their email fails like their
userId:User not found. - A user without a
permissiongets the strongest one for their role:FullAccessfor members,CanCommentfor guests. - Guests cannot get
FullAccess. Without an active subscription, a user only gets that strongest permission. User groups take any permission on every plan. - An email that is not an active workspace user, including a user who left, is invited to the workspace (as a guest, or as a member when its domain can join the workspace). Its
permissionfollows the same rules for that role, and the entry fails when the role or plan does not allow it.- A person with a Claap account who was never in this workspace joins at once and gets the permission:
granted. - Anyone else, a user who left included, gets a pending invite to the folder:
invited. A pending invite stores a role, not a permission, so the person gets the strongest permission for that role once they join.
- A person with a Claap account who was never in this workspace joins at once and gets the permission:
- At most 10 emails that get an invite per request without a paid subscription, 50 otherwise. Emails of active workspace users and invalid emails do not count. When the same email appears twice, only the first entry is applied.
message, sent in the name of the person who created the API key. That person gets no email for their own access. A permission change sends nothing, and user groups are never notified.
Each entry gets its own outcome, so one entry that fails does not stop the others:
granted: the user or user group was given access, including a Claap user of another workspace who joined at once.updated: the user or user group already had access, its permission was set.invited: a pending invite was created for an email that is not a workspace user yet.failed: the entry could not be applied, for instance the user or user group does not exist (a demo or support user included), the user is not active, a guest was givenFullAccess, the permission is not available on the plan, or the email is not valid.errorexplains why.
memberPermission is NoAccess: they are reported as not found.Body
application/json
