Skip to main content
POST
cURL
Gives users and user groups access to a recording, 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 recording 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 recording: 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.
The people newly given access get one invitation (email, Slack and Claap inbox), with the optional message, sent in the name of the person who created the API key. That person gets no invitation for their own access. While the recording is not ready yet, the invitation is sent once it is, except to the emails whose pending invite was revoked in the meantime. A permission change sends nothing, and user groups are never notified. For a recording outside a folder whose memberPermission is not FullAccess, lowering the permission of its last user with FullAccess fails. 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 direct 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, the recording would lose its last user with FullAccess, or the email is not valid. error explains why.
API keys without full access cannot access private recordings: they are reported as not found, as with the other recording endpoints.

Authorizations

X-Claap-Key
string
header
required

Path Parameters

recordingId
string
required

Recording 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.

Response

Access was processed, see the outcome of each entry

result
object
required