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

# Update Configuration

> Updates an eval configuration; omitted fields remain unchanged.



## OpenAPI

````yaml /openapi.json patch /v2/evals/{eval_id}/configurations/{configuration_id}
openapi: 3.1.0
info:
  title: Lightsage Public API
  description: Public API for Lightsage CLI and external integrations.
  version: 1.0.0
servers:
  - url: https://api.lightsage.com
    description: Production
security: []
tags:
  - name: Status
    description: Check API availability and validate the calling API key.
  - name: Visibility
    description: >-
      Measure visibility, citations, competitors, and prompt performance across
      answer platforms.
  - name: Prompts
    description: Manage tracked prompts and topics, and inspect their stored runs.
  - name: Opportunities
    description: Review ranked opportunities computed from prompt visibility results.
  - name: Tasks
    description: Manage the persisted action queue and task lifecycle.
  - name: Site Audits
    description: Review website audit results and page-level findings.
  - name: Evals
    description: Define eval tasks, judges, subjects, and saved configurations.
  - name: Eval Templates
    description: >-
      Select reusable judges, targets, schedules, metadata, and runtime settings
      with `POST /v2/eval-templates`, then copy only those settings into
      prompt-specific evals with `POST /v2/evals/batch`. Templates never contain
      prompts and remain independent from evals created from them.
  - name: Eval Runs
    description: Start eval runs and inspect their lifecycle state.
  - name: Eval Results
    description: Review completed eval outcomes and diagnostic details.
  - name: Agent Preference
    description: >-
      Compare your company head-to-head with a tracked competitor. Create a
      comparison with `POST /v2/agent-preference/evals`, run it with `POST
      /v2/eval-runs`, then read which company agents recommended.
  - name: Agents
    description: List runnable coding-agent harness and model combinations.
  - name: Repositories
    description: Manage reusable Git repository workspaces.
  - name: Environments
    description: List reusable runtime environments without exposing secret values.
  - name: MCP Servers
    description: List reusable MCP server integrations without exposing credentials.
  - name: CLIs
    description: List reusable command-line interfaces without exposing setup commands.
  - name: Skills
    description: List reusable skills available to workflows and evals.
paths:
  /v2/evals/{eval_id}/configurations/{configuration_id}:
    patch:
      tags:
        - Evals
      summary: Update Configuration
      description: Updates an eval configuration; omitted fields remain unchanged.
      operationId: v2_eval_configurations_update
      parameters:
        - name: eval_id
          in: path
          required: true
          schema:
            type: string
            title: Eval Id
        - name: configuration_id
          in: path
          required: true
          schema:
            type: string
            title: Configuration Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateV2EvalConfigurationRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EvalConfiguration'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - LightsageApiKeyAuth: []
components:
  schemas:
    UpdateV2EvalConfigurationRequest:
      properties:
        name:
          type: string
          maxLength: 160
          minLength: 1
          title: Name
        repository_id:
          type: string
          title: Repository Id
        environment_id:
          type: string
          title: Environment Id
        mcp_server_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Mcp Server Ids
        cli_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Cli Ids
        skill_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Skill Ids
        skills:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 20
            - type: 'null'
          title: Skills
          description: >-
            Public skill packages saved with this configuration, using GitHub
            `owner/repository` references.
        include_docs:
          type: boolean
          title: Include Docs
        search_grounding:
          anyOf:
            - $ref: '#/components/schemas/SearchGroundingMode'
            - type: 'null'
          description: Replacement web-retrieval policy. Omit it to keep the saved value.
      additionalProperties: false
      type: object
      title: UpdateV2EvalConfigurationRequest
    V2EvalConfiguration:
      properties:
        id:
          type: string
          title: Id
        eval_id:
          type: string
          title: Eval Id
        name:
          type: string
          title: Name
        repository_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Repository Id
        environment_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Id
        mcp_server_ids:
          items:
            type: string
          type: array
          title: Mcp Server Ids
        cli_ids:
          items:
            type: string
          type: array
          title: Cli Ids
        skill_ids:
          items:
            type: string
          type: array
          title: Skill Ids
        skills:
          items:
            type: string
          type: array
          title: Skills
          description: >-
            Public GitHub `owner/repository` skill packages installed for this
            configuration.
        include_docs:
          type: boolean
          title: Include Docs
          default: false
        search_grounding:
          $ref: '#/components/schemas/SearchGroundingMode'
          description: 'Saved web-retrieval policy: disabled, enabled, or default.'
          default: default
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - id
        - eval_id
        - name
      title: V2EvalConfiguration
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SearchGroundingMode:
      type: string
      enum:
        - disabled
        - enabled
        - default
      title: SearchGroundingMode
      description: Requested web-retrieval behavior for an eval run.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    LightsageApiKeyAuth:
      type: apiKey
      in: header
      name: X-Lightsage-Api-Key

````

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