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

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

{
  "ok": true,
}

Last updated