Resolve Conversation

Mark a conversation as resolved or unresolved.

POST https://developers.chatway.app/api/v1/conversations/{conversation_id}/resolve

Example request

curl -X POST "https://developers.chatway.app/api/v1/conversations/0f46c0a1-8938-40e3-b2b5-bb56f569fcab/resolve" \
  -H "X-API-KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "agent_id": "26fa75f2-7ac1-47b4-84e1-b943491ba4da",
    "status": "resolved"
}'

Parameters

NameInRequiredTypeDescription
conversation_idpathYesstringConversation ID Example: 0f46c0a1-8938-40e3-b2b5-bb56f569fcab

Request body

application/json

Responses

200

application/json

404

Conversation not found

application/json

422

Examples

Request body example

{
    "agent_id": "26fa75f2-7ac1-47b4-84e1-b943491ba4da",
    "status": "resolved"
}

Response 200 example

{
    "message": "Conversation resolved.",
    "data": {
        "type": "conversations",
        "id": "id",
        "attributes": []
    }
}