Skip to content

Instantly share code, notes, and snippets.

@d2kagw
Last active September 20, 2023 01:02
Show Gist options
  • Save d2kagw/96424adaea244eadbe5e089664106be5 to your computer and use it in GitHub Desktop.
Save d2kagw/96424adaea244eadbe5e089664106be5 to your computer and use it in GitHub Desktop.
schema_file_upload.json - Via automated deployment - Visit https://learn.lexer.io for more information.
{
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "A name that Lexer can use to refer to the file uploaded to Lexer. We recommend setting this to {dataset_id}_{record_type}_{timestamp}.ndjson"
},
"destination": {
"type": "object",
"description": "If a destination is specified, the file is uploaded to that dataset",
"properties": {
"dataset_id": {
"type": "string",
"description": "The Dataset ID of the destination Dataset"
},
"record_type": {
"type": "string",
"enum": [
"category",
"customer_record",
"email_bounce",
"email_click",
"email_open",
"email_send",
"email_subscribe",
"product",
"purchase",
"return",
"sms_click",
"sms_send",
"sms_subscribe"
],
"description": "the name of the record type being uploaded"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment