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

# Update Access Review

> Update an access review. `name`, `deadline_at`, `apps` and `owners` can't be `null`. `owners` replaces every owner, so it can't leave the access review with none. `apps` doesn't add or remove app reviews. Use `POST /v1/access-reviews/{access_review_id}/apps` and `DELETE /v1/access-reviews/{access_review_id}/apps/{app_review_id}` for that.

The response doesn't include `apps` or `owners`. Read them with `GET /v1/access-reviews/{access_review_id}?expand=apps,owners`.



## OpenAPI

````yaml /api-reference/lumos-api-v1.json patch /v1/access-reviews/{access_review_id}
openapi: 3.1.0
info:
  title: Lumos API (v1)
  description: >

    Lumos API v1 is the programmatic interface to your connected apps, the
    entitlements on them, and

    the workflows that grant access to those entitlements.


    Every path is prefixed with `/v1`. Authenticate with an API token, which
    inherits the permissions

    of the user who created it: a call returns what that user could see in the
    Lumos UI, and nothing

    more.


    New here? Browse what you can connect with `GET /v1/integrations`, read the
    credentials an

    integration expects with `GET
    /v1/integrations/{app_class_id}/connection-schema`, then connect it

    with `POST /v1/apps`.


    Every list endpoint shares one pagination contract. Set the page length with
    `page_size`, then send

    the `next_page_token` from a response back as `page_token` to fetch the next
    page. A `null`

    `next_page_token` means you have reached the end.


    Every error shares one envelope. Branch on the machine-readable `code`, not
    on `detail`.
  version: 0.1.0
servers:
  - url: https://api.lumos.com
