Skip to main content
PATCH
/
v2
/
conversations
/
{conversation_id}
cURL
curl --request PATCH \
  --url https://api.orq.ai/v2/conversations/{conversation_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "displayName": "Updated Support Session",
  "metadata": {
    "generatingTitle": true,
    "entityId": "<string>"
  }
}
'
{
  "kind": "conversation",
  "displayName": "Product Feature Discussion",
  "createdAt": 1734789600000,
  "updatedAt": 1734793200000,
  "_id": "conv_01jj1hdhn79xas7a01wb3hysdb",
  "createdById": "user_01jj1hdhn79xas7a01wb3hysdb",
  "updatedById": "user_01jj1hdhn79xas7a01wb3hysdb",
  "metadata": {
    "generatingTitle": true,
    "entityId": "agent_01jj1hdhn79xas7a01wb3hysdb",
    "model": "openai/gpt-4o"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation_id
string
required

The unique identifier of the conversation to update

Example:

"conv_01jj1hdhn79xas7a01wb3hysdb"

Body

application/json
displayName
string

New display name for the conversation. Maximum 100 characters.

Maximum string length: 100
Example:

"Updated Support Session"

metadata
object

Metadata fields to update. Only provided fields are modified.

Response

Conversation successfully updated. Returns the complete updated conversation object.

kind
enum<string>
required

Resource type discriminator.

Available options:
conversation
displayName
string
required

Human-readable name for the conversation. Maximum 100 characters.

Maximum string length: 100
Example:

"Product Feature Discussion"

createdAt
number
required

Unix timestamp in milliseconds when the conversation was created.

Example:

1734789600000

updatedAt
number
required

Unix timestamp in milliseconds when the conversation was last modified.

Example:

1734793200000

_id
string
default:conv_01kergnekjywgtyahm4nkv01x4

Unique conversation identifier with conv_ prefix.

Example:

"conv_01jj1hdhn79xas7a01wb3hysdb"

createdById
string

Identifier of the user or system that created the conversation.

Example:

"user_01jj1hdhn79xas7a01wb3hysdb"

updatedById
string

Identifier of the user or system that last modified the conversation.

Example:

"user_01jj1hdhn79xas7a01wb3hysdb"

metadata
object

Additional conversation metadata.