Skip to main content
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 permission gets the strongest one for their role: FullAccess for members, CanComment for 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 permission follows 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.
  • 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.
Each user newly given access gets an invitation email, with the optional 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 given FullAccess, the permission is not available on the plan, or the email is not valid. error explains why.
API keys without access to private recordings cannot access folders whose memberPermission is NoAccess: they are reported as not found.

Authorizations

X-Claap-Key
string
header
required

Path Parameters

folderId
string
required

Folder identifier

Body

application/json
users
object[]

Users to give access to. Each entry has exactly one of userId or email.

Maximum array length: 50
userGroups
object[]

User groups to give access to. A group gives nothing to its guests.

Maximum array length: 50
message
string

Message included in the invitation emails.

Response

Access was processed, see the outcome of each entry

result
object
required