security: []
tags:
  - name: Access Policies
    description: >

      An access policy grants apps, and optionally specific entitlements on
      them, to the identities that

      qualify under its `access_condition`, a Lumos Condition object.


      `POST /v1/access-policies` creates a policy and returns 201. `GET
      /v1/access-policies` lists

      policies, and `GET`, `PUT`, and `DELETE` on
      `/v1/access-policies/{access_policy_id}` read, replace,

      and delete one.


      Each entitlement a policy grants appears under `apps[].entitlements[]`,
      identified by its

      Entitlement UUID, the `id` that `GET /v1/entitlements/{entitlement_uuid}`
      returns.
  - name: Access Requests
    description: >

      An access request asks for access to an app, or to specific entitlements
      on it, for you or for

      another user.


      - `POST /v1/access-requests` creates requests, naming entitlements by
      Entitlement UUID in
        `entitlement_ids`, and returns them as a list.
      - `GET /v1/access-requests` and `GET /v1/access-requests/{id}` read
      requests.

      - `POST /v1/access-requests/{id}:cancel` cancels a pending request.


      Of the built-in roles, Admin, Read Only Admin, AppStore Read Only Admin,
      and App Admin can read

      every access request in your organization. Anyone else sees only the
      requests they made and the

      ones made for them.
  - name: Access Reviews
    description: >

      An access review is a campaign that reviews who has access to what across
      your connected apps.

      Each app in a campaign is an app review.


      - `GET /v1/access-reviews` lists your organization's access reviews,
      newest first, and
        `GET /v1/access-reviews/{access_review_id}` reads one. Send `expand=apps` to include each
        access review's app reviews, and `expand=owners` to include the users and groups that own it.
      - `POST /v1/access-reviews` creates an access review with the apps it
      reviews and its owners, and
        `POST /v1/access-reviews/{access_review_id}/apps` adds apps to one. Both return 202 with an
        operation that finishes when every app review has imported its accounts and entitlements. If
        any app can't be added, nothing is written.
      - `PATCH /v1/access-reviews/{access_review_id}` updates an access review,
      its owners and the
        settings of its app reviews, and `DELETE` on the same path deletes it.
        `DELETE /v1/access-reviews/{access_review_id}/apps/{app_review_id}` removes one app review.
      - `GET
      /v1/access-reviews/{access_review_id}/apps/{app_review_id}/subject-filters`
      lists the
        fields you can filter the app review's subjects on. Each field comes with the operators it
        supports and, when it has a fixed set of values, the values it accepts.
      - `GET
      /v1/access-reviews/{access_review_id}/apps/{app_review_id}/scope-filters`
      lists the
        fields you can scope an existing app review by, for the `filters` of its `:sync`. Each app
        review reads back its `filters` in the same shape.
      - `GET /v1/apps/{app_id}/access-review-scope-filters` lists the fields you
      can scope an app by
        before it is put under review, for the `filters` of each app you create an access review with
        or add to one.
      - `POST /v1/access-reviews/{access_review_id}/apps/{app_review_id}:sync`
      runs the app review's
        data import, optionally with new scope filters. It returns 202 with an operation. Poll
        `GET /v1/operations/{operation_id}` until `done` is true.
  - name: Accounts
    description: >

      An account is a person's presence inside a connected app. Accounts arrive
      through sync; you cannot

      create one through this API.


      `GET /v1/accounts/{account_uuid}/entitlements` lists what one account
      holds. It reads the same

      relationship as `GET /v1/entitlements/{entitlement_uuid}/accounts`, from
      the account's side rather

      than the entitlement's.
  - name: Activity Logs
    description: >

      Activity logs record the actions taken across your organization's apps and
      identities.

      `GET /v1/activity-logs` lists them, newest first.


      Reading activity logs requires permission to view them across your
      organization. Of the built-in

      roles, Admin and Read Only Admin have it. Without it, the request returns
      403.
  - name: App Categories
    description: >

      App categories are the fixed set of categories an app can belong to, such
      as `Developers`.

      `GET /v1/app-categories` lists them as `{label}` objects.


      A `label` is the exact value to send as `category` to `POST /v1/apps` and

      `PATCH /v1/apps/{app_uuid}`. It is also the value the app read endpoints
      report. Read the list

      instead of hard-coding it.
  - name: Apps
    description: >

      An app is an integration you have connected, one per connected instance of
      a service. Your Okta

      tenant is an app. A second Slack workspace is a second app.


      ### Connecting one


      1. `GET /v1/integrations/{app_class_id}/connection-schema` to see which
      `auth` and `settings`
         keys the integration expects.
      2. `POST /v1/apps` with those credentials. Apps whose credentials validate
      right away connect, and
         their first sync waits for an admin to review match rules. It starts from the Lumos UI, or from
         `POST /v1/apps/{app_uuid}:sync` with `skip_first_sync_review: true`. Apps that need browser
         consent are finished in the Lumos UI.
      3. `GET /v1/apps/{app_uuid}` to follow the first sync. `sync_status` shows
      the state of the
         app's most recent sync. A sync started with `POST /v1/apps/{app_uuid}:sync` also returns an
         operation, which you poll with `GET /v1/operations/{operation_id}`.
      4. `POST /v1/apps/{app_uuid}:sync` to resync later. Only one sync runs per
      app at a time, so a
         second request while one is in flight returns 409.

      Rotate credentials with `PATCH /v1/apps/{app_uuid}`, which also updates an
      app's metadata.

      `POST /v1/apps/{app_uuid}:disconnect` drops the stored credentials and
      returns the app to a

      connectable state; `DELETE /v1/apps/{app_uuid}` removes the app outright.


      ### Reading apps


      `expand` is opt-in and evaluated per field: ask for `admins`,
      `custom_attributes`,

      `appstore_settings`, or any of the three workflow fields. A field you lack
      permission to read is

      left out of the response instead of failing the whole request, so a 200
      does not prove every field

      you asked for came back.


      To list only the connected apps you manage through the API, combine
      `connection_source=api` with

      `disconnected=false`.


      ### Bound workflows


      Each app carries three bindings: an approval workflow, a default
      provisioning workflow, and a

      default deprovisioning workflow. The two `default_` workflows are the ones
      that entitlements on

      the app fall back to. To bind a workflow to one entitlement instead, use
      the Entitlements

      endpoints.
  - name: Custom Attribute Definitions
    description: >

      Custom attributes are the extra fields your organization keeps on users.
      These endpoints read

      their *definitions*, not the values stored against any particular user.


      `GET /v1/custom-attribute-definitions` returns one entry per label,
      unified across every app that

      supplies it. Narrow the list with `source_type` to tell attributes synced
      from an app apart from

      ones your team created, or with `app_id` to see only what a single app
      supplies.


      `GET /v1/custom-attribute-definitions/{id}` reads one definition by its
      `id`, and

      `GET /v1/custom-attribute-definitions/{id}/configs` lists the configs
      behind it, highest priority

      first.
  - name: Entitlements
    description: >

      An entitlement is a grantable unit of access on an app: a role, a license
      tier, a group, or

      another access right. Accounts hold entitlements.


      - `POST /v1/entitlements` creates a requestable entitlement on an app.

      - `GET /v1/apps/{app_uuid}/entitlements` lists the entitlements on one
      app.

      - `GET /v1/entitlements/{entitlement_uuid}/accounts` lists who currently
      holds one.

      - `PATCH /v1/entitlements/{entitlement_uuid}` updates its `label`,
      `description`, and
        `custom_approval_message_override`. Sending any other field returns 400.
      - `DELETE /v1/entitlements/{entitlement_uuid}` refuses while the
      entitlement is still held,
        returning 409 with an `active_accounts` count.

      ### Per-entitlement workflows


      An entitlement can have its own approval override, provisioning workflow,
      and deprovisioning

      workflow, bound to it rather than to the whole app. Each has a GET and a
      PUT, and the approval

      override also has a DELETE that turns it off.


      An entitlement that can't be requested returns 404 with

      `Workflows are not available for this entitlement.` on each of these
      endpoints.
  - name: Groups
    description: >

      Lumos syncs groups from your connected apps, such as your Okta groups, and
      these endpoints read

      them.


      - `GET /v1/groups` lists groups. Filter by `name` (add `exact_match=true`
      to require an exact
        match), by `integration_specific_id` (the group's ID in the source system), or by `app_id`.
      - `GET /v1/groups/{group_id}` reads one group, and `GET
      /v1/groups/{group_id}/users` lists its
        members.

      An `app_id` that matches no app in your organization returns 404.
  - name: Identity Events
    description: >

      Identity events are the changes Lumos detects on your organization's
      identities, such as a change

      to a status, a group membership, or a custom attribute. `GET
      /v1/identity-events` lists them.

      Narrow the list with `identity_ids`, `changed_fields`, `start_time`, and
      `end_time`.


      A page can come back empty while `next_page_token` is still set, because
      events Lumos can't read

      are dropped after a page is fetched. Keep paging until `next_page_token`
      is absent, not until a

      page is empty.
  - name: Inline Webhooks
    description: >

      Inline webhooks are the webhooks your organization has configured in
      Lumos.

      `GET /v1/inline-webhooks` lists all of them, whatever their type.


      A webhook's `type` says where Lumos uses it.
  - name: Integrations
    description: >

      An integration is a service Lumos knows how to connect to, identified by
      an `app_class_id` such as

      `okta.com` or `workspace.google.com`. This is the catalog you connect
      *from*. Apps you have

      already connected are read through the Apps endpoints.


      Only connectable integrations appear here. Software discovered in your
      environment that has no

      Lumos integration behind it is excluded.


      ### Discovering how to connect


      1. `GET /v1/integrations?query=google` to find the integration. The filter
      matches both the
         `app_class_id` and the display name, so `google` returns `workspace.google.com` and
         `cloud.google.com`.
      2. `GET /v1/integrations/{app_class_id}/connection-schema` for the JSON
      schema of the `auth` and
         `settings` fields it expects.
      3. `POST /v1/apps` with those values.


      Step 2 is the point of this group: it lets you build a connect form
      without hardcoding one

      credential shape per integration.


      `GET /v1/integrations/{app_class_id}` and the connection schema return 404
      for any integration the

      list leaves out. The connection schema also returns 404 for an integration
      whose schema Lumos

      cannot describe yet.
  - name: Knowledge
    description: >

      Knowledge entries are the documents and notes Lumos agents draw on when
      they answer access

      questions. Each entry carries a title, body, tags, and product scopes,
      plus an optional file

      attachment.


      Because of that attachment, create and update send `multipart/form-data`
      rather than JSON. On

      update, tag and scope lists replace what was there instead of appending,
      and `clear_attachment=true`

      removes an existing file without uploading a replacement.


      `DELETE` deletes a knowledge entry. It no longer appears in list results,
      and you can't restore

      it through the API.


      Pages here are small: `page_size` defaults to 10 and is clamped to 25.
  - name: Lifecycle Management
    description: >

      Lifecycle management covers user offboardings. An offboarding runs your
      organization's

      offboarding workflow for one user, either right away or at a scheduled
      time.


      - `POST /v1/lifecycle-management/user-offboardings` starts an offboarding
      now, or at
        `scheduled_at` when you send a future time.
      - `GET /v1/lifecycle-management/user-offboardings/{user_offboarding_id}`
      reads one.

      - `POST
      /v1/lifecycle-management/user-offboardings/{user_offboarding_id}:cancel`
      cancels one that
        is scheduled or in progress.

      There is no list endpoint, so keep the `id` that create returns.


      `workflow_config_id` names an offboarding workflow configuration, not a
      workflow from

      `/v1/workflows`. Omit it to use the configuration your organization has
      selected for automatic

      offboarding. Only organizations with the multiple offboarding workflows
      feature can send it. For

      any other organization, a request that includes it returns 400.
  - name: Meta
    description: >

      `GET /v1/info` returns the API's current git revision, and `GET /v1/art`
      returns Lumos ASCII art.

      Use either to check your setup.


      Both require an API token. A 200 means your token works.
  - name: Operations
    description: >

      An operation tracks work that continues after the request that started it
      has returned. These

      endpoints start such work and respond with 202 and an operation:


      - `POST /v1/apps/{app_uuid}:sync`

      - `POST /v1/accounts:upload`

      - `POST /v1/access-reviews`

      - `POST /v1/access-reviews/{access_review_id}/apps`

      - `POST /v1/access-reviews/{access_review_id}/apps/{app_review_id}:sync`


      Poll `GET /v1/operations/{operation_id}` until `done` is true. While
      `done` is false, neither

      `result` nor `error` is set. Once `done` is true, exactly one of them is.


      An app-sync operation shows the app's most recent sync, which can be a
      later run than the one you

      started.
  - name: Pre-Approval Rules
    description: >

      A pre-approval rule pre-approves matching access requests for an app.


      - `GET /v1/apps/{app_uuid}/pre-approval-rules` lists an app's rules, and
      `POST` on the same path
        creates one.
      - `GET`, `PATCH`, and `DELETE` on
      `/v1/apps/{app_uuid}/pre-approval-rules/{pre_approval_rule_id}`
        read, update, and delete one.

      If the app has been merged into another app, these endpoints work on the
      rules of the app it was

      merged into.


      Lumos enables condition-based pre-approval rules per organization,
      separately from the rest of v1,

      so contact your Lumos representative to turn them on.
  - name: Tasks
    description: >

      A task is work Lumos assigns to a person or group, such as approving an
      access request or

      provisioning access by hand. A workflow that creates a task waits for
      someone to act on it before

      it continues.


      ### Finding tasks


      `GET /v1/tasks` lists the tasks visible to you. `show_all_tasks=true`
      lists every task in your

      organization instead. It needs permission to view every task, which the
      built-in Admin, Read Only

      Admin, and AppStore Read Only Admin roles have, and which a custom role
      can also grant. Anyone

      else gets a 403.


      Filter with `type`, `category`, `status`, and `product_area`, whose values
      are lowercase and

      kebab-case. For example,

      `GET /v1/tasks?category=approval&product_area=appstore&status=pending`
      lists pending AppStore

      approvals.


      A task names the entitlement it grants or removes in `entitlement_id`, an
      Entitlement UUID.


      ### Acting on a task


      - `POST /v1/tasks/{task_id}:complete` approves an approval task, or
      completes another task with
        its one completion action.
      - `POST /v1/tasks/{task_id}:dismiss` denies an approval task, or dismisses
      another task without
        doing its work.
      - `POST /v1/tasks/{task_id}:perform-action` takes a specific action.
        `GET /v1/tasks/{task_id}/actions` lists the actions you can take and the statuses each one can
        move the task to, which are the values `transition_to` accepts.
      - `POST /v1/tasks/{task_id}:reassign` changes who the task is assigned to.
  - name: Users
    description: >

      Users are the people in your organization. These endpoints read them, and
      the only thing they

      change is a user's Lumos roles.


      - `GET /v1/users` lists users. `search` matches names and emails, and
      `exact_match=true`
        requires an exact match.
      - `GET /v1/users/current` returns the user who owns your API token.

      - `GET /v1/users/{user_id}` reads one user, and `GET
      /v1/users/{user_id}/accounts` lists the
        accounts that user holds.
      - `GET /v1/users/{user_id}/roles` lists a user's Lumos roles. Each role
      has an `id` (a built-in
        role's kebab-case name such as `app-admin`, or a custom role's UUID), a display `label`,
        `is_custom`, and a `resource_type` that is null for roles that apply across the organization.
        `POST /v1/users/{user_id}/roles/{role_id}` assigns one, and
        `DELETE /v1/users/{user_id}/roles/{role_id}` removes one, where `role_id` is the role's `id`.
        Assigning a role the user already has, or removing one they don't have, changes nothing.

      A user who has been deleted returns the same 404 as one who doesn't exist
      in your organization.
  - name: Workflows
    description: >

      A workflow is a reusable definition of the steps Lumos runs to approve a
      request, provision access,

      or deprovision it. Create the definition here, then bind it to an app or
      an entitlement through

      their own workflow endpoints.


      ### Building one


      1. `GET /v1/workflow-steps?app_id={app_uuid}&type={workflow type}` to
      discover the steps available
         for that app in the type of workflow you will create, each with the input schema it accepts.
         Without `type`, it lists only the steps every workflow type accepts.
      2. `POST /v1/workflows` with the steps you want.

      3. Bind it, for example with `PUT
      /v1/apps/{app_uuid}/default-provisioning-workflow`.


      `type` and `app_id` are fixed at creation. `PUT
      /v1/workflows/{workflow_id}` returns 400 for a

      change to either.


      ### Workflows this API cannot describe


      Some workflows Lumos builds for you, including the out-of-the-box
      provisioning defaults, contain

      steps with no public representation. `GET /v1/workflows` skips them, so a
      page can hold fewer items

      than `page_size` while more results remain. Treat an absent
      `next_page_token`, not a short page, as

      the end of the list. Binding one of these to an app or entitlement returns
      400.
paths:
  /v1/access-reviews/{access_review_id}:
    patch:
      tags:
        - Access Reviews
      summary: Update Access Review
      description: >-
        Update an access review. `name`, `deadline_at`, `apps` and `owners`
        can't be `null`. `owners` replaces every owner, so it can't leave the
        access review with none. `apps` doesn't add or remove app reviews. Use
        `POST /v1/access-reviews/{access_review_id}/apps` and `DELETE
        /v1/access-reviews/{access_review_id}/apps/{app_review_id}` for that.


        The response doesn't include `apps` or `owners`. Read them with `GET
        /v1/access-reviews/{access_review_id}?expand=apps,owners`.
      operationId: v1UpdateAccessReview
      parameters:
        - name: access_review_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              The access review's ID, which `GET /v1/access-reviews` returns as
              `id`.
            title: Access Review Id
          description: >-
            The access review's ID, which `GET /v1/access-reviews` returns as
            `id`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccessReviewPatchInput'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessReview'
        '400':
          description: >-
            Validation error — a malformed body, `null` for a field that can't
            be cleared, a deadline in the past, or an unworkable schedule, with
            `errors[].field` naming the field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Unauthorized
        '403':
          description: >-
            Forbidden — the caller may not update this access review. Updating
            it requires `access_reviews.manage` on it. Organization admins and
            the access review's owners have it, and a custom role can grant it.
            Changing an app review's `removal_workflow` also requires permission
            to set its removal method
            (`access_review.removal_workflow_forbidden`, naming
            `apps[<index>].removal_workflow`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '404':
          description: >-
            Not found — no access review with this ID in your organization
            (`access_review.not_found`), or an `apps` entry names an app review
            this access review doesn't have (`app_review.not_found`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '409':
          description: >-
            Conflict — the access review is completed
            (`access_review.completed`), another access review already has this
            name (`access_review.name_taken`), its schedule can't change in its
            current status, such as while its apps import or after an app review
            has launched, which refuses a new `target_launch_date`
            (`access_review.schedule_locked`), or an app review is `in-removals`
            or `completed`, which refuses a new `removal_workflow`
            (`app_review.removal_workflow_locked`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '422':
          description: >-
            Unprocessable — an `owners` entry can't own the access review, or an
            app review can't take its `removal_workflow`. An `owners` entry that
            is no user or group in your organization reports `owner.not_found`,
            and an inactive one `owner.inactive`, each against its own
            `errors[].field`. A `removal_workflow` removals can't run on, such
            as one that doesn't exist or belongs to another app, is
            `app_review.removal_workflow_invalid`, and one sent for an app
            review whose removals don't run on a workflow is
            `app_review.removal_workflow_not_applicable`. Each names
            `apps[<index>].removal_workflow`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Too Many Requests
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorEnvelope'
          description: Internal Server Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AccessReviewPatchInput:
      properties:
        name:
          type: string
          maxLength: 255
          minLength: 1
          title: Name
          description: >-
            The access review's name, unique in your organization. Leading and
            trailing whitespace is removed, and the name must not be blank.
        deadline_at:
          type: string
          format: date-time
          title: Deadline At
          description: When reviewers' decisions are due. Must be in the future.
        target_launch_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Target Launch Date
          description: >-
            The date the access review launches on. It waits in `scheduled`
            until then, and Lumos launches it on that date once its apps are
            ready. Must not be in the past or after `deadline_at`. Send `null`
            to unschedule the access review, which also stops it recurring.
            Can't change while the access review is `in-preparation` or
            `scheduled-in-preparation`.
        recurrence_config:
          anyOf:
            - $ref: '#/components/schemas/RecurrenceConfigInput'
            - type: 'null'
          description: >-
            A recurrence rule, in `dateutil.rrule` terms, for running the access
            review again. Needs `target_launch_date`. Send this or
            `recurrence_days_frequency`, not both. The rule must be monthly
            (`freq` 1) and name the day it repeats on, with either a
            `bymonthday` from 1 to 28 or a `byweekday` with `n` from 1 to 4, and
            set no other `by*` field. For a cadence counted in days, such as
            weekly, use `recurrence_days_frequency`. Send `null` to stop it
            recurring.
        recurrence_days_frequency:
          anyOf:
            - type: integer
              maximum: 365
              minimum: 1
            - type: 'null'
          title: Recurrence Days Frequency
          description: >-
            The number of days between runs of the access review, from 1 to 365,
            such as 7 for weekly. Needs `target_launch_date`. Send this or
            `recurrence_config`, not both. Send `null` to stop it recurring.
        apps:
          items:
            $ref: '#/components/schemas/AppReviewPatchInput'
          type: array
          maxItems: 200
          title: Apps
          description: >-
            Settings to change on some of the access review's app reviews, at
            most 200, each named once. App reviews you leave out keep their
            settings.
        owners:
          $ref: '#/components/schemas/OwnersInput'
          description: >-
            The users and groups that own the access review, as `{id}`
            references to `GET /v1/users` and `GET /v1/groups`. Owners can
            update the access review and get its owner notifications. Name at
            least one, each active, and at most 100 users and 100 groups. A list
            you leave out is empty. Replaces every current owner. Omit it to
            keep the owners as they are.
      additionalProperties: false
      type: object
      title: AccessReviewPatchInput
      description: >-
        A merge-patch body. A field you omit keeps its value. `name`,
        `deadline_at`, `apps` and

        `owners` can't be `null`. Sending `null` for a scheduling field clears
        it.
      examples:
        - deadline_at: '2027-01-15T23:59:59Z'
        - apps:
            - app_review_id: 3c4d5e6f-7081-9012-cdef-123456789012
              removal_workflow:
                id: 4d5e6f70-8192-0123-def0-234567890123
        - owners:
            groups:
              - id: 5e6f7081-9203-1234-ef01-345678901234
            users:
              - id: 4d5e6f70-8192-0123-def0-234567890123
    AccessReview:
      properties:
        id:
          type: string
          title: Id
          description: The access review's ID.
        url:
          type: string
          title: Url
          description: A link to this access review in the Lumos web app.
        name:
          type: string
          title: Name
          description: The access review's name, unique in your organization.
        status:
          type: string
          enum:
            - in-preparation
            - in-progress
            - completed
            - duplicating
            - scheduled
            - scheduled-in-preparation
          title: Status
          description: >-
            Where the access review is in its lifecycle. `in-preparation`: its
            apps are importing, and it moves to `in-progress` when they finish.
            `in-progress`: the review is under way. `scheduled`: it waits for
            `target_launch_date`, and Lumos launches it on that date.
            `scheduled-in-preparation`: it is scheduled and its apps are still
            importing. `duplicating`: it is being created as a copy of another
            access review. `completed`: the review is finished.
        creation_path:
          type: string
          enum:
            - ui
            - recurrence
            - api
            - cli
            - mcp
          title: Creation Path
          description: >-
            How the access review was created: in the Lumos web app (`ui`), as
            the next run of a recurring review (`recurrence`), or through the
            API, CLI or MCP server (`api`, `cli`, `mcp`).
        created_by_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Id
          description: The ID of the user who created the access review.
        deadline_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Deadline At
          description: When reviewers' decisions are due.
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
          description: When the access review was completed.
        target_launch_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Target Launch Date
          description: >-
            The date a scheduled access review launches on. Null when it isn't
            scheduled.
        recurrence_config:
          anyOf:
            - $ref: '#/components/schemas/RecurrenceConfig'
            - type: 'null'
          description: >-
            The rule the access review recurs by. Null when it doesn't recur by
            rule. `recurrence_config` and `recurrence_days_frequency` are never
            both set.
        recurrence_days_frequency:
          anyOf:
            - type: integer
            - type: 'null'
          title: Recurrence Days Frequency
          description: >-
            The number of days between runs of an access review that recurs on a
            fixed interval. Null when it doesn't.
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: When the access review was created.
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Updated At
          description: When the access review was last updated.
        apps:
          anyOf:
            - items:
                $ref: '#/components/schemas/AppReview'
              type: array
            - type: 'null'
          title: Apps
          description: The access review's app reviews. Requires `expand=apps`.
        owners:
          anyOf:
            - $ref: '#/components/schemas/OwnersOutput'
            - type: 'null'
          description: >-
            The users and groups that own the access review, as the same `User`
            and `Group` that `GET /v1/users` and `GET /v1/groups` return. Owners
            can update the access review and get its owner notifications.
            Requires `expand=owners`.
      type: object
      required:
        - id
        - url
        - name
        - status
        - creation_path
      title: AccessReview
      description: >-
        An access review is a campaign that reviews access across one or more
        apps.
    ApiErrorEnvelope:
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
          description: The error that caused this response.
      type: object
      required:
        - error
      title: ApiErrorEnvelope
      description: >-
        The V1 error response body. Every error nests under `error`, so an error
        body is

        recognizable by its shape, not only its status code.
    RecurrenceConfigInput:
      properties:
        freq:
          type: integer
          title: Freq
          description: >-
            Recurrence frequency. Use dateutil.rrule constants: YEARLY=0,
            MONTHLY=1, WEEKLY=2, DAILY=3, HOURLY=4, MINUTELY=5, SECONDLY=6.
        interval:
          anyOf:
            - type: integer
            - type: 'null'
          title: Interval
          description: Interval between each recurrence. Defaults to 1 (every freq period).
        count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Count
          description: Total number of occurrences. Mutually exclusive with until.
        until:
          anyOf:
            - type: string
            - type: 'null'
          title: Until
          description: >-
            End date/time for the recurrence. ISO 8601 datetime string. Mutually
            exclusive with count.
        byweekday:
          anyOf:
            - items:
                anyOf:
                  - type: integer
                  - $ref: '#/components/schemas/PositionalWeekday'
              type: array
            - type: 'null'
          title: Byweekday
          description: >-
            Days of the week to recur on. 0=Monday, 1=Tuesday, ..., 6=Sunday.
            For positional weekdays (e.g. the first Monday of the month) use the
            {"weekday": N, "n": K} form, e.g. {"weekday": 0, "n": 1}.
        bymonth:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bymonth
          description: Months to recur on (1-12).
        bymonthday:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bymonthday
          description: >-
            Days of the month to recur on (1-31, negative values count from
            end).
        byyearday:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byyearday
          description: >-
            Days of the year to recur on (1-366, negative values count from
            end).
        byweekno:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byweekno
          description: >-
            Week numbers of the year to recur on (1-53, negative values count
            from end).
        bysetpos:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bysetpos
          description: >-
            Positions within the recurrence set to include (e.g. -1 for last
            occurrence, 1 for first).
        byhour:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byhour
          description: Hours of the day to recur on (0-23).
        byminute:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byminute
          description: Minutes of the hour to recur on (0-59).
        bysecond:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bysecond
          description: Seconds of the minute to recur on (0-59).
        wkst:
          anyOf:
            - type: integer
            - type: 'null'
          title: Wkst
          description: Week start day. 0=Monday, 6=Sunday. Defaults to Monday.
      additionalProperties: false
      type: object
      required:
        - freq
      title: RecurrenceConfigInput
      description: A recurrence rule. Unknown keys return 400.
    AppReviewPatchInput:
      properties:
        app_review_id:
          type: string
          title: App Review Id
          description: >-
            The ID of an app review in this access review, which `GET
            /v1/access-reviews/{access_review_id}?expand=apps` returns as the
            `id` of an entry in `apps`.
        removal_workflow:
          $ref: '#/components/schemas/AppReviewRemovalWorkflowInput'
          description: >-
            The deprovisioning workflow that removes the accounts reviewers
            reject on this app review. It must belong to this app, be an
            `account-deprovisioning` workflow, and have at least one step.
            Accepted while the app review is `in-preparation`,
            `assigning-reviewers` or `in-review`, on an account review whose
            removals run on workflows.
        evidence_upload_setting:
          type: string
          enum:
            - always
            - default
          title: Evidence Upload Setting
          description: >-
            Whether a removal needs evidence uploaded. `always` requires it for
            every removal. `default` requires it only when a person removes the
            access.
      additionalProperties: false
      type: object
      required:
        - app_review_id
      title: AppReviewPatchInput
      description: >-
        Settings to change on one of the access review's app reviews. Omitted
        fields keep their

        value, and no field can be `null`.
    OwnersInput:
      properties:
        users:
          items:
            $ref: '#/components/schemas/OwnerReferenceInput'
          type: array
          title: Users
          description: The users who own the resource.
        groups:
          items:
            $ref: '#/components/schemas/OwnerReferenceInput'
          type: array
          title: Groups
          description: The groups that own the resource.
      additionalProperties: false
      type: object
      title: OwnersInput
      description: >-
        The full owner set. Both lists are replaced together, so a list you omit
        is cleared.
    RecurrenceConfig:
      properties:
        freq:
          type: integer
          title: Freq
          description: >-
            Recurrence frequency. Use dateutil.rrule constants: YEARLY=0,
            MONTHLY=1, WEEKLY=2, DAILY=3, HOURLY=4, MINUTELY=5, SECONDLY=6.
        interval:
          anyOf:
            - type: integer
            - type: 'null'
          title: Interval
          description: Interval between each recurrence. Defaults to 1 (every freq period).
        count:
          anyOf:
            - type: integer
            - type: 'null'
          title: Count
          description: Total number of occurrences. Mutually exclusive with until.
        until:
          anyOf:
            - type: string
            - type: 'null'
          title: Until
          description: >-
            End date/time for the recurrence. ISO 8601 datetime string. Mutually
            exclusive with count.
        byweekday:
          anyOf:
            - items:
                anyOf:
                  - type: integer
                  - $ref: '#/components/schemas/PositionalWeekday'
              type: array
            - type: 'null'
          title: Byweekday
          description: >-
            Days of the week to recur on. 0=Monday, 1=Tuesday, ..., 6=Sunday.
            For positional weekdays (e.g. the first Monday of the month) use the
            {"weekday": N, "n": K} form, e.g. {"weekday": 0, "n": 1}.
        bymonth:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bymonth
          description: Months to recur on (1-12).
        bymonthday:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bymonthday
          description: >-
            Days of the month to recur on (1-31, negative values count from
            end).
        byyearday:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byyearday
          description: >-
            Days of the year to recur on (1-366, negative values count from
            end).
        byweekno:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byweekno
          description: >-
            Week numbers of the year to recur on (1-53, negative values count
            from end).
        bysetpos:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bysetpos
          description: >-
            Positions within the recurrence set to include (e.g. -1 for last
            occurrence, 1 for first).
        byhour:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byhour
          description: Hours of the day to recur on (0-23).
        byminute:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Byminute
          description: Minutes of the hour to recur on (0-59).
        bysecond:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Bysecond
          description: Seconds of the minute to recur on (0-59).
        wkst:
          anyOf:
            - type: integer
            - type: 'null'
          title: Wkst
          description: Week start day. 0=Monday, 6=Sunday. Defaults to Monday.
      type: object
      required:
        - freq
      title: RecurrenceConfig
      description: >-
        Shape of a recurrence configuration. Fields map directly to
        dateutil.rrule kwargs.

        See https://dateutil.readthedocs.io/en/stable/rrule.html for full
        documentation.

        The minimum required field is freq.
    AppReview:
      properties:
        id:
          type: string
          title: Id
          description: The app review's ID.
        status:
          type: string
          enum:
            - in-preparation
            - assigning-reviewers
            - in-review
            - completed
            - in-removals
          title: Status
          description: >-
            Where the app review is in its lifecycle. `in-preparation`: the
            app's accounts and entitlements are still importing.
            `assigning-reviewers`: the import is done and the review has not
            launched. `in-review`: reviewers are making decisions.
            `in-removals`: the decisions are final and rejected access is still
            being removed. `completed`: decisions and removals are done.
        launched_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Launched At
          description: When the app review launched.
        url:
          type: string
          title: Url
          description: A link to this app review in the Lumos web app.
        app_id:
          type: string
          title: App Id
          description: The ID of the app under review.
        app_name:
          type: string
          title: App Name
          description: The app's display name.
        app_sources:
          items:
            type: string
            enum:
              - google-workspace-quick-inbox
              - google-workspace-deep-inbox
              - microsoft-deep-inbox
              - microsoft-oauth
              - microsoft-gcc
              - google-workspace-oauth
              - okta
              - manual
              - onelogin
              - atlassian
              - google-cloud
              - integration
              - jumpcloud
              - custom
              - mcp
              - native
          type: array
          title: App Sources
          description: >-
            How Lumos discovered the app, such as `okta`, `integration` or
            `manual`. An app found several ways lists each of them. This
            describes how Lumos found the app, not where the review's data comes
            from.
        review_type:
          type: string
          enum:
            - accounts
            - entitlements
          title: Review Type
          description: >-
            What reviewers decide on: `accounts` reviews each account as a
            whole, `entitlements` reviews each entitlement an account holds.
        app_last_synced_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: App Last Synced At
          description: >-
            When Lumos last synced the app from its integration. An app review
            imports from that synced data.
        last_synced_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Synced At
          description: >-
            When this app review last imported the app's accounts and
            entitlements. Reviewers decide on the imported data, not on live
            data. A value older than `app_last_synced_at` means the import is
            behind the app.
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
          description: When the app review was completed.
        removal_workflow:
          anyOf:
            - $ref: '#/components/schemas/RemovalWorkflowRef'
            - type: 'null'
          description: >-
            The deprovisioning workflow that removes the accounts reviewers
            reject on this app review. Null when none is set.
        evidence_upload_setting:
          anyOf:
            - type: string
              enum:
                - always
                - default
            - type: 'null'
          title: Evidence Upload Setting
          description: >-
            Whether a removal needs evidence uploaded. `always` requires it for
            every removal. `default` requires it only when a person removes the
            access. Null when the app review has no setting.
        filters:
          items:
            $ref: '#/components/schemas/Filter'
          type: array
          title: Filters
          description: >-
            The filters that scope this app review, in the shape you send
            `filters` in. A filter that names a user, account, entitlement or
            group gives its ID. A read leaves out a filter that has no field
            here, and a value that no longer resolves, so the app review can be
            scoped by more than `filters` shows. A stored whole-number range
            reads back as its `GTE` and `LTE`. `:sync` refuses a value the app
            review no longer offers, so drop it before you send these filters
            back.
      type: object
      required:
        - id
        - status
        - url
        - app_id
        - app_name
        - app_sources
        - review_type
        - filters
      title: AppReview
      description: One app within an access review.
    OwnersOutput:
      properties:
        users:
          items:
            $ref: '#/components/schemas/User'
          type: array
          title: Users
          description: The users who own the resource.
        groups:
          items:
            $ref: '#/components/schemas/Group'
          type: array
          title: Groups
          description: The groups that own the resource.
      type: object
      required:
        - users
        - groups
      title: OwnersOutput
      description: >-
        The owners of a resource.


        Each entry is a reference holding only `id` unless its list is expanded,
        in which case

        it is the same `User` or `Group` that `GET /v1/users` and `GET
        /v1/groups` return.

        Expanding only adds fields to an entry.
    ApiError:
      properties:
        detail:
          type: string
          title: Detail
          description: Human-readable summary of the error.
        type:
          $ref: '#/components/schemas/ErrorType'
          description: >-
            Category:
            validation|authentication|permission|not_found|conflict|rate_limited|runtime.
        code:
          type: string
          title: Code
          description: Stable machine-readable error code; branch on this, not 'detail'.
        errors:
          items:
            $ref: '#/components/schemas/ApiErrorField'
          type: array
          title: Errors
          description: Field-level errors; empty for non-validation errors.
      type: object
      required:
        - detail
        - type
        - code
      title: ApiError
      description: The V1 error object — the contents of the envelope's `error` field.
    PositionalWeekday:
      properties:
        weekday:
          type: integer
          maximum: 6
          minimum: 0
          title: Weekday
          description: 0=Monday, 1=Tuesday, ..., 6=Sunday.
        'n':
          anyOf:
            - type: integer
            - type: 'null'
          title: 'N'
          description: >-
            Which occurrence of the weekday within the period (e.g. 1 = first,
            -1 = last). None means every matching weekday.
      type: object
      required:
        - weekday
      title: PositionalWeekday
      description: >-
        A positional weekday for monthly or yearly recurrences. For example,
        "the first Monday of

        the month" is `{"weekday": 0, "n": 1}`.


        A plain integer weekday (0-6) covers the common case. Use this form only
        when you need an

        Nth occurrence, which a plain integer can't express.
    AppReviewRemovalWorkflowInput:
      properties:
        id:
          type: string
          title: Id
          description: >-
            The workflow's ID, which `GET
            /v1/workflows?type=account-deprovisioning&app_id={app_id}` returns
            as `id`.
      additionalProperties: false
      type: object
      required:
        - id
      title: AppReviewRemovalWorkflowInput
    OwnerReferenceInput:
      properties:
        id:
          type: string
          title: Id
          description: The UUID of the user or group.
      additionalProperties: false
      type: object
      required:
        - id
      title: OwnerReferenceInput
      description: A reference to a user or group owner. Unknown fields return 400.
    RemovalWorkflowRef:
      properties:
        id:
          type: string
          title: Id
          description: UUID of the bound workflow.
        deleted:
          type: boolean
          title: Deleted
          description: >-
            Whether the workflow has been deleted since it was set. Removals
            refuse a deleted workflow, so set another.
      type: object
      required:
        - id
        - deleted
      title: RemovalWorkflowRef
    Filter:
      properties:
        field:
          type: string
          title: Field
          description: >-
            Field to filter on, named as the acting resource's filter options
            advertise it. Name a field at most once: filters are AND'ed
            together, so matching any of several values is one filter carrying
            them all. The reserved field `ids` targets resources by their own
            id: `EQ` matches exactly the ids given, `NEQ` everything else
            matching the rest of the criteria.
        operator:
          $ref: '#/components/schemas/FilterOperator'
          description: Comparison to apply. Must be one the field advertises.
        values:
          items:
            type: string
          type: array
          title: Values
          description: >-
            Values to compare against. How many are required depends on the
            operator: `IS_SET` and `NOT_SET` take none, `IN_DATE_RANGE` takes
            two, `EQ` and `NEQ` take one or more, and every other operator takes
            exactly one. A date field takes RFC 3339 timestamps, except under
            the relative operators such as `LAST_N_DAYS`, which take a whole
            number of units.
      additionalProperties: false
      type: object
      required:
        - field
        - operator
      title: Filter
      description: One filter predicate. Unknown fields return 400.
    User:
      properties:
        id:
          type: string
          title: Id
          description: The ID of this user.
        email:
          anyOf:
            - type: string
            - type: 'null'
          title: Email
          description: The email of this user.
        given_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Given Name
          description: The given name of this user.
        family_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Family Name
          description: The family name of this user.
        status:
          anyOf:
            - type: string
              enum:
                - staged
                - active
                - suspended
                - inactive
            - type: 'null'
          title: Status
          description: The status of this user.
      type: object
      required:
        - id
      title: User
    Group:
      properties:
        id:
          type: string
          title: Id
          description: The ID of this group.
        app_id:
          anyOf:
            - type: string
            - type: 'null'
          title: App Id
          description: The ID of the app this group is synced from.
        integration_specific_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Integration Specific Id
          description: The ID of this group, specific to the integration.
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
          description: The name of this group.
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: The description of this group.
        group_lifecycle:
          anyOf:
            - type: string
              enum:
                - synced
                - native
            - type: 'null'
          title: Group Lifecycle
          description: The lifecycle of this group.
          default: synced
        source_app_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Source App Id
          description: >-
            The catalog identifier of the integration this group is synced from,
            such as `okta.com`. It is the integration's `app_class_id`, not the
            app's ID.
      type: object
      required:
        - id
      title: Group
      description: A group in your organization.
    ErrorType:
      type: string
      enum:
        - validation
        - authentication
        - permission
        - not_found
        - conflict
        - rate_limited
        - runtime
      title: ErrorType
    ApiErrorField:
      properties:
        field:
          type: string
          title: Field
          description: Input field this error refers to, e.g. 'steps[2].inputs.group_id'.
        code:
          type: string
          title: Code
          description: Stable machine-readable code for this field error.
        message:
          type: string
          title: Message
          description: Human-readable description of the field error.
      type: object
      required:
        - field
        - code
        - message
      title: ApiErrorField
      description: A single field-level error (used for validation failures).
    FilterOperator:
      type: string
      enum:
        - EQ
        - NEQ
        - BEFORE
        - AFTER
        - CONTAINS
        - NOT_CONTAINS
        - IS_SET
        - NOT_SET
        - LAST_N_DAYS
        - NEXT_N_DAYS
        - LAST_N_WEEKS
        - NEXT_N_WEEKS
        - LAST_N_MONTHS
        - NEXT_N_MONTHS
        - IN_DATE_RANGE
        - MORE_THAN_N_DAYS_AGO
        - MORE_THAN_N_WEEKS_AGO
        - MORE_THAN_N_MONTHS_AGO
        - GT
        - GTE
        - LT
        - LTE
      title: FilterOperator
      description: Comparisons a selection filter may apply.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````