Properties
| Name | Type | Description |
|---|---|---|
| $token | string | Mixpanel project token |
| $distinct_id | string | Unique identifier for the user profile |
| $ip | string | IP address for geolocation |
| $set | object | Properties to set (overwrites existing values) |
| $set_once | object | Properties to set only if they do not already exist |
| $add | object | Numeric properties to increment |
| $append | object | Values to append to list properties |
| $remove | object | Values to remove from list properties |
| $union | object | Values to merge into list properties without duplicates |
| $unset | array | Property names to remove from the profile |
| $delete | string | Set to empty string to delete the profile entirely |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/ProfileUpdate",
"title": "ProfileUpdate",
"type": "object",
"required": [
"$token",
"$distinct_id"
],
"properties": {
"$token": {
"type": "string",
"description": "Mixpanel project token"
},
"$distinct_id": {
"type": "string",
"description": "Unique identifier for the user profile"
},
"$ip": {
"type": "string",
"description": "IP address for geolocation"
},
"$set": {
"type": "object",
"additionalProperties": true,
"description": "Properties to set (overwrites existing values)"
},
"$set_once": {
"type": "object",
"additionalProperties": true,
"description": "Properties to set only if they do not already exist"
},
"$add": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Numeric properties to increment"
},
"$append": {
"type": "object",
"additionalProperties": true,
"description": "Values to append to list properties"
},
"$remove": {
"type": "object",
"additionalProperties": true,
"description": "Values to remove from list properties"
},
"$union": {
"type": "object",
"additionalProperties": {
"type": "array"
},
"description": "Values to merge into list properties without duplicates"
},
"$unset": {
"type": "array",
"items": {
"type": "string"
},
"description": "Property names to remove from the profile"
},
"$delete": {
"type": "string",
"description": "Set to empty string to delete the profile entirely"
}
}
}