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

# Toggle a module

> Sets whether a module is enabled. Missing modules cannot be enabled.



## OpenAPI

````yaml /cyrnel/openapi.json post /modules/{moduleId}/enabled
openapi: 3.0.0
info:
  title: Cyrnel API
  description: >-
    Cyrnel is a universal layer that connects AI agents and LLM applications to
    any external service, API, or device regardless of protocol or standard. It
    acts as an adaptive bridge between your AI and the outside world, enabling
    seamless integrations through code execution, async operation handling, and
    built-in observability and security controls.
  version: 1.0.0
servers:
  - url: http://localhost:9371
security: []
paths:
  /modules/{moduleId}/enabled:
    post:
      tags:
        - Modules
      summary: Toggle a module
      description: Sets whether a module is enabled. Missing modules cannot be enabled.
      parameters:
        - schema:
            type: string
            minLength: 1
            description: Module identifier.
          required: true
          description: Module identifier.
          name: moduleId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ModuleEnabledRequest'
      responses:
        '200':
          description: The module enabled state was updated.
        '400':
          description: The request body or moduleId path parameter was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: A bearer token was required but missing or invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '404':
          description: The module could not be found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '409':
          description: The module is missing and cannot be enabled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '500':
          description: The module enabled state could not be updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    ModuleEnabledRequest:
      type: object
      properties:
        enabled:
          type: boolean
          description: Desired enabled state for the module.
      required:
        - enabled
      description: Request body used to toggle a module enabled state.
    ApiErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message returned by the API.
      required:
        - error
      description: Standard error envelope returned by the HTTP error middleware.

````