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

# Change a conversation's status, assignee, priority or tags

> Changes a conversation's triage fields, as the app's conversation board does: `status_id` (a column from GET /v1/conversations/statuses), `assignee_id` (from GET /v1/conversations/{conversation_id}/assignable_users; null unassigns, and its AI manages it), `priority`, and tags added or taken off by id. Each field given is applied, with no effect on the others. A conversation linked to a ticket gets the status, priority or assignee change on its ticket shortly after. 422 with nothing to change, an assignee outside the assignable set, or a status, priority or tag the workspace doesn't have. Returns the conversation. Made as the key's person, as they would in the app: only a person's key may (403 for any other). 404 for a conversation the workspace doesn't read, as GET answers.



## OpenAPI

````yaml /api/statisfy-api.openapi.json patch /v1/conversations/{conversation_id}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/conversations/{conversation_id}:
    patch:
      tags:
        - conversations
      summary: Change a conversation's status, assignee, priority or tags
      description: >-
        Changes a conversation's triage fields, as the app's conversation board
        does: `status_id` (a column from GET /v1/conversations/statuses),
        `assignee_id` (from GET
        /v1/conversations/{conversation_id}/assignable_users; null unassigns,
        and its AI manages it), `priority`, and tags added or taken off by id.
        Each field given is applied, with no effect on the others. A
        conversation linked to a ticket gets the status, priority or assignee
        change on its ticket shortly after. 422 with nothing to change, an
        assignee outside the assignable set, or a status, priority or tag the
        workspace doesn't have. Returns the conversation. Made as the key's
        person, as they would in the app: only a person's key may (403 for any
        other). 404 for a conversation the workspace doesn't read, as GET
        answers.
      operationId: conversations_update
      parameters:
        - description: The conversation's id, from GET /v1/conversations
          in: path
          name: conversation_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                add_tags:
                  anyOf:
                    - items:
                        maximum: 2147483647
                        minimum: 1
                        type: integer
                      maxItems: 50
                      type: array
                    - type: 'null'
                  default: null
                  description: Tag ids to add (GET /v1/tags)
                  title: Add Tags
                assignee_id:
                  anyOf:
                    - maxLength: 128
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    A person id from GET
                    /v1/conversations/{conversation_id}/assignable_users; null
                    unassigns (its AI manages it). Leave it out to keep the
                    assignee
                  title: Assignee Id
                priority:
                  anyOf:
                    - enum:
                        - normal
                        - urgent
                      type: string
                    - type: 'null'
                  default: null
                  description: normal or urgent
                  title: Priority
                remove_tags:
                  anyOf:
                    - items:
                        maximum: 2147483647
                        minimum: 1
                        type: integer
                      maxItems: 50
                      type: array
                    - type: 'null'
                  default: null
                  description: Tag ids to take off
                  title: Remove Tags
                status_id:
                  anyOf:
                    - maximum: 2147483647
                      minimum: 1
                      type: integer
                    - type: 'null'
                  default: null
                  description: >-
                    A status id from GET /v1/conversations/statuses (a board
                    column)
                  title: Status Id
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    Conversation:
      properties:
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The account it is about; null when none resolved
          title: Account Id
        activity_id:
          description: >-
            Its thread: on the timeline at GET /v1/activities/{activity_id} (a
            thread started in the portal or the in-app chat has none there)
          title: Activity Id
          type: string
        agent:
          anyOf:
            - $ref: '#/components/schemas/ConversationAgent'
            - type: 'null'
          description: The AI that covers it; null when none does
        ai:
          $ref: '#/components/schemas/ConversationAi'
        assignee:
          anyOf:
            - $ref: '#/components/schemas/ConversationAssignee'
            - type: 'null'
          description: The person it is assigned to
        channel:
          anyOf:
            - enum:
                - portal
                - in_app_sdk
                - email
                - slack
                - teams
                - ticket
              type: string
            - type: 'null'
          description: email, slack, teams, portal or in_app_sdk
          title: Channel
        close_reason:
          anyOf:
            - enum:
                - answered
                - no_reply
                - quiet
                - person
                - person_reply
              type: string
            - type: 'null'
          description: >-
            answered, no_reply, quiet, person (a person closed it) or
            person_reply (a person's reply settled it); null unless its status
            is Closed
          title: Close Reason
        closed_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC; null unless its status is Closed (cleared on a reopen)
          title: Closed At
        created_at:
          description: ISO 8601 UTC
          title: Created At
          type: string
        customer_told_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: when the customer was last told about the engineering
            issue
          title: Customer Told At
        draft:
          anyOf:
            - $ref: '#/components/schemas/ConversationAction'
            - type: 'null'
          description: >-
            The reply waiting for approval: the conversation's newest open reply
            draft, the one that is sent when a person approves it, as the
            Workbench shows it (a loop-in, a person's to-do, only when nothing
            else is open). Null when none is open
        engineering_issue:
          anyOf:
            - $ref: '#/components/schemas/ConversationEngineeringIssue'
            - type: 'null'
          description: The engineering issue it was handed to; null when none
        first_reply_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: when the first reply, from the AI or a person, reached
            the customer
          title: First Reply At
        held:
          default: false
          description: >-
            Held for an account the AI Sales rule made: the app shows its
            subject, people and dates only, until the account is a prospect or
            partner
          title: Held
          type: boolean
        id:
          title: Id
          type: string
        kind:
          anyOf:
            - enum:
                - customer_success
                - support
              type: string
            - type: 'null'
          description: >-
            support (a support AI's conversation) or customer_success (any other
            AI's); null when no AI covers the thread
          title: Kind
        last_message_at:
          anyOf:
            - type: string
            - type: 'null'
          description: 'ISO 8601 UTC: its thread''s latest message'
          title: Last Message At
        loop_in:
          anyOf:
            - $ref: '#/components/schemas/ConversationLoopIn'
            - type: 'null'
          description: >-
            Its latest loop-in: sent while open, or finished on a conversation
            that closed with nothing said since; else null
        outcome:
          anyOf:
            - enum:
                - knowledge
                - account_data
                - engineering
                - person
                - none
              type: string
            - type: 'null'
          description: >-
            knowledge, account_data, engineering, person or none; null unless
            its status is Closed
          title: Outcome
        priority:
          anyOf:
            - enum:
                - normal
                - urgent
              type: string
            - type: 'null'
          description: normal or urgent, as a person set it; null when nobody has
          title: Priority
        reopen_count:
          default: 0
          description: How many times it reopened after closing
          title: Reopen Count
          type: integer
        reply_due:
          anyOf:
            - $ref: '#/components/schemas/ConversationReplyDue'
            - type: 'null'
          description: >-
            The reply the customer is owed and when it is due; null when none is
            owed
        started_by:
          anyOf:
            - enum:
                - customer
                - user
                - digital_worker
                - system
              type: string
            - type: 'null'
          description: >-
            Who wrote the thread's first message: customer, user (a teammate),
            digital_worker (the AI's own outreach) or system; null when it can't
            be told
          title: Started By
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: The workspace's own status name, such as NEEDS RESPONSE
          title: Status
        status_group:
          anyOf:
            - enum:
                - not_started
                - active
                - done
                - archived
              type: string
            - type: 'null'
          description: >-
            The status's group: not_started, active, done or archived, as a
            task's
          title: Status Group
        status_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            Its status's id, as GET /v1/conversations/statuses lists it and
            filter[status] takes it; null when it has none
          title: Status Id
        subject:
          anyOf:
            - type: string
            - type: 'null'
          description: The thread's title, else its first message's email subject
          title: Subject
        tags:
          items:
            $ref: '#/components/schemas/ConversationTag'
          title: Tags
          type: array
        taken_over:
          anyOf:
            - $ref: '#/components/schemas/ConversationTakenOver'
            - type: 'null'
          description: >-
            Set while a person has taken it over from its AI, which then stays
            out of it
        tool_approval:
          anyOf:
            - $ref: '#/components/schemas/ConversationAction'
            - type: 'null'
          description: >-
            The tool calls its AI is waiting for a person to approve; null when
            none are
        updated_at:
          description: 'ISO 8601 UTC: its last change, else its creation'
          title: Updated At
          type: string
      required:
        - id
        - activity_id
        - created_at
        - updated_at
        - ai
      title: Conversation
      type: object
    ConversationAgent:
      properties:
        id:
          description: The AI's id in the workspace
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: ConversationAgent
      type: object
    ConversationAi:
      properties:
        closed_by:
          anyOf:
            - enum:
                - ai_judged
                - ai_no_reply
                - quiet
                - person
              type: string
            - type: 'null'
          description: >-
            Why it closed: ai_judged (the AI replied and judged it resolved),
            ai_no_reply (the AI decided no reply was needed), quiet (our answer
            was last, then silence for the workspace's quiet period; also a
            conversation closed when its history was first loaded) or person (a
            person closed it, or their reply settled it). Null unless its status
            is Closed
          title: Closed By
        participated:
          description: >-
            Whether an AI wrote in the conversation: a digital worker's reply or
            outreach, or its draft a person sent. A notice that a person will
            reply is not taking part, and a reply a person wrote themselves is
            theirs, even when Stella suggested it
          title: Participated
          type: boolean
        resolution:
          anyOf:
            - enum:
                - resolved
                - engineering
                - person
                - none
              type: string
            - type: 'null'
          description: >-
            How it was resolved, once closed: resolved (an AI answered from
            knowledge or the account's data, with no person), engineering
            (handed to engineering), person (a person wrote, edited or approved
            a message) or none (nobody answered). No customer confirmation is
            recorded. Null unless its status is Closed
          title: Resolution
      required:
        - participated
      title: ConversationAi
      type: object
    ConversationAssignee:
      properties:
        id:
          description: The person's id
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        type:
          anyOf:
            - enum:
                - user
                - contact
                - vendor
                - digital_worker
              type: string
            - type: 'null'
          description: user (a teammate), as a rule
          title: Type
      required:
        - id
      title: ConversationAssignee
      type: object
    ConversationAction:
      description: >-
        An open Workbench action on the conversation, as GET
        /v1/workbench/actions lists it.
      properties:
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          description: The AI that drafted it, as `agent` ids it; null for a person's
          title: Agent Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: Created At
        id:
          description: >-
            The action's id: GET /v1/workbench/actions/{action_id} reads it with
            its draft
          title: Id
          type: string
        title:
          description: The card's title, as the Workbench shows it
          title: Title
          type: string
        type:
          description: >-
            email, slack, teams, portal, in_app_sdk or ticket_reply for a reply;
            tool_approval for tool calls
          title: Type
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            ISO 8601 UTC: its last change (an edit to the draft), else its
            creation
          title: Updated At
      required:
        - id
        - type
        - title
      title: ConversationAction
      type: object
    ConversationEngineeringIssue:
      properties:
        key:
          description: The issue's key in its tracker
          title: Key
          type: string
        state:
          anyOf:
            - enum:
                - open
                - started
                - shipped
                - closed_other
              type: string
            - type: 'null'
          description: >-
            open, started, shipped or closed_other, as last synced from the
            tracker
          title: State
        synced_at:
          anyOf:
            - type: string
            - type: 'null'
          description: 'ISO 8601 UTC: when its state was last synced'
          title: Synced At
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        tracker:
          anyOf:
            - enum:
                - linear
                - jira
                - statisfy
              type: string
            - type: 'null'
          description: 'Where the issue lives: statisfy (a task in Statisfy), linear or jira'
          title: Tracker
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
      required:
        - key
      title: ConversationEngineeringIssue
      type: object
    ConversationLoopIn:
      description: >-
        The conversation's latest loop-in, as the board's card shows it: a
        person looped in for

        part of an ask its AI answered.
      properties:
        finished_by:
          anyOf:
            - type: string
            - type: 'null'
          description: The name of who sent it or marked it done, when known
          title: Finished By
        has_draft:
          description: 'Whether its follow-up has words: a draft waits for the person'
          title: Has Draft
          type: boolean
        open:
          description: Whether it still waits on the person
          title: Open
          type: boolean
        sent:
          description: >-
            Whether its follow-up went out; otherwise a finished one was marked
            done
          title: Sent
          type: boolean
        sent_as_worker:
          anyOf:
            - type: boolean
            - type: 'null'
          description: >-
            Whether the follow-up went out as the AI; null where the channel
            records no sender, or nothing went out
          title: Sent As Worker
        title:
          description: The note's first line
          title: Title
          type: string
      required:
        - open
        - title
        - has_draft
        - sent
      title: ConversationLoopIn
      type: object
    ConversationReplyDue:
      properties:
        at_risk_at:
          anyOf:
            - type: string
            - type: 'null'
          description: 'ISO 8601 UTC: from when the board marks it due soon'
          title: At Risk At
        clock:
          anyOf:
            - enum:
                - first_response
                - next_response
              type: string
            - type: 'null'
          description: >-
            first_response (no one has answered yet) or next_response (the
            customer wrote again)
          title: Clock
        due_at:
          description: >-
            ISO 8601 UTC: when the reply is due under the workspace's response
            targets
          title: Due At
          type: string
      required:
        - due_at
      title: ConversationReplyDue
      type: object
    ConversationTag:
      properties:
        color_hex:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Its color, as #RRGGBB'
          title: Color Hex
        id:
          description: 'The tag''s id: filter[tag] takes it'
          title: Id
          type: integer
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: ConversationTag
      type: object
    ConversationTakenOver:
      properties:
        at:
          anyOf:
            - type: string
            - type: 'null'
          description: ISO 8601 UTC
          title: At
        by:
          $ref: '#/components/schemas/ConversationPerson'
          description: The person who took it over from its AI
      required:
        - by
      title: ConversationTakenOver
      type: object
    ConversationPerson:
      properties:
        id:
          description: The user's id, as /v1/objects/user/records ids them
          title: Id
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
      required:
        - id
      title: ConversationPerson
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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