Create a User's UserChat

Create new UserChat of a particular User.

Parameter

Accessible via URL https://api.channel.io/open/v3/users/{userId}/user-chats and HTTP POST

Parameter

Example

Required

Description

Parameter type

userId

12345

Required

ID of User

Path

Example

POST https://api.channel.io/open/v3/users/12345/user-chats

Response

Return a newly created UserChat object.


  "userChat": {
    "id": "String",
    "channelId": "String",
    "userId": "String",
    "name": "String",
    "createdAt": 1586095804986,
    "frontUpdatedAt": 1586095804986,
    "deskUpdatedAt": 1586095804986,
    "oneStop": false,
    "version": 1
  },
  "user": {
    "id": "String",
    "channelId": "String",
    "memberId": "String",
    "veilId": "String",
    "name": "String",
    "alert": 8,
    "unread": 8,
    "blocked": false,
    "unsubscribed": false,
    "hasChat": true,
    "hasPushToken": false,
    "language": "String",
    "country": "String",
    "city": "String",
    "latitude": 37.4954,
    "longitude": 127.0621,
    "sessionsCount": 5,
    "lastSeenAt": 1584673657636,
    "createdAt": 1584145649408,
    "updatedAt": 1584934318716,
    "version": 8,
    "member": false,
    "contact": false,
    "avatarUrl": "String",
    "systemLanguage": "String"
  },
  "userSession": {
    "key": "String",
    "chatId": "String",
    "chatKey": "String",
    "channelId": "String",
    "updatedAt": 1586095804998,
    "createdAt": 1586095804998,
    "version": 1,
    "personType": "user",
    "personId": "String",
    "chatType": "userChat",
    "bookmark": false,
    "id": "String"
  }
}