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

# Switch Feature Module

> Switch one of your organisation's feature modules off, on or into trial.

Sets the mode of one feature module for your organisation: send `{ "mode": "off" }`, `{ "mode": "on" }` or, where the module offers it, `{ "mode": "trial" }`. The response returns every module, as [List Feature Modules](https://docs.veridox.ai/api-reference/endpoints/org-feature-modules-list.md) does.

## Permission

Requires `organisation_settings:write`, which the Owner role holds by default. A caller without it receives `403`.

## What Changes

* **Only modules you manage.** A module with `managed_by` set to `veridox` is rejected with `400` and `request.organisations.feature-module.staff-switched`. Contact Veridox to change it.
* **Trial only where offered.** `trial` runs the module without changing results. It is accepted only where `offers_trial` is `true`; otherwise the API returns `400` with `request.organisations.feature-module.trial-not-offered`.
* **Analysis modules apply from the next analysis.** A module with `kind` set to `analysis` changes the checks run on documents analysed after the switch. A module with `kind` set to `app` applies straight away.
* **Credits.** Switching on a module with `pricing` set to `credits`, such as `identity_verification` or `verification_checks`, charges credits for each analysis that uses it.
* **Changes are audited.** Each change is recorded in the [audit log](https://docs.veridox.ai/api-reference/endpoints/org-audit-log-get.md) as `feature_modules.updated`, with the module key and the previous and new modes. A request that does not change the mode adds no entry.

## Best Practices

* Send only `mode`. A body with a missing or invalid `mode`, or any other field, is rejected with `400`.
* An unknown module key returns `404` with `request.organisations.feature-module.not-found`. Take keys from [List Feature Modules](https://docs.veridox.ai/api-reference/endpoints/org-feature-modules-list.md).

## Related

* [List Feature Modules](https://docs.veridox.ai/api-reference/endpoints/org-feature-modules-list.md) reads every module's mode.
* [Feature Modules](https://docs.veridox.ai/guides/feature-modules.md) explains kinds, pricing and modes.


## OpenAPI

````yaml PUT /organisations/features/modules/{moduleKey}
openapi: 3.1.0
info:
  title: Veridox Core API
  description: Veridox Core Platform API
  version: 0.0.1
  contact: {}
servers:
  - url: https://api.uk.veridox.ai
    description: Live (UK)
  - url: https://api.ca.veridox.ai
    description: Live (CA)
  - url: https://api.eu.veridox.ai
    description: Live (EU)
security: []
tags:
  - name: Status
    description: System status and health check endpoints
  - name: Authentication
    description: Authentication status of the calling credential
  - name: Cases
    description: Case management
  - name: Case Files
    description: Case file uploads, downloads and analysis results
  - name: Organisations
    description: Organisation management
  - name: Users
    description: The calling user's profile
  - name: Document Requests
    description: Document request management
  - name: Search
    description: Search functionality
paths:
  /organisations/features/modules/{moduleKey}:
    put:
      tags:
        - Organisations
      summary: Switch a feature module on or off
      description: >-
        Switches a customer-switched module on or off for the organisation and
        writes an audit-log entry. Modules managed by Veridox are refused.
        Requires organisation_settings:write.
      operationId: FeatureModulesController_setModule
      parameters:
        - name: moduleKey
          required: true
          in: path
          description: Module key, e.g. finding_locations
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetOrganisationFeatureModuleRequestDto'
      responses:
        '200':
          description: Feature module updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrganisationFeatureModulesResponseDto'
        '400':
          description: >-
            Missing or invalid mode, an unknown field, a module managed by
            Veridox (request.organisations.feature-module.staff-switched), or
            trial on a module without it
            (request.organisations.feature-module.trial-not-offered)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '401':
          description: Unauthorized (invalid or missing authentication token)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '403':
          description: Caller lacks organisation_settings:write
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '404':
          description: 'Unknown module: request.organisations.feature-module.not-found'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
        '429':
          description: Too many requests (rate limit exceeded)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
      security:
        - api-key: []
components:
  schemas:
    SetOrganisationFeatureModuleRequestDto:
      type: object
      properties:
        mode:
          type: string
          enum:
            - 'off'
            - trial
            - 'on'
          description: The new mode. trial is accepted only where offers_trial is true.
          example: 'on'
      required:
        - mode
      additionalProperties: false
    OrganisationFeatureModulesResponseDto:
      type: object
      properties:
        modules:
          type: array
          items:
            type: object
            properties:
              module_key:
                type: string
                enum:
                  - chat
                  - document_requests
                  - finding_locations
                  - knowledge_graph
                  - identity_verification
                  - verification_checks
                description: The module.
                example: identity_verification
              kind:
                type: string
                enum:
                  - analysis
                  - app
                description: >-
                  analysis: changes the checks run on each document, from the
                  next analysis. app: changes what people can do in the app,
                  straight away.
                example: analysis
              pricing:
                type: string
                enum:
                  - included
                  - credits
                description: >-
                  credits: each analysis that uses the module is charged in
                  credits.
                example: credits
              managed_by:
                type: string
                enum:
                  - organisation
                  - veridox
                description: 'Who can switch it: the organisation, or only Veridox.'
                example: organisation
              default_mode:
                type: string
                enum:
                  - 'on'
                  - 'off'
                description: >-
                  The mode an organisation has until the module is switched for
                  it.
                example: 'off'
              mode:
                type: string
                enum:
                  - 'off'
                  - trial
                  - 'on'
                description: >-
                  off: not in use. trial: runs without changing results, where
                  the module offers it. on: in use.
                example: 'on'
              offers_trial:
                type: boolean
                description: Whether the module can be put in trial.
                example: false
              updated_at:
                description: >-
                  When the module was last switched for the organisation; null
                  if never.
                example: '2026-11-11T10:40:00.000Z'
                anyOf:
                  - type: string
                  - type: 'null'
            required:
              - module_key
              - kind
              - pricing
              - managed_by
              - default_mode
              - mode
              - offers_trial
              - updated_at
          description: Every feature module, in a fixed order.
      required:
        - modules
    ErrorDto:
      type: object
      properties:
        error_code:
          type: string
          description: Machine-readable error code for programmatic handling
          examples:
            - request.cases.file.missing-risk-score
            - request.authentication.invalid-token
            - request.forbidden
            - request.cases.case.not-found
            - request.cases.case.already-locked
        error_message:
          type: string
          description: Human-readable error message explaining what went wrong
          example: >-
            User tried to perform an invalid operation on a file without a risk
            score.
        error_details:
          type: object
          example:
            field: email_address
      required:
        - error_code
        - error_message
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: x-api-key

````

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