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

# Update workspace configs

> Updates the configuration settings for a specified workspace, including asset discovery and auto-enablement options.



## OpenAPI

````yaml /api-reference/openapi.json patch /api/workspaces/configs
openapi: 3.0.0
info:
  title: Open Attack Surface Management
  description: Open-source platform for cybersecurity Attack Surface Management (ASM)
  version: '1.0'
  contact: {}
servers:
  - url: https://{baseUrl}/api/v1
    variables:
      baseUrl:
        default: localhost:3000
        description: API server hostname with port (e.g. localhost:3000, api.example.com)
security: []
tags: []
externalDocs:
  description: Authentication Docs
  url: auth/docs
paths:
  /api/workspaces/configs:
    patch:
      tags:
        - Workspaces
      summary: Update workspace configs
      description: >-
        Updates the configuration settings for a specified workspace, including
        asset discovery and auto-enablement options.
      operationId: WorkspacesController_updateWorkspaceConfigs
      parameters:
        - name: X-Workspace-Id
          in: header
          description: Workspace ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateWorkspaceConfigsDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DefaultMessageResponseDto'
                allOf:
                  - $ref: '#/components/schemas/AppResponseSerialization'
components:
  schemas:
    UpdateWorkspaceConfigsDto:
      type: object
      properties:
        isAssetsDiscovery:
          type: boolean
          example: true
          default: true
          title: Asset discovery
          description: >-
            Automatically scan and detect internet-facing assets (domains, IPs)
            in workspace networks
        isAutoEnableAssetAfterDiscovered:
          type: boolean
          example: true
          default: true
          title: Auto enable assets
          description: >-
            Newly discovered assets become active immediately without manual
            review
      required:
        - isAssetsDiscovery
        - isAutoEnableAssetAfterDiscovered
    DefaultMessageResponseDto:
      type: object
      properties:
        message:
          type: string
          example: Success
      required:
        - message

````