cURL
curl --request PATCH \ --url https://api.faces.sh/v1/compile/threads/{thread_id}/messages \ --header 'Content-Type: application/json' \ --data ' { "messages": [ { "role": "user", "content": "<string>", "from": "<string>" } ] } '
{ "thread_id": "<string>", "label": "<string>", "model": "<string>", "source": "<string>", "messages": [ { "role": "<string>", "content": "<string>", "name": "<string>" } ], "message_count": 123, "messages_archived": 123, "synced": true, "token_count": 123, "tokens_used": 123, "tokens_limit": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Replace all messages in a compile thread (e.g. after upload, before sync).
Show child attributes
Successful Response