Loading...

Description

It is allowed to update DisplayName ONLY


Request URL

PUT   https://api.3seventy.com/api/v2.1/account/{accountId}/chat/conversation/{conversationId}

Request Properties

Parameter Description Mandatory
accountId The account ID to update chat log. Yes
conversationId Conversation Id Yes
AccountId The account ID the conversation belongs to. Yes
AutoResponded True if target already got auto-response message Yes
ContactId A contact you are talking to Yes
DisplayName A name to display Yes
LastMessage Last incoming message timestamp Yes
RealTarget Real target -- holding phone number for SMS users Yes
Target Collocutor(s) -- nick or channel name Yes

Response Properties

Property Description
Id The ID the conversation log.
AccountId The account ID the conversation belongs to.
AutoResponded True if target already got auto-response message
ContactId A contact you are talking to
DisplayName A name to display
LastMessage Last incoming message timestamp
RealTarget Real target -- holding phone number for SMS users
Target Collocutor(s) -- nick or channel name
UnreadCount Total messages unread.

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

const int conversationId = XXXX;

var context = new T70Context();

var chatConversationLogRepo = context.Repository<ChatConversationLog>(new { AccountId = accountId, ConversationId = conversationId });

var item = chatConversationLogRepo.Get(conversationId);

item.DisplayName = "updated!";

chatConversationLogRepo.Update(item);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet