User Custom Fields
Sending data in an custom field
POST /v1/send-user-field
Using this method, you can fill in or update several different fields for different users at once.
Headers
Name
Value
Content-Type
application/json
Api-Key
<token>
Body
Pass an array of objects with data:
Name
Type
Description
key
string
Unique field key
value
String | Number | Boolean | Date
Meaning. There must be a type corresponding to the field type. The date can be in Unixtime, ISO8601, Y-m-d H:i:s format.
user_id
Integer
user_id
Request
[
{
"key": "tariff",
"value": 2,
"user_id": 123123123
}
]Response
{
"ok": true,
}{
"ok": false,
"error_code": 400,
"description": "Wrong json"
}Last updated