Set traits

Authorizations:
Request Body schema: application/json

The /set_traits endpoint sets user-specific traits. Traits are key-value pairs that are either used as features during price optimization or to segment the user-base for analytics purposes. The subset of traits that are used as features is settable in Corrily's dashboard.

user_id
required
string

Unique user identifier

traits
required
object

A dictionary of user-specific traits. Any traits useful as features for training the price optimization model or for segmenting the user base can be entered as key-value pairs in the traits dictionary.

Responses

Request samples

Content type
application/json
{
  • "user_id": "user_001",
  • "traits": {
    }
}

Response samples

Content type
application/json
{
  • "status": "string"
}
Copyright © Corrily 2020. All right reserved.