Skip to main content
PUT
Update traits

Authorizations

Authorization
string
header
required

An API key (mana_api_...) with scopes. It reads reports and writes player traits.

Path Parameters

projectId
string<uuid>
required

The project ID

playerKey
string
required

The player key of an identified player: user: and the user ID that you send with identify (1 to 255 characters). URL-encode it, for example user%3Aplayer-42.

Required string length: 6 - 260
Pattern: ^user:

Body

application/json

1 to 50 traits, at most 8 KB as JSON. A value is a string (at most 1024 characters), a number, a boolean, or null to delete the trait. user_id is reserved.

{key}
Maximum string length: 1024

Response

The player traits after the write

player_key
string
required

user: and the user ID

user_id
string
required
traits
object
required

The user traits read before the write, with this update merged in

set
string[]
required

The keys that this request set

deleted
string[]
required

The keys that this request deleted

updated_at
string
required

The time of the write (ISO 8601)