🔨 In Development — This section is still being developed and may change.
Edit message content and metadata after creation. NEW endpoint for content modification with proper authorization and validation.
PATCHhttps://api.freddy.aitronos.com/v1/threads/{thread_id}/messages/{message_id}
Edit message content and metadata after creation. This is a new endpoint that provides content modification capabilities with proper authorization, validation, and audit trails.
thread_id string required
The unique identifier of the thread containing the message.
message_id string required
The unique identifier of the message to update.
content string optional
The new text content for the message. Content is automatically trimmed of leading/trailing whitespace. Cannot be empty or whitespace only.
metadata object optional
Custom key-value pairs for message metadata. Performs partial update - merges with existing metadata.
Bash
- Bash
- Python
- JavaScript
curl -X PATCH "https://api.freddy.aitronos.com/v1/threads/thread_abc123/messages/msg_abc123" \
-H "Authorization: Bearer $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "I have a billing question about my recent invoice"
}'{
"id": "msg_abc123",
"object": "thread.message",
"createdAt": 1741476542,
"updatedAt": 1741476900,
"threadId": "thread_abc123",
"role": "user",
"content": [
{
"type": "text",
"text": "I have a billing question about my recent invoice #INV-2025-001"
}
],
"metadata": {
"edited": true,
"edit_reason": "added invoice number for clarity"
}
}