Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 786 Bytes

File metadata and controls

47 lines (36 loc) · 786 Bytes

Send a Livechat custom field

URL Requires Auth HTTP Method
/api/v1/livechat/custom.field no POST

Example payload

{
  "token": "iNKE8a6k6cjbqWhWd",
  "key": "address",
  "value": "Rocket.Chat Avenue",
  "overwrite": true
}

Example Call

curl -X POST \
     -H "Content-type:application/json" \
     http://localhost:3000/api/v1/livechat/custom.field \
    -d '{"token": "iNKE8a6k6cjbqWhWd", "key": "address", "value": "Rocket.Chat Avenue", "overwrite": true}'

Example Result

{
  "field": {
    "key": "address",
    "value": "Rocket.Chat Avenue",
    "overwrite": true
  },
  "success": true
}

Change Log

Version Description
0.70.0 Added