Skip to main content
PATCH
/
api
/
v1
/
user
/
conversations
/
{conversationId}
Update conversation metadata
curl --request PATCH \
  --url https://handauncle-backend-prod-205012263523.asia-south1.run.app/api/v1/user/conversations/{conversationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "pinned": true,
  "tags": [
    "<string>"
  ]
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "lastMessageAt": "2023-11-07T05:31:56Z",
    "status": "active",
    "messageCount": 123,
    "userId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "title": "<string>",
    "type": "chat",
    "inputType": "text",
    "prepromptKey": "<string>",
    "preview": "<string>",
    "pinned": true,
    "tags": [
      "<string>"
    ],
    "metadata": {
      "firstMessage": "<string>",
      "tags": [
        "<string>"
      ],
      "pinned": true,
      "model": "<string>"
    }
  },
  "meta": {
    "timestamp": "2023-11-07T05:31:56Z",
    "requestId": "<string>"
  }
}
Renames, pins/unpins, or retags a conversation. Send any combination of title, pinned, or tags (max 10, ≤50 chars each). Empty payloads are rejected to prevent accidental no-op updates.

Authorizations

Authorization
string
header
required

Auth0 access token for registered users.

Path Parameters

conversationId
string
required

Conversation ID (24 character MongoDB ObjectId).

Required string length: 24

Body

application/json
title
string
Required string length: 1 - 200
pinned
boolean
tags
string[]
Maximum array length: 10
Maximum string length: 50

Response

Conversation updated.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required