User Custom Fields
Sending data in an custom field
Name
Value
Name
Type
Description
[
{
"key": "tariff",
"value": 2,
"user_id": 123123123
}
]Last updated
POST /v1/send-user-field
Using this method, you can fill in or update several different fields for different users at once.
Headers
Content-Type
application/json
Api-Key
<token>
Body
Pass an array of objects with data:
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
Data type validation occurs later during data processing. During the transfer, only the basic indicators are validated. All errors that occur at late stages of processing end up in the errors section of the resource.
Request
[
{
"key": "tariff",
"value": 2,
"user_id": 123123123
}
]Response
Last updated
{
"ok": true,
}{
"ok": false,
"error_code": 400,
"description": "Wrong json"
}