curl --request PUT \
--url https://api.timelyai.com.br/v1/chats/{id}/messages/{messageId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content": "<string>"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sender_type": "customer",
"message_type": "text",
"media_url": "<string>",
"media_type": "<string>",
"is_edited": true,
"created_at": "2023-11-07T05:31:56Z"
}
}Edita o conteúdo de uma mensagem.
curl --request PUT \
--url https://api.timelyai.com.br/v1/chats/{id}/messages/{messageId} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content": "<string>"
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"content": "<string>",
"sender_type": "customer",
"message_type": "text",
"media_url": "<string>",
"media_type": "<string>",
"is_edited": true,
"created_at": "2023-11-07T05:31:56Z"
}
}