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

# Update conversation

> Update a conversation's properties, such as assigned agents or name.



## OpenAPI

````yaml patch /conversations/{conversation_id}
openapi: 3.0.3
info:
  version: 0.1.1
  title: Datagrid API
  description: Datagrid API
servers:
  - url: https://api.datagrid.com/v1
security:
  - BearerAuth: []
paths:
  /conversations/{conversation_id}:
    patch:
      tags:
        - Conversations
      summary: Update conversation
      description: Update a conversation's properties, such as assigned agents or name.
      operationId: Conversations.updateConversation
      parameters:
        - name: conversation_id
          in: path
          required: true
          schema:
            type: string
          description: The id of the conversation to update.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateConversationRequest'
      responses:
        '200':
          description: Updated conversation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
        '429':
          description: >-
            Rate limit exceeded. The request has been throttled because the rate
            limit for this endpoint has been reached. Check the `Retry-After`
            response header and retry after the specified number of seconds.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Datagrid from 'datagrid-ai';


            const client = new Datagrid({
              apiKey: process.env['DATAGRID_API_KEY'], // This is the default and can be omitted
            });


            const conversation = await
            client.conversations.update('conversation_id');


            console.log(conversation.id);
        - lang: Python
          source: |-
            import os
            from datagrid_ai import Datagrid

            client = Datagrid(
                api_key=os.environ.get("DATAGRID_API_KEY"),  # This is the default and can be omitted
            )
            conversation = client.conversations.update(
                conversation_id="conversation_id",
            )
            print(conversation.id)
components:
  schemas:
    UpdateConversationRequest:
      type: object
      description: Request body for updating a conversation.
      properties:
        name:
          type: string
          description: Update the conversation name.
        agent_ids:
          type: array
          items:
            type: string
          description: >-
            Replace the list of agents assigned to this conversation. Pass an
            empty array to clear all agent assignments.
    Conversation:
      type: object
      description: The `conversation` object represents a conversation with an AI agent.
      required:
        - object
        - id
        - created_at
        - updated_at
      properties:
        object:
          type: string
          enum:
            - conversation
          description: The object type, which is always `conversation`.
        id:
          type: string
          description: >-
            The conversation identifier, which can be referenced in the API
            endpoints.
        name:
          type: string
          description: The name of the conversation.
        created_at:
          type: string
          format: date-time
          description: The ISO string for when the conversation was created.
        updated_at:
          type: string
          format: date-time
          description: The ISO string for when the conversation was last updated.
        agent_ids:
          type: array
          items:
            type: string
          description: Array of agent IDs currently assigned to this conversation.
        participated_agent_ids:
          type: array
          items:
            type: string
          description: >-
            Array of agent IDs that have previously responded in this
            conversation. This list only grows and is never cleared when agents
            are reassigned.
    RateLimitError:
      type: object
      description: >-
        Returned when the rate limit is exceeded. Rate limits are enforced per
        teamspace, endpoint path, and HTTP method over a 60-second sliding
        window. Each endpoint may have its own limit — check the
        X-RateLimit-Limit response header for the effective value.
      required:
        - error
        - message
        - retryable
        - status_code
      properties:
        status_code:
          type: integer
          description: The HTTP status code (429).
        statusCode:
          type: integer
          deprecated: true
          description: Deprecated. Use status_code instead.
        error:
          type: string
          enum:
            - rate_limit_exceeded
          description: The error code identifying this as a rate limit error.
        message:
          type: string
          description: A human-readable error message.
        mitigation:
          type: string
          description: Suggested action to resolve the error.
        retryable:
          type: boolean
          description: Whether the request can be retried after a delay.
        details:
          type: object
          properties:
            reason:
              type: string
              description: A detailed explanation of why the rate limit was exceeded.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````