Update a conversation
Call Create conversation first, then replace conv_123 with the returned conv_ ID.
/model/v1/conversations/{conversation_id}● SupportedRequest parameters
conversation_idstringrequiredpath: Id of the conversation, the
idof the object returned by createConversation (it looks like conv_...). Another tenant's conversation, an unknown id and a deleted conversation all answer 404 conversation_not_found.metadataobjectrequiredReplacement metadata. The whole object replaces the old one; it is not merged. Up to 16 pairs, keys at most 64 characters and values at most 512. Router support (supported): Verified to take effect.
Verified to take effect.
Returns
200 conversation
Replaces a conversation's metadata wholesale — it does not merge with existing metadata.
Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — see error codes
Request
curl
# Call Create conversation first, then replace conv_123 with the returned conv_ ID.
curl https://api.deepraxis.com/model/v1/conversations/conv_123 \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"metadata":{"topic":"updated"}}'Python
# Call Create conversation first, then replace conv_123 with the returned conv_ ID.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deepraxis.com/model/v1",
api_key="$PRAXIS_API_KEY",
)
conversation = client.conversations.update(
"conv_123",
metadata={"topic": "updated"},
)TypeScript
// Call Create conversation first, then replace conv_123 with the returned conv_ ID.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.deepraxis.com/model/v1",
apiKey: "$PRAXIS_API_KEY",
});
const conversation = await client.conversations.update("conv_123", {
metadata: { topic: "updated" },
});Response 200
{
"id": "conv_2359675c12b145c6b4350e76",
"object": "conversation",
"created_at": 1790305669,
"metadata": {
"topic": "updated"
}
}Response
HTTP 200
The updated conversation
application/json
| Name | Type | Description |
|---|---|---|
| id | string | Id of the conversation, such as conv_...; use it as conversation_id in conversation calls and as conversation in createResponse. |
| object | string | Object type; always conversation. |
| created_at | integer | Unix time in seconds at which the conversation was created. |
| metadata | object | Up to 16 string key/value pairs; keys at most 64 characters and values at most 512. |