> ## Documentation Index
> Fetch the complete documentation index at: https://docs.claap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke recording access

> Remove the direct access of users, the access of user groups and the pending invites of emails to a recording. The access inherited from its folder is not changed.

Removes the direct access of users (`userIds`), the direct access of user groups (`userGroupIds`) and the pending invites of emails (`emails`) to a recording, as listed by the [get recording access](https://docs.claap.io/api-reference/endpoint/get_recording_access.md) endpoint. Nobody is notified. An email whose pending invite is removed before the recording is ready does not get the invitation sent once it is.

The access inherited from the folder of the recording and the member and public link permissions are not changed, so a user may keep access through them or through a group. For a recording outside a folder whose `memberPermission` is not `FullAccess`, its last user with `FullAccess` cannot be removed: the users of the request are removed together, so when this rule blocks them, none of them is removed and each gets the `failed` outcome.

Each entry gets its own `outcome`, so one entry that fails does not stop the others:

* `revoked`: the access or pending invite was removed.
* `failed`: the entry could not be applied, for instance the user has no direct access to the recording, the user group has no direct access to it, or the email has no pending invite. `error` explains why.

API keys without [full access](https://docs.claap.io/api-reference/recordings.md) cannot access private recordings: they are reported as not found, as with the other recording endpoints.


## OpenAPI

````yaml POST /v1/recordings/{recordingId}/access/revoke
openapi: 3.1.0
info:
  title: Claap API
  description: Development documentation
  version: 0.0.0
servers:
  - url: https://api.claap.io/
security:
  - ApiKey: []
paths:
  /v1/recordings/{recordingId}/access/revoke:
    post:
      description: >-
        Remove the direct access of users, the access of user groups and the
        pending invites of emails to a recording. The access inherited from its
        folder is not changed.
      operationId: postV1RecordingsByRecordingIdAccessRevoke
      parameters:
        - in: path
          name: recordingId
          schema:
            type: string
            description: Recording identifier
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                userIds:
                  type: array
                  maxItems: 50
                  default: []
                  items:
                    type: string
                  description: >-
                    Users whose direct access to the recording is removed, as
                    the `userId` returned by the get recording access endpoint.
                userGroupIds:
                  type: array
                  maxItems: 50
                  default: []
                  items:
                    type: string
                  description: User groups whose direct access to the recording is removed.
                emails:
                  type: array
                  maxItems: 50
                  default: []
                  items:
                    type: string
                  description: >-
                    Emails whose pending invite to the recording is removed.
                    While the recording is not ready yet, they do not get the
                    invitation sent once it is.
      responses:
        '200':
          description: Access was processed, see the outcome of each entry
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      results:
                        type: array
                        description: >-
                          One outcome per entry, in the order users, user
                          groups, then emails for a revoke.
                        items:
                          $ref: '#/components/schemas/ApiAccessOutcome'
                    required:
                      - results
                required:
                  - result
        '400':
          description: >-
            The request is not valid. For instance a list has more than 50
            entries.
        '404':
          description: >-
            Recording was not found. Note that API keys without full access
            cannot access private recordings, which are reported as not found.
components:
  schemas:
    ApiAccessOutcome:
      type: object
      properties:
        userId:
          type: string
          description: Set when the entry resolved to a workspace user.
        email:
          type: string
          description: Email of the entry, when it has one.
        userGroupId:
          type: string
          description: Set for a user group entry.
        outcome:
          type: string
          enum:
            - granted
            - updated
            - invited
            - revoked
            - failed
          description: >-
            `granted` when access was added, `updated` when the permission of an
            existing access was set, `invited` when a pending invite was created
            for an email that is not a workspace user yet, `revoked` when access
            was removed, `failed` when this entry could not be applied.
        error:
          type: string
          description: Why the entry failed, set only when the outcome is `failed`.
      required:
        - outcome
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Claap-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.