-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into myronkaifung-add-customerio
- Loading branch information
Showing
21 changed files
with
590 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1191,22 +1191,24 @@ paths: | |
description: | | ||
Replace the contents of an existing Lookup Table. | ||
*** | ||
Lookup Tables must be [created via our UI](https://docs.mixpanel.com/docs/data-structure/lookup-tables#how-do-i-upload-a-lookup-table). Once a Lookup Table is created, its contents can be replaced via this API. | ||
[block:api-header] | ||
{ | ||
"title": "Validation" | ||
} | ||
[/block] | ||
* The first column of the lookup table is assumed to be the ID of the row. All ID values must be unique. | ||
* The first row of the lookup table is a header row. The values in the header must be unique, as each one uniquely identifies a column of the table. These will appear as properties of the lookup table in Mixpanel's UI. | ||
* The CSV must be valid according to RFC4180. | ||
* The CSV must be valid according to [RFC4180](https://datatracker.ietf.org/doc/html/rfc4180). | ||
* If the `Content-Encoding: gzip` header is supplied, the table will be decompressed before parsing. | ||
[block:api-header] | ||
{ | ||
"title": "Types" | ||
} | ||
[/block] | ||
* Integers or floats will be parsed as numbers. | ||
* RFC3339 timestamps (`2021-08-21T05:36:01Z`) will parsed as datetimes. | ||
* [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339) timestamps (`2021-08-21T05:36:01Z`) will parsed as datetimes. | ||
* `true` or `false` (case-insensitive) will be parsed as boolean. | ||
* Empty fields (two adjacent commas) will be treated as `undefined` | ||
* Comma separated, quoted strings in square brackets (`"["Free","Paid","Enterprise"]"`) will be parsed as list of strings. | ||
|
@@ -1249,14 +1251,15 @@ paths: | |
This endpoint will return a 429 error if called more than 100 times in a rolling 24 hour window. We recommend updating lookup tables at most hourly to stay within this limit. | ||
This endpoint will return a 413 error if a Lookup Table exceeds 100MB uncompressed. In practice, this translates to 1-2M rows. If you have a lookup table that exceeds the limit, we recommend pruning the number of columns to those that are useful to analysis. Removing long URLs or user-generated content can bring a lookup table within this limit. If you still exceed the limit, please reach out to us at [email protected] -- we'd love to hear your use case! | ||
parameters: | ||
- in: path | ||
name: id | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
description: The ID of the lookup table to replace. | ||
description: The ID of the lookup table to replace which can be retreived from Lexicon under the lookup table's details, click [here](https://docs.mixpanel.com/docs/data-structure/lookup-tables#where-can-i-find-the-id-of-the-lookup-table-for-apis-path-params) for more info. | ||
- in: query | ||
name: project_id | ||
required: True | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.