Update Conversation

Lets you update the owners and status of a conversation. The update applies only to the conversation identified by its unique id.

PATCH https://api.platica.mx/v1/conversations/{id}

URL parameters

ParameterTypeDescriptionRequired
idstringUnique identifier of the conversation: the id field returned by the listings. See How IDs work

Request body

You must send at least one of the following fields:

FieldTypeDescription
ownersarrayList of responsible-user emails
statusstringNew conversation status

Example

{
  "owners": [
    "soporte@empresa.com",
    "ventas@empresa.com"
  ],
  "status": "finished"
}

Rules for owners

  • Must be sent as email addresses
  • Each email must exist as a workspace user

status transition rules

Allowed values: active, finished, spam, expired.

Expiring a conversation is a form of closing (isFinished): the final status can end up as finished or expired depending on whether the customer ever replied in the thread.

  • External channels (WhatsApp, Instagram, Facebook): expired is a terminal state. The customer's next contact will start a new conversation.
  • Internal API chats: a closed or expired chat can be reopened, either with a PATCH to status: "active" or automatically when it receives a new message through the Chat API .

Response

{
  "status": "success",
  "message": "Conversation updated successfully",
  "data": {
    "ids": [
      "conv_001"
    ]
  }
}