Skip to main content
PUT
/
{channelId}
/
chats
/
{chatId}
Update chat
curl --request PUT \
  --url https://api.heyy.io/api/v2.0/{channelId}/chats/{chatId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isUnread": true,
  "status": "OPEN",
  "assignedUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "assignedTeamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "data": {
    "id": "<string>",
    "channelId": "<string>",
    "contactId": "<string>",
    "handleId": "<string>",
    "status": "<string>",
    "isUnread": true,
    "assignedUserId": "<string>",
    "assignedTeamId": "<string>",
    "lastMessageAt": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

channelId
string
required
chatId
string
required

Body

application/json
isUnread
boolean
status
enum<string>
Available options:
OPEN,
CLOSED,
SNOOZED
assignedUserId
string<uuid> | null
assignedTeamId
string<uuid> | null

Response

200 - application/json
data
object
required