# Update Conversation

`PUT /conversation`

> This is a subset of the full specification, limited to the `PUT /conversation` operation.
>
> You can find the full specification here: /_bundle/docs/guides/fin-custom-helpdesk/api.yaml

```yaml
openapi: 3.0.3
info:
  version: 0.0.1
  title: Fin Custom Helpdesk API
  description: This is a subset of the full specification, limited to the `PUT /conversation` operation.
  contact:
    name: Intercom Developer Support
    url: https://developers.intercom.com
  x-logo:
    url: https://www.intercom.com/favicon.ico
servers:
  - url: https://helpdesk.example.com/api/fin
    description: Your Custom Helpdesk API (replace with your actual domain)
security:
  - BearerAuth: []
tags:
  - name: Conversations
    description: Manage conversations between end-users and agents
paths:
  /conversation:
    put:
      tags:
        - Conversations
      summary: Update Conversation
      description: |
        Called at the end of a synchronization run to push the latest derived data into the Customer’s system.
      operationId: updateConversation
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                conversation_id:
                  type: string
                  description: ID of the conversation to update
                  example: conv_456
                title:
                  type: string
                  description: Conversation title
                  example: Pricing inquiry - resolved
                  nullable: true
                tags:
                  type: array
                  description: List of tags associated with the conversation in your system. Can be used to power routing within the Fin workflow among other things.
                  items:
                    type: string
                  example:
                    - pricing
                    - sales
                attributes:
                  type: object
                  description: Attributes associated with the conversation
                  additionalProperties:
                    anyOf:
                      - type: string
                      - type: integer
                      - type: number
                      - type: boolean
                  example:
                    issue_type: Billing
                    priority: High
                status:
                  type: string
                  description: Conversation status
                  enum:
                    - open
                    - resolved
                    - closed
                    - ended
                  example: resolved
                assignee_id:
                  type: string
                  description: Agent ID (Fin agent). Set to null when handing over to a human agent.
                  example: agent_fin
                last_user_read_at:
                  type: string
                  format: date-time
                  description: When user last read the conversation
                  example: '2025-10-27T15:45:00.000Z'
                  nullable: true
      responses:
        '200':
          description: Conversation updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
components:
  securitySchemes:
    BearerAuth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://helpdesk.fin.com/api/auth/oauth/token
          scopes:
            read: Read access to the API (example)
            write: Write access to the API (example)
      description: OAuth2 access token configured in Fin Deployment UI
  schemas:
    EndUser:
      type: object
      description: |
        End user having a conversation with Fin or with an agent.
      required:
        - id
        - user_type
      properties:
        id:
          type: string
          description: Unique identifier for the user in your system
          example: user_123456
          nullable: false
        user_type:
          type: string
          description: Type of user
          enum:
            - end_user
          nullable: false
        name:
          type: string
          description: User's display name
          example: Jane Doe
          nullable: true
        email:
          type: string
          format: email
          description: User's email address
          example: jane.doe@example.com
          nullable: true
        photo_url:
          type: string
          format: uri
          description: URL to user's avatar/profile picture (displayed in Fin Messenger)
          example: https://example.com/avatars/jane.jpg
          nullable: true
        attributes:
          type: object
          description: Attributes associated with the end-user
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
              - type: string
                format: date-time
                description: ISO 8601 timestamp
                example: '2025-10-27T14:30:00.000Z'
          example:
            plan_type: enterprise
            signup_date: '2024-01-15'
            is_premium: true
          nullable: true
    Agent:
      type: object
      description: |
        Agent having a conversation with an end-user.
      properties:
        id:
          type: string
          description: Unique identifier for the user in your system
          example: agent_123456
        user_type:
          type: string
          description: Type of user
          enum:
            - agent
        name:
          type: string
          description: User's display name
          example: Jane Doe
          nullable: true
        email:
          type: string
          format: email
          description: User's email address
          example: jane.doe@example.com
          nullable: true
        photo_url:
          type: string
          format: uri
          description: URL to user's avatar/profile picture (displayed in Fin Messenger)
          example: https://example.com/avatars/jane.jpg
          nullable: true
        alias:
          type: string
          description: Agent's display alias (shown to end-users instead of real name)
          example: Support Jane
          nullable: true
    Conversation:
      type: object
      required:
        - id
        - status
        - user
        - created_at
        - updated_at
      properties:
        id:
          type: string
          description: Unique identifier for the conversation in your system
          example: conv_456
        status:
          type: string
          description: |
            Current conversation status:
            - `open` - Conversation is actively ongoing with the end-user
            - `resolved` - Conversation is resolved by Fin
            - `closed` - Conversation is finished/archived
            - `ended` - Conversation is ended by the end-user or agent
          enum:
            - open
            - resolved
            - closed
            - ended
        user:
          $ref: '#/components/schemas/EndUser'
        title:
          type: string
          description: Conversation title or subject
          example: Question about pricing plans
          nullable: true
        tags:
          type: array
          description: List of tags associated with the conversation in your system. Can be used to power routing within the Fin workflow among other things.
          items:
            type: string
          example:
            - pricing
            - sales
          nullable: true
        attributes:
          type: object
          description: Attributes associated with the conversation
          additionalProperties:
            anyOf:
              - type: string
              - type: integer
              - type: number
              - type: boolean
          example:
            issue_type: Billing
            priority: High
        assignee:
          $ref: '#/components/schemas/Agent'
          nullable: true
          description: Currently assigned agent (null if unassigned) in your system. Fin typically does not attempt to handle conversations assigned to a human agent. If your system allows for multiple agents to be assigned to a conversation you may choose to return any one of these agents.
        created_at:
          type: string
          format: date-time
          description: When the conversation was created (ISO 8601 UTC)
          example: '2025-10-27T14:30:00.000Z'
        updated_at:
          type: string
          format: date-time
          description: When the conversation was last updated (ISO 8601 UTC)
          example: '2025-10-27T15:45:00.000Z'
```
