Update Conversation

PUThttps://services.leadconnectorhq.com/conversations/{conversationId}
Update the conversation details based on the conversation ID
Request

Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123
Path Parameters
conversationId
string
required

Conversation ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
Headers
Authorization
string
required

Access Token

Example:
Bearer 9c48df2694a849b6089f9d0d3513efe
Version
string
required

API Version

Allowed value:
2021-07-28
Body
locationId
string
required

Location ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
unreadCount
number

Count of unread messages in the conversation

Example:
1
starred
boolean

Starred status of the conversation.

Example:
true
feedback
object

Responses

Successful response

success
boolean
required

Boolean value as the API response.

Example:
true
conversation
object
required

Conversation data of the provided conversation ID.

id
string

Contact ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
locationId
string
required

Location ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
contactId
string
required

Contact ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
assignedTo
string

Assigned User ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
userId
string

User ID as string

Example:
tDtDnQdgm2LXpyiqYvZ6
lastMessageBody
string

Last message body as string

Example:
Hello, this is the message body
lastMessageDate
string

Last message date as UTC

Example:
1628008053263
lastMessageType
string

Type of the last message sent/received in the conversation.

Allowed values:
TYPE_CALLTYPE_SMSTYPE_EMAILTYPE_SMS_REVIEW_REQUESTTYPE_WEBCHATTYPE_SMS_NO_SHOW_REQUESTTYPE_CAMPAIGN_SMSTYPE_CAMPAIGN_CALLTYPE_CAMPAIGN_EMAILTYPE_CAMPAIGN_VOICEMAILTYPE_FACEBOOKTYPE_CAMPAIGN_FACEBOOKTYPE_CAMPAIGN_MANUAL_CALLTYPE_CAMPAIGN_MANUAL_SMSTYPE_GMBTYPE_CAMPAIGN_GMBTYPE_REVIEWTYPE_INSTAGRAMTYPE_WHATSAPPTYPE_CUSTOM_SMSTYPE_CUSTOM_EMAILTYPE_CUSTOM_PROVIDER_SMSTYPE_CUSTOM_PROVIDER_EMAILTYPE_IVR_CALLTYPE_ACTIVITY_CONTACTTYPE_ACTIVITY_INVOICETYPE_ACTIVITY_PAYMENTTYPE_ACTIVITY_OPPORTUNITYTYPE_LIVE_CHATTYPE_LIVE_CHAT_INFO_MESSAGETYPE_ACTIVITY_APPOINTMENTTYPE_FACEBOOK_COMMENTTYPE_INSTAGRAM_COMMENTTYPE_CUSTOM_CALLTYPE_INTERNAL_COMMENT
Example:
TYPE_CALL
unreadCount
number

Count of unread messages in the conversation

Example:
1
inbox
boolean

Inbox status of the conversation.

Example:
true
starred
boolean

Starred status of the conversation.

Example:
true
deleted
boolean
required

Deleted status of the conversation.

Example:
false

Unprocessable Entity

statusCode
number
Example:
422
message
array[string]
Example:
["Unprocessable Entity"]
error
string
Example:
Unprocessable Entity

Unauthorized

statusCode
number
Example:
401
message
string
Example:
Invalid token: access token is invalid
error
string
Example:
Unauthorized

Bad Request

statusCode
number
Example:
400
message
string
Example:
Bad Request