Post
/api/v1/livechat/custom.fields
Send an array of values for different custom fields.
Changelog
Version | Description |
---|---|
0.70.0 | Added |
Body parameters
Example 1
{
"token": "iNKE8a6k6cjbqWhWd",
"customFields": [
{
"key": "address",
"value": "Rocket.Chat Avenue",
"overwrite": true
}
]
}
object
token
string Required
The visitor token.
customFields
Array of object Required
The object in which you must enter the custom field information.
object
key
string Required
The custom field.
value
string Required
The value you want to set for the custom field.
overwrite
boolean Required
Overwrite the value of the custom field.
Responses
200
OK
Success Example
{
"fields": [
{
"Key": "address",
"value": "Rocket.Chat Avenue",
"overwrite": true
}
],
"success": true
}
object
fields
Array of object
object
Key
string
value
string
overwrite
boolean
success
boolean
400
Bad Request
Example 1
{
"success": false,
"error": "must have required property 'token' [invalid-params]",
"errorType": "invalid-params"
}
Example 2
{
"success": false,
"error": "must have required property 'key' [invalid-params]",
"errorType": "invalid-params"
}
object
success
boolean
error
string
errorType
string