Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (30 loc) · 1.58 KB

File metadata and controls

40 lines (30 loc) · 1.58 KB

Send Custom Field Value

Send the value for a custom field.

HTTP MethodURLRequires Auth
POST/api/v1/livechat/custom.fieldno

Body Parameters

KeyExample ValueDescription
token*iNKE8a6k6cjbqWhWdThe visitor token.
key*addressThe custom field.
value*Rocket.Chat AvenueThe value you want to set for the custom field.
overwrite*trueOverwrite the value of the custom field.

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 Response

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

Change Log

Version Description
0.70.0 Added