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

# Update Resource

> Update a specific resource

## Overview

Update a specific resource. This endpoint allows you to modify the configuration and metadata of an existing resource.


## OpenAPI

````yaml PUT /resources/{id}
openapi: 3.1.0
info:
  title: Ledgerbeam API
  description: >-
    Conversational analytics API for querying data using natural language,
    managing resources, and interacting with data sources
  version: 1.0.0
  contact:
    name: Ledgerbeam Support
    email: support@ledgerbeam.com
  license:
    name: MIT
servers:
  - url: https://api.ledgerbeam.com/v1
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /resources/{id}:
    put:
      summary: Update resource
      description: Update a specific resource
      operationId: updateResource
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Resource ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateResourceRequest'
      responses:
        '200':
          description: Resource updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Resource'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateResourceRequest:
      type: object
      properties:
        name:
          type: string
          description: Resource name
          example: My Updated Database
        description:
          type: string
          description: Resource description
          example: Updated production database connection
        type:
          type: string
          description: Resource type
          example: postgresql
        meta:
          type: object
          description: Resource connection metadata
    Resource:
      type: object
      properties:
        id:
          type: string
          description: Resource ID
          example: res_123456789
        name:
          type: string
          description: Resource name
          example: My Database
        description:
          type: string
          description: Resource description
          example: Production database connection
        type:
          type: string
          description: Resource type
          example: postgresql
        status:
          type: string
          enum:
            - active
            - inactive
            - error
          description: Resource status
          example: active
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
          example: '2024-01-15T10:30:00Z'
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
          example: '2024-01-15T10:35:00Z'
    Error:
      type: object
      properties:
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                description:
                  type: array
                  items:
                    type: string
          description: Error message or validation errors
          example: Unauthorized access
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: API-KEY
      description: API key for authentication

````