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

# Update conversation settings

> Changes the conversation settings (routing, timeouts, reopen window, reply signature, who sees which
conversation). Managers and owners. Only the fields sent change; answers every field as saved.



## OpenAPI

````yaml /api/services-api.yaml patch /v1/tenants/{tenantID}/settings/conversations
openapi: 3.0.3
info:
  description: >-
    Talqui is an omnichannel customer service platform that unifies
    conversations from WhatsApp, Instagram, Telegram, and many other channels
    into a single attendant panel, alongside a broader ecosystem of plugins and
    integrations. This API gives developers programmatic access to Talqui's
    services layer, exposing the operations needed to read and manage tenants,
    conversations, plugins, and related resources that power that platform.


    Authentication is available on behalf of an Operator (the default for this
    API), a Plugin Connection, or a Plugin — see the [Talqui authentication
    guide](https://docs.talqui.chat/guides/introduction/authentication/) for how
    each token is obtained and when to use it.


    Need help or have questions not covered here? Reach out to
    support@talqui.com.
  license:
    name: ISC
    url: https://opensource.org/license/isc-license-txt
  title: Talqui - Services API
  version: 0.123.0
servers:
  - description: Production
    url: https://services-api.talqui.chat
security: []
tags:
  - name: Tenants
  - name: Settings
  - name: Analytics/Reports
  - name: Analytics
  - name: Campaigns
  - name: Campaigns/Models
  - name: Contacts
  - name: Contacts/Imports
  - name: Handoff links
  - name: Inboxes
  - name: Messages
  - name: Notifications
  - name: Sessions
  - name: Operators/Shortcuts
  - name: Operators
  - name: Plugins
  - name: Milestones
  - name: Invites
  - name: Organizations
paths:
  /v1/tenants/{tenantID}/settings/conversations:
    patch:
      tags:
        - Settings
      summary: Update conversation settings
      description: >-
        Changes the conversation settings (routing, timeouts, reopen window,
        reply signature, who sees which

        conversation). Managers and owners. Only the fields sent change; answers
        every field as saved.
      operationId: UpdateConversationSettingsController
      parameters:
        - in: path
          name: tenantID
          required: true
          schema:
            format: uuid
            pattern: >-
              ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                insertOperatorNameOnReply:
                  description: Sign every operator reply with the name of the operator.
                  type: boolean
                routingAssignOnReply:
                  description: Assign a conversation to the operator who answers it first.
                  type: boolean
                routingDistributionStrategy:
                  description: >-
                    How Talqui picks an operator when it routes by itself:
                    random, balanced (least busy) or round-robin.
                  enum:
                    - random
                    - balanced
                    - round-robin
                  type: string
                sessionAutoTimeoutSeconds:
                  description: >-
                    Inactivity, in seconds (900 to 85500), after which a bot
                    conversation is closed.
                  maximum: 85500
                  minimum: 900
                  type: integer
                sessionHistoryAutoMove:
                  description: >-
                    Close idle human conversations by the timeout above; false
                    keeps them listed until an operator closes them.
                  type: boolean
                sessionReopenWindowActive:
                  description: >-
                    Reopen a closed conversation when the contact writes again
                    within the reopen window.
                  type: boolean
                sessionReopenWindowSeconds:
                  description: Reopen window, in seconds (0 to 86400).
                  maximum: 86400
                  minimum: 0
                  type: integer
                sessionTimeoutSeconds:
                  description: >-
                    Inactivity, in seconds (900 to 85500), after which a human
                    conversation is closed.
                  maximum: 85500
                  minimum: 900
                  type: integer
                sessionVisibilityAssignedOnly:
                  description: >-
                    Operators (not managers) see only the conversations assigned
                    to them.
                  type: boolean
                sessionVisibilityObserveHistory:
                  description: >-
                    With the rule above on, operators still see the history
                    (read only).
                  type: boolean
                sessionVisibilityObserveOngoing:
                  description: >-
                    With the rule above on, operators still see "Happening now"
                    (read only).
                  type: boolean
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                additionalProperties: false
                properties:
                  data:
                    additionalProperties: false
                    properties:
                      settings:
                        additionalProperties: false
                        description: >-
                          Every conversation setting after the change, stored
                          values over the defaults.
                        example:
                          insertOperatorNameOnReply: true
                          routingAssignOnReply: false
                          routingDistributionStrategy: balanced
                          sessionAutoTimeoutSeconds: 3600
                          sessionHistoryAutoMove: true
                          sessionReopenWindowActive: false
                          sessionReopenWindowSeconds: 3600
                          sessionTimeoutSeconds: 14400
                          sessionVisibilityAssignedOnly: true
                          sessionVisibilityObserveHistory: true
                          sessionVisibilityObserveOngoing: false
                        properties:
                          insertOperatorNameOnReply:
                            description: >-
                              Sign every operator reply with the name of the
                              operator.
                            type: boolean
                          routingAssignOnReply:
                            description: >-
                              Assign a conversation to the operator who answers
                              it first.
                            type: boolean
                          routingDistributionStrategy:
                            description: >-
                              How Talqui picks an operator when it routes by
                              itself: random, balanced (least busy) or
                              round-robin.
                            enum:
                              - random
                              - balanced
                              - round-robin
                            type: string
                          sessionAutoTimeoutSeconds:
                            description: >-
                              Inactivity, in seconds (900 to 85500), after which
                              a bot conversation is closed.
                            maximum: 85500
                            minimum: 900
                            type: integer
                          sessionHistoryAutoMove:
                            description: >-
                              Close idle human conversations by the timeout
                              above; false keeps them listed until an operator
                              closes them.
                            type: boolean
                          sessionReopenWindowActive:
                            description: >-
                              Reopen a closed conversation when the contact
                              writes again within the reopen window.
                            type: boolean
                          sessionReopenWindowSeconds:
                            description: Reopen window, in seconds (0 to 86400).
                            maximum: 86400
                            minimum: 0
                            type: integer
                          sessionTimeoutSeconds:
                            description: >-
                              Inactivity, in seconds (900 to 85500), after which
                              a human conversation is closed.
                            maximum: 85500
                            minimum: 900
                            type: integer
                          sessionVisibilityAssignedOnly:
                            description: >-
                              Operators (not managers) see only the
                              conversations assigned to them.
                            type: boolean
                          sessionVisibilityObserveHistory:
                            description: >-
                              With the rule above on, operators still see the
                              history (read only).
                            type: boolean
                          sessionVisibilityObserveOngoing:
                            description: >-
                              With the rule above on, operators still see
                              "Happening now" (read only).
                            type: boolean
                        required:
                          - routingAssignOnReply
                          - routingDistributionStrategy
                          - sessionTimeoutSeconds
                          - sessionAutoTimeoutSeconds
                          - sessionHistoryAutoMove
                          - sessionReopenWindowActive
                          - sessionReopenWindowSeconds
                          - insertOperatorNameOnReply
                          - sessionVisibilityAssignedOnly
                          - sessionVisibilityObserveOngoing
                          - sessionVisibilityObserveHistory
                        type: object
                    required:
                      - settings
                    type: object
                required:
                  - data
                type: object
          description: Response for status 200.
        '400':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/RequestValidationError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            RequestValidationError (error_code 1002): unknown field or a value
            out of range.
        '403':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/ForbiddenError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            ForbiddenError (error_code 1004): operator is not a manager, owner
            or superuser of this tenant.
        '404':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/TenantNotFoundError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            TenantNotFoundError (error_code 1062): tenant does not exist or was
            deleted.
        '500':
          content:
            application/json:
              schema:
                properties:
                  errors:
                    items:
                      $ref: '#/components/schemas/UnknownError'
                    maxItems: 1
                    minItems: 1
                    type: array
                required:
                  - errors
                type: object
          description: >-
            UnknownError (error_code 5999): Unexpected internal error not
            otherwise documented for this endpoint.
      security:
        - operatorAuth: []
components:
  schemas:
    RequestValidationError:
      additionalProperties: false
      properties:
        error:
          enum:
            - RequestValidationError
          type: string
        error_code:
          enum:
            - 1002
          type: number
        fields:
          items:
            additionalProperties: false
            properties:
              allowed:
                type: string
              field:
                type: string
              received:
                type: string
            required:
              - field
              - received
              - allowed
            type: object
          type: array
        message:
          example: Invalid request data.
          type: string
        statusCode:
          enum:
            - 400
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
        - fields
      type: object
    ForbiddenError:
      additionalProperties: false
      properties:
        error:
          enum:
            - ForbiddenError
          type: string
        error_code:
          enum:
            - 1004
          type: number
        message:
          example: You do not have access to this resource.
          type: string
        statusCode:
          enum:
            - 403
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
    TenantNotFoundError:
      additionalProperties: false
      properties:
        error:
          enum:
            - TenantNotFoundError
          type: string
        error_code:
          enum:
            - 1062
          type: number
        message:
          example: Tenant not found.
          type: string
        statusCode:
          enum:
            - 404
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
    UnknownError:
      additionalProperties: false
      properties:
        error:
          enum:
            - UnknownError
          type: string
        error_code:
          enum:
            - 5999
          type: number
        message:
          example: For some unknown reason your request has not succeeded.
          type: string
        statusCode:
          enum:
            - 500
          type: number
      required:
        - statusCode
        - error
        - error_code
        - message
      type: object
  securitySchemes:
    operatorAuth:
      bearerFormat: JWT
      description: >-
        Behalf of an Operator (default). A JWT issued by Talqui Core when an
        operator signs in, scoped to every tenant that operator belongs to. Send
        as `Authorization: Bearer <jwt-token>`.
      scheme: bearer
      type: http

````

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