Change the status of a chat
POST
/openapi/chat/status/{chatId}/{status}
const url = 'https://open-api.replyco.com/openapi/chat/status/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/0%20-%20Open';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://open-api.replyco.com/openapi/chat/status/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/0%20-%20Open \ --header 'Authorization: Bearer <token>'Updates the chat status (e.g., Open, Closed, Pending). This action is logged in the changes history.
Available statuses:
- Open: Active chat
- Closed: Resolved chat
- Pending: Awaiting response
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”chatId
required
string format: uuid
Chat ID to update
status
required
integer format: int32
New status to set for the chat
Responses
Section titled “Responses”Status was successfully changed
Invalid status value
User is not authenticated or authorized
Chat with the specified ID was not found