🔨 In Development — This section is still being developed and may change.
Update thread metadata with partial merge support and visibility controls. NEW endpoint for enhanced thread management.
PATCHhttps://api.freddy.aitronos.com/v1/threads/{thread_id}/metadata
Update thread metadata with partial merge support and visibility controls. This is a new endpoint that provides enhanced thread management capabilities beyond the standard update endpoint.
thread_id string required
The unique identifier of the thread to update.
metadata object optional
Custom key-value pairs for thread metadata. Performs partial update - merges with existing metadata. Maximum 16 key-value pairs.
visibleInUi boolean optional
Whether this thread should be visible in the user interface. Requires Bearer token authentication.
Bash
- Bash
- Python
- JavaScript
curl -X PATCH "https://api.freddy.aitronos.com/v1/threads/thread_abc123/metadata" \
-H "Authorization: Bearer $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"metadata": {
"category": "support",
"priority": "high",
"status": "resolved",
"tags": ["billing", "resolved"]
}
}'{
"id": "thread_abc123",
"object": "thread",
"createdAt": 1741476542,
"updatedAt": 1741476800,
"metadata": {
"category": "support",
"priority": "high",
"status": "resolved",
"tags": ["billing", "resolved"]
},
"assistantId": "asst_support_agent",
"organizationId": "ORG_123",
"userId": "uid_user123",
"title": "Customer Support Query",
"visibleInUi": false,
"messageCount": 5
}