You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upload a schema for a single entity. If a schema already exists for a
188
-
specified entity, it will be replaced by the one you upload.
189
-
190
-
[block:callout] {
191
-
"type": "warning",
192
-
"title": "Metadata merging behavior",
193
-
"body": "If the new schema is missing `metadata` properties that are currently set in the existing schema for that entity, those properties will be merged into the new schema. For example, if your current schema has `{\"metadata\": {\"com.mixpanel\": {\"hidden\": true}}}` and you upload a new schema without \"hidden\", we will merge `\"hidden\": true` to your uploaded schema's metadata. If you want to remove that property, set the value to `null`."
194
-
} [/block]
195
-
196
-
[block:callout] {
197
-
"type": "info",
198
-
"title": "Adding a schema for User Profiles",
199
-
"body": "To add a schema for your [User Profiles](https://help.mixpanel.com/hc/en-us/articles/115004501966-User-Profiles), specify the `entityType` as `profile` and the `name` as `$user`."
Upload a schema for a single entity. If a schema already exists for a
8
-
specified entity, it will be replaced by the one you upload.
6
+
excerpt: ''
7
+
privacy:
8
+
view: public
9
+
---
10
+
Upload a schema for a single entity. If a schema already exists for a specified entity, it will be replaced by the one you upload.
11
+
12
+
<Callouticon="🚧"theme="warn">
13
+
Metadata merging behavior
9
14
10
-
[block:callout] {
11
-
"type": "warning",
12
-
"title": "Metadata merging behavior",
13
-
"body": "If the new schema is missing `metadata` properties that are currently set in the existing schema for that entity, those properties will be merged into the new schema. For example, if your current schema has `{\"metadata\": {\"com.mixpanel\": {\"hidden\": true}}}` and you upload a new schema without \"hidden\", we will merge `\"hidden\": true` to your uploaded schema's metadata. If you want to remove that property, set the value to `null`."
14
-
} [/block]
15
+
If the new schema is missing `metadata` properties that are currently set in the existing schema for that entity, those properties will be merged into the new schema. For example, if your current schema has `{"metadata": {"com.mixpanel": {"hidden": true}}}` and you upload a new schema without "hidden", we will merge `"hidden": true` to your uploaded schema's metadata. If you want to remove that property, set the value to `null`.
16
+
</Callout>
15
17
16
-
[block:callout] {
17
-
"type": "info",
18
-
"title": "Adding a schema for User Profiles",
19
-
"body": "To add a schema for your [User Profiles](https://help.mixpanel.com/hc/en-us/articles/115004501966-User-Profiles), specify the `entityType` as `profile` and the `name` as `$user`."
20
-
} [/block]
18
+
<Callouticon="📘"theme="info">
19
+
Adding a schema for User Profiles
21
20
22
-
### Example POST Body
21
+
To add a schema for your [User Profiles](https://help.mixpanel.com/hc/en-us/articles/115004501966-User-Profiles), specify the `entityType` as `profile` and the `name` as `$user`.
0 commit comments