From a438e9c862bb1f1cc3cd41c330c0e5fb8d85418d Mon Sep 17 00:00:00 2001 From: Samrat Dutta <52174734+gapking90@users.noreply.github.com> Date: Mon, 15 Feb 2021 14:58:17 +0530 Subject: [PATCH 1/5] mixpanel catalog element publish to openlabs --- elements-metadata.json | 1466 +++++++++++++++------------------- mixpanel-clone/README.md | 3 + mixpanel-clone/element.json | 1 + mixpanel-clone/metadata.json | 1 + mixpanel-clone/swagger.json | 1 + 5 files changed, 649 insertions(+), 823 deletions(-) create mode 100644 mixpanel-clone/README.md create mode 100644 mixpanel-clone/element.json create mode 100644 mixpanel-clone/metadata.json create mode 100644 mixpanel-clone/swagger.json diff --git a/elements-metadata.json b/elements-metadata.json index cf6d60b..e63a63b 100644 --- a/elements-metadata.json +++ b/elements-metadata.json @@ -1,825 +1,645 @@ { - "Mandrill": { - "image": "https://images.cloudelements.io/mandrill201810221710.png", - "path": "mandrill_3/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Mandrill", - "description": "mailchimp's transactional email service, mandrill", - "active": true, - "vendor_version": "1", - "key": "mandrill_3" - }, - "CambridgeFx": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/democambridgefx/democambridgefx.png", - "path": "democambridgefx/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "CambridgeFX (Demo)", - "description": "The CambridgeFX element", - "active": true, - "vendor_version": "252497", - "key": "democambridgefx" - }, - "Mavenlink": { - "image": "https://images.cloudelements.io/LogoName201712152026.png", - "path": "mavenlink/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Mavenlink", - "description": "Mavenlink Element", - "active": true, - "vendor_version": "v1", - "key": "mavenlink" - }, - "GitHub": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/github_max_test/github_max_test.png", - "path": "github_max_test/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "GitHub", - "description": "Build software better, together. Powerful collaboration, code review, and code management for open source and private projects.", - "active": true, - "vendor_version": "latest", - "key": "github_max_test" - }, - "Asana": { - "image": "https://images.cloudelements.io/asana201711150235.png", - "path": "asana/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Asana", - "description": "Asana helps teams track their work and manage projects.", - "active": true, - "vendor_version": "1", - "key": "asana" - }, - "Okta": { - "image": "https://images.cloudelements.io/Screen%20Shot%202018-11-07%20at%2010.53.38%20AM201811071753.png", - "path": "demookta/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "OKTA (Demo)", - "description": "Provide secure identity management and single sign-on to any application, whether in the cloud, on-premises or on a mobile device.", - "active": true, - "vendor_version": "v1", - "key": "demookta" - }, - "ICIMs": { - "image": "https://images.cloudelements.io/icims-logo-main201901252048.png", - "path": "icims/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "ICIMS", - "description": "this is a demo element for ICIMS API", - "active": true, - "vendor_version": "latest", - "key": "icims" - }, - "Pendo": { - "image": "https://images.cloudelements.io/pendo-share-logo201804082331.png", - "path": "pendoapi/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Pendo", - "description": "Pendo API", - "active": true, - "vendor_version": "v1", - "key": "pendoapi" - }, - "Repsly": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-03-09%20at%208.50.48%20AM201903091550.png", - "path": "repsly/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Repsly", - "description": "Repsly Mobile CRM brings organizations closer to their field reps and helps them execute at retail. Improve brand visibility, build accountability, and more.", - "active": true, - "vendor_version": "v3", - "key": "repsly" - }, - "Returnly": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/returnlyapi/returnlyapi.png", - "path": "returnlyapi/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Returnly API", - "description": "# Introduction\nThe Returnly API enables developers to seamlessly receive and pass up-to-date returns and refunds data into the platforms you use to run your business. Optimize your returns and merchandise strategies, maximize your technology investments and streamline your business with our [Returns](#tag/Returns), [Requests](#tag/Requests) & [Refunds](#tag/Refunds) APIs\n\n# Common Use Cases\n * Update your OMS with real-time returns data\n * Get up to date returns status in real-time\n * Leverage granular return data to optimize your current merchandise initiatives\n * Track shipping and delivery of product returns\n * Feed your CRM systems with real-time customer returns data\n * Manage inventory predictably by monitoring returns and understanding which items have resell potential\n * Manage inventory predictably by monitoring returns and understanding which items have resell potential\n * Automate order refunds by connecting your warehouse scan system to the Returnly Refund API\n\n# Getting Started\n## Customers\nYou will need an Enterprise Returnly license in order to access our API. Please contact your Returnly representative to gain access.\n", - "active": true, - "vendor_version": "v1.0.0", - "key": "returnlyapi" - }, - "VersaPay": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/versapay/versapay.png", - "path": "versapay/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "VersaPay", - "description": "versapay", - "active": true, - "vendor_version": "latest", - "key": "versapay" - }, - "FullContact": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/fullcontact/fullcontact.png", - "path": "fullcontact/element.json", - "hub": "crm", - "author": "Nick Bair", - "name": "Full Contact", - "description": "Keep all your contacts in one place and automatically up-to-date with the FullContact Address Book.", - "active": true, - "vendor_version": "v2", - "key": "fullcontact" - }, - "SurveyMonkey": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-27%20at%2010.44.00%20AM201902271746.png", - "path": "surveymonkey/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Survey Monkey", - "description": "Create Surveys That Get Responses.", - "active": true, - "vendor_version": "v3", - "key": "surveymonkey" - }, - "Calculator": { - "image": "http://developers.cloud-elements.com/assets/img/default-ce-logo-element-builder.png", - "path": "democalculator/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Calculator Soap", - "description": "Imported simple calculator SOAP Element", - "active": true, - "vendor_version": "latest", - "key": "democalculator" - }, - "Pinterest": { - "image": "https://images.cloudelements.io/App-Pinterest-icon-with-out-background201808282145.png", - "path": "pinterest/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Pinterest", - "description": "Pinterest Element", - "active": true, - "vendor_version": "v1", - "key": "pinterest" - }, - "Taulia": { - "image": "https://images.cloudelements.io/taulia-squarelogo-1517525911560201901231715.png", - "path": "taulia/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Taulia", - "description": "An HMAC signature element built for Taulia POC", - "active": true, - "vendor_version": "v1", - "key": "taulia" - }, - "TalentReef": { - "image": "https://images.cloudelements.io/TR201901252050.png", - "path": "talentreef/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "TalentReef", - "description": "talentreef apis", - "active": true, - "vendor_version": "v1", - "key": "talentreef" - }, - "AccurateBackground": { - "image": "https://images.cloudelements.io/Screen%20Shot%202018-11-07%20at%2010.54.19%20AM201811071755.png", - "path": "demoaccuratebackground/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Accurate Background (Demo)", - "description": "Accurate Background API", - "active": true, - "vendor_version": "v3", - "key": "demoaccuratebackground" - }, - "Samanage": { - "image": "https://images.cloudelements.io/logo_2712_hd-v3201811022006.png", - "path": "demosamanage/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Samanage (Demo)", - "description": "Samanage help desk Element", - "active": true, - "vendor_version": "v2.1", - "key": "demosamanage" - }, - "VCloudAir": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/vcloudair/vcloudair.png", - "path": "vcloudair/element.json", - "hub": "infrastructure", - "author": "Nick Bair", - "name": "vCloud Air", - "description": "vCloud Air is the hybrid cloud built for modern IT.", - "active": true, - "vendor_version": "5.7", - "key": "vcloudair" - }, - "Lyft": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.40.30%20PM201902232040.png", - "path": "lyft/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Lyft", - "description": "Lyft", - "active": true, - "vendor_version": "v1", - "key": "lyft" - }, - "Billy": { - "image": "https://images.cloudelements.io/35356_96135128d7a4354e6d895f49f271ed30b9ee0c97_billy-app_m201901211815.png", - "path": "billyaccounting/element.json", - "hub": "finance", - "author": "Ricky", - "name": "Billy", - "description": "Accounting Software", - "active": true, - "vendor_version": "v2", - "key": "billyaccounting" - }, - "CloudElements": { - "image": "https://raw.githubusercontent.com/democloudelementsOpenLabs/elements/master/democloudelements/democloudelements.png", - "path": "democloudelements/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Cloud Elements (Demo)", - "description": "Cloud Elements for bulk usage calls", - "active": true, - "vendor_version": "v2", - "key": "democloudelements" - }, - "GoogleCloudStorage": { - "image": "https://images.cloudelements.io/google-cloud-storage201807191702.png", - "path": "google_cloud_storage/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Google Cloud Storage", - "description": "Google Cloud Storage", - "active": true, - "vendor_version": "v1", - "key": "google_cloud_storage" - }, - "SapHybrisMarketing": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/hybris3/hybris3.png", - "path": "hybris3/element.json", - "hub": "erp", - "author": "Nick Bair", - "name": "HybrisMarketing", - "description": "THe hybris marketing element", - "active": true, - "vendor_version": "v2", - "key": "hybris3" - }, - "OneLogin": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-01-24%20at%2010.03.19%20AM201901241703.png", - "path": "onelogin/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "OneLogin", - "description": "OneLogin", - "active": true, - "vendor_version": "1", - "key": "onelogin" - }, - "AcquiaLiftProfileMgr": { - "image": "https://images.cloudelements.io/acquia201902201909.png", - "path": "demoacquia/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Acquia Lift (Demo)", - "description": "Acquia Lift Profile Manager Element", - "active": true, - "vendor_version": "2", - "key": "demoacquia" - }, - "Infoplus": { - "image": "https://images.cloudelements.io/Image%202018-04-03%20at%2011.49.29%20AM201804031759.png", - "path": "infoplus/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Infoplus", - "description": "This element will be partially built ", - "active": true, - "vendor_version": "latest", - "key": "infoplus" - }, - "Ipify": { - "image": "https://images.cloudelements.io/globe201802112131.png", - "path": "ipify/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "ipify", - "description": "An example of an element using ipify.org - a simple public IP address API", - "active": true, - "vendor_version": "latest", - "key": "ipify" - }, - "FacebookAds": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.57.00%20PM201902232057.png", - "path": "facebookads/element.json", - "hub": "marketing", - "author": "Nick Bair", - "name": "Facebook Ads", - "description": "Facebook Ads API.", - "active": true, - "vendor_version": "v2.8", - "key": "facebookads" - }, - "PaychexFlex": { - "image": "https://images.cloudelements.io/paychex201811131855.png", - "path": "demopaychexflex/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Paychex Flex (Demo)", - "description": "Paychex Flex Element", - "active": true, - "vendor_version": "v1", - "key": "demopaychexflex" - }, - "Sprinkler": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%202.07.08%20PM201902232108.png", - "path": "sprinklr/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "Sprinklr", - "description": "Enterprise software that helps employees across the front office come together and engage with customers through one unified platform.", - "active": true, - "vendor_version": "v1", - "key": "sprinklr" - }, - "ADPWorkForceNow": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/adpwfnSDF/adpwfnSDF.png", - "path": "adpwfnSDF/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "ADP WorkForce Now", - "description": "ADP Element for WorkForce Now", - "active": true, - "vendor_version": "v1/v2", - "key": "adpwfnSDF" - }, - "WesternUnion": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%202.17.36%20PM201902202118.png", - "path": "westernunion/element.json", - "hub": "finance", - "author": "Nick Bair", - "name": "Western Union", - "description": "Western Union is a money transfer leader.", - "active": true, - "vendor_version": "v36.0", - "key": "westernunion" - }, - "DunBradstreet": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-05-09%20at%2011.50.51%20AM201905091751.png", - "path": "db/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "D&B", - "description": "D&B", - "active": true, - "vendor_version": "V4.0", - "key": "db" - }, - "Uber": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%2012.53.35%20PM201902201953.png", - "path": "uber/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "uber", - "description": "The Uber Ride-sharing element", - "active": true, - "vendor_version": "v1", - "key": "uber" - }, - "UnderArmour": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%204.06.25%20PM201902202312.png", - "path": "underarmour/element.json", - "hub": "underarmour", - "author": "Nick Bair", - "name": "Under Armour", - "description": "The MapMyFitness REST API", - "active": true, - "vendor_version": "v7.1", - "key": "underarmour" - }, - "SendGridV3": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-04-01%20at%202.37.52%20PM201904012038.png", - "path": "sendgridv3/element.json", - "hub": "messaging", - "author": "Nick Bair", - "name": "SendGrid V3", - "description": "SendGrid V3", - "active": true, - "vendor_version": "v3", - "key": "sendgridv3" - }, - "Expensewire": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/demoexpensewire/demoexpensewire.png", - "path": "demoexpensewire/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "ExpenseWire (Demo)", - "description": "Expensewire", - "active": true, - "vendor_version": "v2.0", - "key": "demoexpensewire" - }, - "AmazonRekognition": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/awsrekognition/awsrekognition.jpg", - "path": "awsrekognition/element.json", - "hub": "ai", - "author": "bharadwajturlapati", - "name": "AWS Rekognition", - "description": "Api's to connect to aws rekognition service using aws lambda service.", - "active": true, - "vendor_version": "latest", - "key": "awsrekognition" - }, - "DiscordBot": { - "image": "https://images.cloudelements.io/discordbot201907252107.png", - "path": "discordbot/element.json", - "hub": "collaboration", - "author": "Aidan-Wood", - "name": "Discord Bot", - "description": "Discord Bot", - "active": true, - "vendor_version": "v6", - "key": "discordbot" - }, - "GooglePubSub": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.49.11%20PM201902232049.png", - "path": "googlepubsub/element.json", - "hub": "messaging", - "author": "Nick Bair", - "name": "Google Pub-Sub", - "description": "Google Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.", - "active": true, - "vendor_version": "v1", - "key": "googlepubsub" - }, - "Shiftboard": { - "image": "https://images.cloudelements.io/shiftboard201901220402.png", - "path": "shiftboard/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "Shiftboard", - "description": "Element for the Shiftboard Element", - "active": true, - "vendor_version": "RPC", - "key": "shiftboard" - }, - "DueDil": { - "image": "https://images.cloudelements.io/Screen%20Shot%202019-05-09%20at%2011.53.43%20AM201905091754.png", - "path": "duedil/element.json", - "hub": "general", - "author": "daniellelaforte", - "name": "DueDil", - "description": "DueDil API", - "active": true, - "vendor_version": "v4", - "key": "duedil" - }, - "MicrosoftTeams": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/microsoftgraph/microsoftgraph.jpg", - "path": "microsoftgraph/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Microsoft Graph - Teams", - "description": "Add a Microsoft Graph instance to connect your existing account allowing you to manage calendars and sync to a variety of microsoft endpoints. You will need your AWS account information to add an instance", - "active": true, - "vendor_version": "v1.0", - "key": "microsoftgraph" - }, - "jira": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/jira-test2/jira.jpg", - "path": "jira-test2/element.json", - "hub": "general", - "author": "vineet-joshi", - "name": "jira", - "description": "Jira rest apis", - "active": true, - "vendor_version": "1", - "key": "jira-test2" - }, - "Sonos": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/sonos/sonos.png", - "path": "sonos/element.json", - "hub": "general", - "author": "Guy Van Wert", - "name": "sonos", - "description": "connect to your speakers", - "active": true, - "vendor_version": "V1", - "key": "sonos" - }, - "Alpha Vangate": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/alphavantage/alphavantage.png", - "path": "alphavantage/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Alpha Vantage", - "description": "Realtime pricing and technical indicators for stocks, FX and digital currencies", - "active": true, - "vendor_version": "v1", - "key": "alphavantage" - }, - "Oanda": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/oanda/oanda.png", - "path": "oanda/element.json", - "hub": "general", - "author": "Nick Bair", - "name": "Oanda", - "description": "The OANDA v20 REST API provides programmatic access to OANDA’s next generation v20 trading engine. To use this API you must have a v20 trading account, which is available to all divisions except Japan.", - "active": true, - "vendor_version": "unknown", - "key": "oanda" - }, - "Spotify": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/spotify/oanda.png", - "path": "spotify/element.json", - "hub": "music", - "author": "Nick Bair", - "name": "Spotify", - "description": "Spotify is a music streaming platform. This element includes all endpoints detailed in the documentation though some functionality may be missing.", - "active": true, - "vendor_version": "unknown", - "key": "spotify" - }, - "Steam": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/steam/steam.png", - "path": "steam/element.json", - "hub": "gaming", - "author": "Aidad Wood", - "name": "steam", - "description": "Steam is a video game digital distribution platform. This element includes most endpoints detailed in the documentation for user authentication keys. Abilities include getting player stats, getting app news, getting game achievement schema, etc", - "active": true, - "vendor_version": "unknown", - "key": "steam" - }, - "Netsuite 2018 Release1 (Proxy)": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/netsuiteerp2018release1(proxy)/oanda.png", - "path": "netsuiteerp2018release1(proxy)/element.json", - "hub": "erp", - "author": "Aidan Wood", - "name": "Netsuite 2018 Release1 (Proxy)", - "description": "Netsuite 2018 ERP Element", - "active": true, - "vendor_version": "v2018", - "key": "netsuiteerp2018release1(proxy)" - }, - "SAP Fieldglass": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/sapfieldglass/fieldglass.png", - "path": "sapfieldglass/element.json", - "hub": "Human Capital", - "author": "Jamie Thorson", - "name": "SAP Fieldglass", - "description": "SAP Fieldglass API", - "active": true, - "vendor_version": "unknown", - "key": "sapfieldglass" - }, - "Trello": { - "image": "https://images.cloudelements.io/Trello-Logo.wine202010191027.png", - "path": "trello/element.json", - "hub": "general", - "author": "kiasOrg", - "name": "Trello", - "active": true, - "description": "The Trello API is extremely powerful and fun to use. Building a full application with Trello for web or mobile means getting to know the various concepts and models making up Trello.\n\nAuthentication is handled via OAuth1.0.", - "vendor_version": null, - "key": "trello", - "extended": false - }, - "QuickBase": { - "image": "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/quickbasedb/quickbase.png", - "path": "quickbasedb/element.json", - "hub": "db", - "author": "tyler-cloud-elements", - "name": "QuickBase", - "active": true, - "description": "Add a QuickBase element to connect your existing QuickBase database, allowing you to manage data for your database tables. You will need your QuickBase database information to add an instance.", - "vendor_version": null, - "key": "quickbasedb", - "extended": false - }, - "Zoom": { - "image": "https://images.cloudelements.io/zoom-icon-white202010131830.png", - "path": "zoom/element.json", - "hub": "collaboration", - "author": "kiasOrg", - "name": "Zoom", - "active": true, - "description": "The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the Zoom App Marketplace.\n\nZoom allows for two types of apps: user-managed and account-level. Endpoints in the Zoom element require an authenticated instance for one or the other. For example, if you want to request the GET /contacts endpoint, you need to have a user-managed authenticated instance, otherwise you will not be able to make the request. If you want to GET /users, you need to have an account-level authenticated instance with admin scopes, or you will not be able to make the request.", - "vendor_version": null, - "key": "zoom", - "extended": false - }, - "KnowledgeOwl": { - "image": "https://images.cloudelements.io/KOlogo202010281709.png", - "path": "knowledgeowl/element.json", - "hub": "general", - "author": "kiawnna", - "name": "Knowledge Owl", - "active": true, - "description": "KnowledgeOwl makes one thing--awesome knowledge base software. Knowledge Owl's API allows users to list, create, update, and suggest articles, as well as a handful of other operations involving files, readers, categories, and tags.", - "vendor_version": null, - "key": "knowledgeowl", - "extended": false - }, - "Epicor": { - "image": "https://images.cloudelements.io/Epicor_logo_trimmed202009171725.png", - "path": "epicor/element.json", - "hub": "erp", - "author": "IanGSalmon", - "name": "Epicor", - "active": true, - "description": "Add an Epicor Instance to connect your existing account to the ERP Hub, allowing you to manage all of your ERP activities across multiple ERP Elements. You will need your Epicor server details to add an instance.", - "vendor_version": null, - "key": "epicor", - "extended": false - }, - "Dice.com": { - "image": "https://images.cloudelements.io/Dice202007290549.png", - "path": "dice/element.json", - "hub": "humancapital", - "author": "IanGSalmon", - "name": "Dice.com", - "active": true, - "description": "Dice Talent Public API", - "vendor_version": null, - "key": "dice", - "extended": false - }, - "Moneycorp": { - "image": "https://images.cloudelements.io/moneycorp-logo202011032243.png", - "path": "moneycorp_2/element.json", - "hub": "finance", - "author": "GuyVanWert", - "name": "Moneycorp", - "active": true, - "description": "\r\n# Documentation\r\nThis documentation may be viewed using Swagger or ReDoc formatting\r\n\r\n# Introduction \r\nWelcome to the moneycorp corporate API.\r\n\r\nDesigned for developers and with flexibility in mind, our API provides you the building blocks to construct business solutions that help you with your day to day requirements, covering foreign exchange, repeat or one-off, domestic or cross-border currency payments. With it you can manage your accounts for receiving funds, exchange in up to 34 currencies with live market rates aggregated from 14 partner banks for best execution and make payments globally with our optimised payment network, all supported by our in house systems that pre-validate your recipients en mass, reducing the risk of payment failures or delays in processing. \r\n\r\nWe recommend you read through the API documentation in full to familiarise yourself with the features and workflows associated with the product. Demo accounts and sandbox access can be provisioned for you by your moneycorp representative. \r\n\r\n\r\n\r\n# Overview\r\nBelow is a brief description of each of our API features:\r\n\r\n**Login API:**\r\nBefore using the API, you must first obtain an authentication token by specifying the Login ID and API key provided to you directly. This token must be present in the Authorization HTTP header when making all other API calls. \r\n\r\n**Accounts API:**\r\nUsed to manage your accounts, all objects created in our API are done in the context of an account, these endpoints allow you to look up and locate the relevant account to use for subsequent calls. \r\n\r\n**Balances API:**\r\nUsed to view the balances of your moneycorp receiving accounts, split into each of the currencies supported by the moneycorp API. \r\n\r\n**Recipients API:**\r\nOur recipients API allows you to create, validate and retrieve your recipients for subsequent payments. We use our in house solution to ensure data is validated prior to payment submission to ensure delivery of funds and avoid any delays in processing. \r\n\r\n**Payments API:**\r\nOur payments API is designed to allow you create payments en mass to nearly every country in the world using a range of local and direct clearing methods. You can use these endpoints to search previously sent payments, check status or create new payments. \r\n\r\n**Reference API:**\r\nOur reference API is designed to provide you with all the information you should need to make full use of our other endpoints, such as recipient requirements, payment holidays and supported countries and currencies. \r\n\r\n\r\n\r\n# Getting Started\r\nAn example workflow is set out below for guidance on how the moneycorp API operates in practice.\r\n\r\nIn this example, we want to make a £100,000 GBP payment to a recipient based in the UK.\r\n\r\n**1.\tLogin to the API:**\r\nTo begin you will need to obtain an access token to allow you to reach all other API endpoints. Using your unique Login ID and API key provided you can call the login API endpoint. On success, an access token will be granted.\r\n\r\n**2.\tGet your account details:**\r\nNext you should retrieve all your accounts associated to your API user so when you move into creating payments they are done under the relevant account, most endpoints will also require an account ID. \r\n\r\n**3.\tCheck recipient field requirements:**\r\nNext you may want to setup some recipients to send payments to, you can use our Get Recipient Requirements endpoint to understand what information you must provide for a recipient in a given country/currency combination. For this example we want to know what the requirements are for a recipient in the UK and a GBP account. \r\n\r\n**4.\tCreate a recipient:**\r\nNow once you have the required information for creating a recipient you can perform this action using our create recipient endpoint, we will also validate the details provided as well to avoid any delays in processing of payments. \r\n\r\n**5.\tCreate a payment:**\r\nOnce the recipient has been created you can now create a payment for it using the recipient ID and passing it into the Create Payment endpoint, you can create many payments to single recipients. \r\n\r\n**6.\tCheck your balance:**\r\nPayments will only be released once there are sufficient funds available on your account balance, you can do this by paying directly into your moneycorp account. You can pay into your moneycorp account using your account reference found on the Get Account endpoint. Then you can use the Get Balances endpoint to check your account balance.\r\n\r\n**7.\tCheck your payment's status:**\r\nFollowing a successful payment creation, updates on the status of the payment can be returned from the Get Payment endpoint.\r\n\r\n\r\n\r\n# Idempotency\r\nmoneycorp API utilises idempotency across all create endpoints in order to prevent duplicate creation of resources.\r\n\r\nIdempotency in the moneycorp API allows a user to safely retry a particular request, without the potentially unintended consequences of performing an operation multiple times. This is required for the situation when a response message is not received for a create request (for example: creating a payment). In this situation a client would be unaware whether the original request was processed and the response was lost in transit, or if the request was never received at all. In the case where the original request was processed subsequent retries of the request should not create duplicate resources. \r\n\r\nTo perform an idempotent request you must provide an Idempotency-Key: header when sending the request. The key is a unique value that is generated by the client to identify a particular request. This key can be any format, however, we recommend using a GUID in order to reduce the chance of unintended duplicate keys. Keys expire after 15 minutes so requests are processed as usual if a key is reused outside that time.\r\n\r\nIf a request is received with a previously processed key one of three things will happen: \r\n- If the previous request is still being processed a Conflict (Http status code 409) error will be generated. \r\n- If the previous request was not successful the API will attempt to re-process the request. \r\n- If the previous request was successful a Conflict (Http status code 409) error will be generated. In addition the previous successful response will be included in the error payload.\r\n\r\n**Get** requests are by default idempotent so providing the Idempotency-Key header will have no impact and should not be sent.\r\n\r\n\r\n# Support \r\nFor any assistance through the integration, your moneycorp representative and implementation manager will be able to help guide you.\r\n\r\n\r\n**Important Notice:**\r\nThis API sandbox is a test environment that you can use to mimic the characteristics of the production environment. As a test environment, you represent and warrant not to use real data (including personal data) in the API sandbox under any circumstances.\r\n\r\n", - "vendor_version": null, - "key": "moneycorp_2", - "extended": false - }, - "ACIModelbank": { - "image": "https://images.cloudelements.io/ACI-worldwide-logo202012102156.jpg", - "path": "acimodelbank/element.json", - "hub": "finance", - "author": "GuyVanWert", - "name": "ACI Modelbank", - "active": true, - "description": "Modelbank", - "vendor_version": null, - "key": "acimodelbank", - "extended": false - }, - "Akeneo": { - "image": "https://images.cloudelements.io/leistungen-e-commerce-akeneo-logo201809191606.png", - "path": "akeneo/element.json", - "author": "GuyVanWert", - "name": "Akeneo", - "description": "Akeneo PIM element", - "key": "akeneo", - "extended": false, - "hub": "general", - "active": true, - "vendor_version": null - }, - "Palette": { - "image": "https://images.cloudelements.io/Screen Shot 2019-02-12 at 10.34.33 AM201902121735.png", - "path": "httppalette.se/element.json", - "hub": "general", - "author": "GuyVanWert", - "name": "Palette", - "active": true, - "description": "Imported http://palette.se/ SOAP Element", - "vendor_version": null, - "key": "httppalette.se", - "extended": false - }, - "XLedger": { - "image": "https://images.cloudelements.io/xledger_share_logo202011051434.png", - "path": "xledger_combined/element.json", - "hub": "general", - "author": "GuyVanWert", - "name": "XLedger", - "active": true, - "description": "Imported http://ws.xledger.net/ SOAP Element", - "vendor_version": null, - "key": "xledger_combined", - "extended": false - }, - "Tableau": { - "image": "https://images.cloudelements.io/unnamed-3202004212146.png", - "path": "tableauAuthTest/element.json", - "hub": "general", - "author": "GuyVanWert", - "name": "Tableau", - "description": "Imported Element", - "active": true, - "vendor_version": null, - "key": "tableauAuthTest", - "extended": false - }, - "MYOBAdvanced": { - "image": "elements/custom-element-default-logo.png", - "path": "myob/element.json", - "hub": "finance", - "author": "IanGSalmon", - "name": "MYOB Advanced", - "active": true, - "description": "MYOB helps customers with solutions for tax, accounting and other financial business services software .This element has Procure to Pay usecase related objects exposed. API v. 17.200.001 was used for development and testing of the MYOB Advanced Element", - "vendor_version": null, - "key": "myob", - "extended": false - }, - "ServiceTitan": { - "image": "https://images.cloudelements.io/da2f5247.servicetitan-logo-400202009031916.png", - "path": "servicetitan/element.json", - "hub": "general", - "author": "MaxwellWarnerCE", - "name": "ServiceTitan", - "active": true, - "description": "This element was built for a POC Demo for the Service Titan team ", - "vendor_version": null, - "key": "servicetitan", - "extended": false - }, - "LinkedIn": { - "image": "elements/provider_linkedin.png", - "path": "linkedin/element.json", - "hub": "social", - "author": "gapking90", - "name": "LinkedIn", - "active": true, - "description": "Add a LinkedIn Instance to connect your existing LinkedIn account to the Social Hub, allowing you to manage companies, comments, followers and likes across multiple Social Elements. You will need your LinkedIn account information to add an instance.", - "vendor_version": null, - "key": "linkedin", - "extended": false - }, - "DayforceHCM": { - "image": "elements/custom-element-default-logo.png", - "path": "dayforcehcm/element.json", - "hub": "humancapital", - "author": "gapking90", - "name": "Dayforce HCM", - "active": true, - "description": "Dayforce HCM", - "vendor_version": null, - "key": "dayforcehcm", - "extended": false - }, - "PipelineDeals": { - "image": "https://financesonline.com/uploads/2015/10/pipe.png", - "path": "pipelinedeals/element.json", - "hub": "crm", - "author": "gapking90", - "name": "PipelineDeals", - "active": true, - "description": "CRM service for tracking deals and contacts", - "vendor_version": null, - "key": "pipelinedeals", - "extended": false - }, - "ePages": { - "image": "elements/provider_epages.png", - "path": "epages/element.json", - "hub": "ecommerce", - "author": "gapking90", - "name": "ePages", - "active": true, - "description": "Add an ePages Instance to connect your existing ePages account to the eCommerce Hub, allowing you to manage customers, orders and products across multiple eCommerce Elements. You will need your ePages account information to add an instance.", - "vendor_version": null, - "key": "epages", - "extended": false - }, - "POSable": { - "image": "elements/provider_posable.png", - "path": "posable/element.json", - "hub": "pointofsale", - "author": "gapking90", - "name": "POSable", - "active": true, - "description": "The POSable element", - "vendor_version": null, - "key": "posable", - "extended": false - }, - "SageFinancials": { - "image": "https://images.cloudelements.io/sagefinancials201811061947.png", - "path": "sagelive/element.json", - "hub": "sageaccounting", - "author": "gapking90", - "name": "Sage Financials", - "active": true, - "description": "Add a Sage Financials Instance to connect your existing Sage account to the Sage Accounting Hub, allowing you to manage customers, journals, ledger accounts, etc. across multiple Sage Elements. You will need your Sage Financials account information to add an instance.", - "vendor_version": null, - "key": "sagelive", - "extended": false - } + "Mandrill" : { + "image" : "https://images.cloudelements.io/mandrill201810221710.png", + "path" : "mandrill_3/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Mandrill", + "description" : "mailchimp's transactional email service, mandrill", + "active" : true, + "vendor_version" : "1", + "key" : "mandrill_3" + }, + "CambridgeFx" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/democambridgefx/democambridgefx.png", + "path" : "democambridgefx/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "CambridgeFX (Demo)", + "description" : "The CambridgeFX element", + "active" : true, + "vendor_version" : "252497", + "key" : "democambridgefx" + }, + "Mavenlink" : { + "image" : "https://images.cloudelements.io/LogoName201712152026.png", + "path" : "mavenlink/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Mavenlink", + "description" : "Mavenlink Element", + "active" : true, + "vendor_version" : "v1", + "key" : "mavenlink" + }, + "GitHub" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/github_max_test/github_max_test.png", + "path" : "github_max_test/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "GitHub", + "description" : "Build software better, together. Powerful collaboration, code review, and code management for open source and private projects.", + "active" : true, + "vendor_version" : "latest", + "key" : "github_max_test" + }, + "Asana" : { + "image" : "https://images.cloudelements.io/asana201711150235.png", + "path" : "asana/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Asana", + "description" : "Asana helps teams track their work and manage projects.", + "active" : true, + "vendor_version" : "1", + "key" : "asana" + }, + "Okta" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202018-11-07%20at%2010.53.38%20AM201811071753.png", + "path" : "demookta/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "OKTA (Demo)", + "description" : "Provide secure identity management and single sign-on to any application, whether in the cloud, on-premises or on a mobile device.", + "active" : true, + "vendor_version" : "v1", + "key" : "demookta" + }, + "ICIMs" : { + "image" : "https://images.cloudelements.io/icims-logo-main201901252048.png", + "path" : "icims/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "ICIMS", + "description" : "this is a demo element for ICIMS API", + "active" : true, + "vendor_version" : "latest", + "key" : "icims" + }, + "Pendo" : { + "image" : "https://images.cloudelements.io/pendo-share-logo201804082331.png", + "path" : "pendoapi/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Pendo", + "description" : "Pendo API", + "active" : true, + "vendor_version" : "v1", + "key" : "pendoapi" + }, + "Repsly" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-03-09%20at%208.50.48%20AM201903091550.png", + "path" : "repsly/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Repsly", + "description" : "Repsly Mobile CRM brings organizations closer to their field reps and helps them execute at retail. Improve brand visibility, build accountability, and more.", + "active" : true, + "vendor_version" : "v3", + "key" : "repsly" + }, + "Returnly" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/returnlyapi/returnlyapi.png", + "path" : "returnlyapi/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Returnly API", + "description" : "# Introduction\nThe Returnly API enables developers to seamlessly receive and pass up-to-date returns and refunds data into the platforms you use to run your business. Optimize your returns and merchandise strategies, maximize your technology investments and streamline your business with our [Returns](#tag/Returns), [Requests](#tag/Requests) & [Refunds](#tag/Refunds) APIs\n\n# Common Use Cases\n * Update your OMS with real-time returns data\n * Get up to date returns status in real-time\n * Leverage granular return data to optimize your current merchandise initiatives\n * Track shipping and delivery of product returns\n * Feed your CRM systems with real-time customer returns data\n * Manage inventory predictably by monitoring returns and understanding which items have resell potential\n * Manage inventory predictably by monitoring returns and understanding which items have resell potential\n * Automate order refunds by connecting your warehouse scan system to the Returnly Refund API\n\n# Getting Started\n## Customers\nYou will need an Enterprise Returnly license in order to access our API. Please contact your Returnly representative to gain access.\n", + "active" : true, + "vendor_version" : "v1.0.0", + "key" : "returnlyapi" + }, + "VersaPay" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/versapay/versapay.png", + "path" : "versapay/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "VersaPay", + "description" : "versapay", + "active" : true, + "vendor_version" : "latest", + "key" : "versapay" + }, + "FullContact" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/fullcontact/fullcontact.png", + "path" : "fullcontact/element.json", + "hub" : "crm", + "author" : "Nick Bair", + "name" : "Full Contact", + "description" : "Keep all your contacts in one place and automatically up-to-date with the FullContact Address Book.", + "active" : true, + "vendor_version" : "v2", + "key" : "fullcontact" + }, + "SurveyMonkey" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-27%20at%2010.44.00%20AM201902271746.png", + "path" : "surveymonkey/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Survey Monkey", + "description" : "Create Surveys That Get Responses.", + "active" : true, + "vendor_version" : "v3", + "key" : "surveymonkey" + }, + "Calculator" : { + "image" : "http://developers.cloud-elements.com/assets/img/default-ce-logo-element-builder.png", + "path" : "democalculator/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Calculator Soap", + "description" : "Imported simple calculator SOAP Element", + "active" : true, + "vendor_version" : "latest", + "key" : "democalculator" + }, + "Pinterest" : { + "image" : "https://images.cloudelements.io/App-Pinterest-icon-with-out-background201808282145.png", + "path" : "pinterest/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Pinterest", + "description" : "Pinterest Element", + "active" : true, + "vendor_version" : "v1", + "key" : "pinterest" + }, + "Taulia" : { + "image" : "https://images.cloudelements.io/taulia-squarelogo-1517525911560201901231715.png", + "path" : "taulia/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Taulia", + "description" : "An HMAC signature element built for Taulia POC", + "active" : true, + "vendor_version" : "v1", + "key" : "taulia" + }, + "TalentReef" : { + "image" : "https://images.cloudelements.io/TR201901252050.png", + "path" : "talentreef/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "TalentReef", + "description" : "talentreef apis", + "active" : true, + "vendor_version" : "v1", + "key" : "talentreef" + }, + "AccurateBackground" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202018-11-07%20at%2010.54.19%20AM201811071755.png", + "path" : "demoaccuratebackground/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Accurate Background (Demo)", + "description" : "Accurate Background API", + "active" : true, + "vendor_version" : "v3", + "key" : "demoaccuratebackground" + }, + "Samanage" : { + "image" : "https://images.cloudelements.io/logo_2712_hd-v3201811022006.png", + "path" : "demosamanage/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Samanage (Demo)", + "description" : "Samanage help desk Element", + "active" : true, + "vendor_version" : "v2.1", + "key" : "demosamanage" + }, + "VCloudAir" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/vcloudair/vcloudair.png", + "path" : "vcloudair/element.json", + "hub" : "infrastructure", + "author" : "Nick Bair", + "name" : "vCloud Air", + "description" : "vCloud Air is the hybrid cloud built for modern IT.", + "active" : true, + "vendor_version" : "5.7", + "key" : "vcloudair" + }, + "Lyft" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.40.30%20PM201902232040.png", + "path" : "lyft/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Lyft", + "description" : "Lyft", + "active" : true, + "vendor_version" : "v1", + "key" : "lyft" + }, + "Billy" : { + "image" : "https://images.cloudelements.io/35356_96135128d7a4354e6d895f49f271ed30b9ee0c97_billy-app_m201901211815.png", + "path" : "billyaccounting/element.json", + "hub" : "finance", + "author" : "Ricky", + "name" : "Billy", + "description" : "Accounting Software", + "active" : true, + "vendor_version" : "v2", + "key" : "billyaccounting" + }, + "CloudElements" : { + "image" : "https://raw.githubusercontent.com/democloudelementsOpenLabs/elements/master/democloudelements/democloudelements.png", + "path" : "democloudelements/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Cloud Elements (Demo)", + "description" : "Cloud Elements for bulk usage calls", + "active" : true, + "vendor_version" : "v2", + "key" : "democloudelements" + }, + "GoogleCloudStorage" : { + "image" : "https://images.cloudelements.io/google-cloud-storage201807191702.png", + "path" : "google_cloud_storage/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Google Cloud Storage", + "description" : "Google Cloud Storage", + "active" : true, + "vendor_version" : "v1", + "key" : "google_cloud_storage" + }, + "SapHybrisMarketing" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/hybris3/hybris3.png", + "path" : "hybris3/element.json", + "hub" : "erp", + "author" : "Nick Bair", + "name" : "HybrisMarketing", + "description" : "THe hybris marketing element", + "active" : true, + "vendor_version" : "v2", + "key" : "hybris3" + }, + "OneLogin" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-01-24%20at%2010.03.19%20AM201901241703.png", + "path" : "onelogin/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "OneLogin", + "description" : "OneLogin", + "active" : true, + "vendor_version" : "1", + "key" : "onelogin" + }, + "AcquiaLiftProfileMgr" : { + "image" : "https://images.cloudelements.io/acquia201902201909.png", + "path" : "demoacquia/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Acquia Lift (Demo)", + "description" : "Acquia Lift Profile Manager Element", + "active" : true, + "vendor_version" : "2", + "key" : "demoacquia" + }, + "Infoplus" : { + "image" : "https://images.cloudelements.io/Image%202018-04-03%20at%2011.49.29%20AM201804031759.png", + "path" : "infoplus/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Infoplus", + "description" : "This element will be partially built ", + "active" : true, + "vendor_version" : "latest", + "key" : "infoplus" + }, + "Ipify" : { + "image" : "https://images.cloudelements.io/globe201802112131.png", + "path" : "ipify/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "ipify", + "description" : "An example of an element using ipify.org - a simple public IP address API", + "active" : true, + "vendor_version" : "latest", + "key" : "ipify" + }, + "FacebookAds" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.57.00%20PM201902232057.png", + "path" : "facebookads/element.json", + "hub" : "marketing", + "author" : "Nick Bair", + "name" : "Facebook Ads", + "description" : "Facebook Ads API.", + "active" : true, + "vendor_version" : "v2.8", + "key" : "facebookads" + }, + "PaychexFlex" : { + "image" : "https://images.cloudelements.io/paychex201811131855.png", + "path" : "demopaychexflex/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Paychex Flex (Demo)", + "description" : "Paychex Flex Element", + "active" : true, + "vendor_version" : "v1", + "key" : "demopaychexflex" + }, + "Sprinkler" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%202.07.08%20PM201902232108.png", + "path" : "sprinklr/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "Sprinklr", + "description" : "Enterprise software that helps employees across the front office come together and engage with customers through one unified platform.", + "active" : true, + "vendor_version" : "v1", + "key" : "sprinklr" + }, + "ADPWorkForceNow" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/adpwfnSDF/adpwfnSDF.png", + "path" : "adpwfnSDF/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "ADP WorkForce Now", + "description" : "ADP Element for WorkForce Now", + "active" : true, + "vendor_version" : "v1/v2", + "key" : "adpwfnSDF" + }, + "WesternUnion" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%202.17.36%20PM201902202118.png", + "path" : "westernunion/element.json", + "hub" : "finance", + "author" : "Nick Bair", + "name" : "Western Union", + "description" : "Western Union is a money transfer leader.", + "active" : true, + "vendor_version" : "v36.0", + "key" : "westernunion" + }, + "DunBradstreet" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-05-09%20at%2011.50.51%20AM201905091751.png", + "path" : "db/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "D&B", + "description" : "D&B", + "active" : true, + "vendor_version" : "V4.0", + "key" : "db" + }, + "Uber" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%2012.53.35%20PM201902201953.png", + "path" : "uber/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "uber", + "description" : "The Uber Ride-sharing element", + "active" : true, + "vendor_version" : "v1", + "key" : "uber" + }, + "UnderArmour" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-20%20at%204.06.25%20PM201902202312.png", + "path" : "underarmour/element.json", + "hub" : "underarmour", + "author" : "Nick Bair", + "name" : "Under Armour", + "description" : "The MapMyFitness REST API", + "active" : true, + "vendor_version" : "v7.1", + "key" : "underarmour" + }, + "SendGridV3" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-04-01%20at%202.37.52%20PM201904012038.png", + "path" : "sendgridv3/element.json", + "hub" : "messaging", + "author" : "Nick Bair", + "name" : "SendGrid V3", + "description" : "SendGrid V3", + "active" : true, + "vendor_version" : "v3", + "key" : "sendgridv3" + }, + "Expensewire" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/demoexpensewire/demoexpensewire.png", + "path" : "demoexpensewire/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "ExpenseWire (Demo)", + "description" : "Expensewire", + "active" : true, + "vendor_version" : "v2.0", + "key" : "demoexpensewire" + }, + "AmazonRekognition" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/awsrekognition/awsrekognition.jpg", + "path" : "awsrekognition/element.json", + "hub" : "ai", + "author" : "bharadwajturlapati", + "name" : "AWS Rekognition", + "description" : "Api's to connect to aws rekognition service using aws lambda service.", + "active" : true, + "vendor_version" : "latest", + "key" : "awsrekognition" + }, + "DiscordBot" : { + "image" : "https://images.cloudelements.io/discordbot201907252107.png", + "path" : "discordbot/element.json", + "hub" : "collaboration", + "author" : "Aidan-Wood", + "name" : "Discord Bot", + "description" : "Discord Bot", + "active" : true, + "vendor_version" : "v6", + "key" : "discordbot" + }, + "GooglePubSub" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-02-23%20at%201.49.11%20PM201902232049.png", + "path" : "googlepubsub/element.json", + "hub" : "messaging", + "author" : "Nick Bair", + "name" : "Google Pub-Sub", + "description" : "Google Cloud Pub/Sub is a fully-managed real-time messaging service that allows you to send and receive messages between independent applications.", + "active" : true, + "vendor_version" : "v1", + "key" : "googlepubsub" + }, + "Shiftboard" : { + "image" : "https://images.cloudelements.io/shiftboard201901220402.png", + "path" : "shiftboard/element.json", + "hub" : "general", + "author" : "MaxwellWarnerCE", + "name" : "Shiftboard", + "description" : "Element for the Shiftboard Element", + "active" : true, + "vendor_version" : "RPC", + "key" : "shiftboard" + }, + "DueDil" : { + "image" : "https://images.cloudelements.io/Screen%20Shot%202019-05-09%20at%2011.53.43%20AM201905091754.png", + "path" : "duedil/element.json", + "hub" : "general", + "author" : "daniellelaforte", + "name" : "DueDil", + "description" : "DueDil API", + "active" : true, + "vendor_version" : "v4", + "key" : "duedil" + }, + "MicrosoftTeams" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/microsoftgraph/microsoftgraph.jpg", + "path" : "microsoftgraph/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Microsoft Graph - Teams", + "description" : "Add a Microsoft Graph instance to connect your existing account allowing you to manage calendars and sync to a variety of microsoft endpoints. You will need your AWS account information to add an instance", + "active" : true, + "vendor_version" : "v1.0", + "key" : "microsoftgraph" + }, + "jira" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/jira-test2/jira.jpg", + "path" : "jira-test2/element.json", + "hub" : "general", + "author" : "vineet-joshi", + "name" : "jira", + "description" : "Jira rest apis", + "active" : true, + "vendor_version" : "1", + "key" : "jira-test2" + }, + "Sonos" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/sonos/sonos.png", + "path" : "sonos/element.json", + "hub" : "general", + "author" : "Guy Van Wert", + "name" : "sonos", + "description" : "connect to your speakers", + "active" : true, + "vendor_version" : "V1", + "key" : "sonos" + }, + "Alpha Vangate" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/alphavantage/alphavantage.png", + "path" : "alphavantage/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Alpha Vantage", + "description" : "Realtime pricing and technical indicators for stocks, FX and digital currencies", + "active" : true, + "vendor_version" : "v1", + "key" : "alphavantage" + }, + "Oanda" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/oanda/oanda.png", + "path" : "oanda/element.json", + "hub" : "general", + "author" : "Nick Bair", + "name" : "Oanda", + "description" : "The OANDA v20 REST API provides programmatic access to OANDA’s next generation v20 trading engine. To use this API you must have a v20 trading account, which is available to all divisions except Japan.", + "active" : true, + "vendor_version" : "unknown", + "key" : "oanda" + }, + "Spotify" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/spotify/oanda.png", + "path" : "spotify/element.json", + "hub" : "music", + "author" : "Nick Bair", + "name" : "Spotify", + "description" : "Spotify is a music streaming platform. This element includes all endpoints detailed in the documentation though some functionality may be missing.", + "active" : true, + "vendor_version" : "unknown", + "key" : "spotify" + }, + "Steam" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/steam/steam.png", + "path" : "steam/element.json", + "hub" : "gaming", + "author" : "Aidad Wood", + "name" : "steam", + "description" : "Steam is a video game digital distribution platform. This element includes most endpoints detailed in the documentation for user authentication keys. Abilities include getting player stats, getting app news, getting game achievement schema, etc", + "active" : true, + "vendor_version" : "unknown", + "key" : "steam" + }, + "Netsuite 2018 Release1 (Proxy)" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/netsuiteerp2018release1(proxy)/oanda.png", + "path" : "netsuiteerp2018release1(proxy)/element.json", + "hub" : "erp", + "author" : "Aidan Wood", + "name" : "Netsuite 2018 Release1 (Proxy)", + "description" : "Netsuite 2018 ERP Element", + "active" : true, + "vendor_version" : "v2018", + "key" : "netsuiteerp2018release1(proxy)" + }, + "SAP Fieldglass" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/sapfieldglass/fieldglass.png", + "path" : "sapfieldglass/element.json", + "hub" : "Human Capital", + "author" : "Jamie Thorson", + "name" : "SAP Fieldglass", + "description" : "SAP Fieldglass API", + "active" : true, + "vendor_version" : "unknown", + "key" : "sapfieldglass" + }, + "Trello" : { + "image" : "https://images.cloudelements.io/Trello-Logo.wine202010191027.png", + "path" : "trello/element.json", + "hub" : "general", + "author" : "kiasOrg", + "name" : "Trello", + "active" : true, + "description" : "The Trello API is extremely powerful and fun to use. Building a full application with Trello for web or mobile means getting to know the various concepts and models making up Trello.\n\nAuthentication is handled via OAuth1.0.", + "vendor_version" : null, + "key" : "trello", + "extended" : false + }, + "QuickBase" : { + "image" : "https://raw.githubusercontent.com/CloudElementsOpenLabs/elements/master/quickbasedb/quickbase.png", + "path" : "quickbasedb/element.json", + "hub" : "db", + "author" : "tyler-cloud-elements", + "name" : "QuickBase", + "active" : true, + "description" : "Add a QuickBase element to connect your existing QuickBase database, allowing you to manage data for your database tables. You will need your QuickBase database information to add an instance.", + "vendor_version" : null, + "key" : "quickbasedb", + "extended" : false + }, + "Zoom" : { + "image" : "https://images.cloudelements.io/zoom-icon-white202010131830.png", + "path" : "zoom/element.json", + "hub" : "collaboration", + "author" : "kiasOrg", + "name" : "Zoom", + "active" : true, + "description" : "The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the Zoom App Marketplace.\n\nZoom allows for two types of apps: user-managed and account-level. Endpoints in the Zoom element require an authenticated instance for one or the other. For example, if you want to request the GET /contacts endpoint, you need to have a user-managed authenticated instance, otherwise you will not be able to make the request. If you want to GET /users, you need to have an account-level authenticated instance with admin scopes, or you will not be able to make the request.", + "vendor_version" : null, + "key" : "zoom", + "extended" : false + }, + "KnowledgeOwl" : { + "image" : "https://images.cloudelements.io/KOlogo202010281709.png", + "path" : "knowledgeowl/element.json", + "hub" : "general", + "author" : "kiawnna", + "name" : "Knowledge Owl", + "active" : true, + "description" : "KnowledgeOwl makes one thing--awesome knowledge base software. Knowledge Owl's API allows users to list, create, update, and suggest articles, as well as a handful of other operations involving files, readers, categories, and tags.", + "vendor_version" : null, + "key" : "knowledgeowl", + "extended" : false + }, + "Mixpanel" : { + "image" : "https://uxcam.com/images/mixpanel-logo.png", + "path" : "mixpanel-clone/element.json", + "hub" : "general", + "author" : "gapking90", + "name" : "Mixpanel", + "active" : true, + "description" : "Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users", + "vendor_version" : null, + "key" : "mixpanel-clone", + "extended" : false + } } \ No newline at end of file diff --git a/mixpanel-clone/README.md b/mixpanel-clone/README.md new file mode 100644 index 0000000..866b3ea --- /dev/null +++ b/mixpanel-clone/README.md @@ -0,0 +1,3 @@ +--------------------------- +Author Name:gapking90 +null \ No newline at end of file diff --git a/mixpanel-clone/element.json b/mixpanel-clone/element.json new file mode 100644 index 0000000..fff058e --- /dev/null +++ b/mixpanel-clone/element.json @@ -0,0 +1 @@ +{"elementMetadata":{"image":"https://uxcam.com/images/mixpanel-logo.png","usage":{"instanceCount":0,"customerCount":1,"traffic":1},"displayOrder":100,"active":true,"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","eventTypes":["unknown"],"hasSandboxWarnings":false,"paginationMetadata":{},"tags":[],"authenticationTypes":["basic"],"hub":"general","discovery":{"nativeObjectMetadataDiscovery":false,"vendorSupportCustomFieldsDiscovery":false,"supportCustomFieldsDiscovery":false,"nativeObjectDiscovery":false,"objectDiscoverySupport":false,"crudsSupported":false},"captured":false,"name":"Mixpanel","api":{"vendorSupportWebhooks":false,"type":"rest"},"extendable":false,"id":52738,"bulk":{"download":true,"upload":false,"ceSupportNativeBulkUpload":false,"vendorSupportNativeBulkDownload":false,"ceSupportNativeBulkDownload":false,"vendorSupportNativeBulkUpload":false},"beta":false,"key":"mixpanel-clone"},"private":true,"configuration":[{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Mixpanel API Secret","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":true,"hideFromConsole":false,"name":"API Secret","id":565814,"groupControl":false,"key":"username"},{"internal":false,"companyConfig":false,"defaultValue":"cursor","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Type","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Type","id":565813,"groupControl":false,"key":"pagination.type"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":1,"active":true,"description":"Enables use of global fields query parameter to filter response to only specified fields. This will override any existing vendor functionality on the connector","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Allow Select Fields parameter","id":565812,"groupControl":false,"key":"allow.select.fields"},{"internal":false,"companyConfig":false,"defaultValue":"yyyy-MM-dd","displayOrder":1,"active":true,"description":"Bulk query Date Mask","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Date Mask","id":565811,"groupControl":false,"key":"bulk.query.date_mask"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query Operator","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Operator","id":565810,"groupControl":false,"key":"bulk.query.operator"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query FieldName","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query FieldName","id":565809,"groupControl":false,"key":"bulk.query.field_name"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Query Created Field Name","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Created Field Name","id":565808,"groupControl":false,"key":"bulk.attribute.created_time"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Add Metadata","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Add Metadata","id":565807,"groupControl":false,"key":"bulk.add_metadata"},{"internal":false,"companyConfig":false,"defaultValue":"JSON","displayOrder":1,"active":true,"description":"Bulk Download Format","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Download Format","id":565806,"groupControl":false,"key":"bulk.query.download_format"},{"internal":false,"companyConfig":false,"defaultValue":"1000","displayOrder":1,"active":true,"description":"Mixpanel Old Max Page Size (or limit)","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Max Page Size (or limit)","id":565805,"groupControl":false,"key":"pagination.max"},{"internal":false,"companyConfig":false,"defaultValue":"1","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Start Index","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Start Index","id":565816,"groupControl":false,"key":"pagination.page.startindex"},{"internal":false,"companyConfig":false,"defaultValue":"https://mixpanel.com/api/2.0","displayOrder":1,"active":true,"description":"Mixpanel Old Base URL","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Base URL","id":565815,"groupControl":false,"key":"base.url"},{"internal":false,"companyConfig":false,"displayOrder":3,"active":true,"description":"Password, this is blank and not required for provisioning","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Password","id":565817,"groupControl":false,"key":"password"},{"internal":false,"companyConfig":false,"displayOrder":4,"active":true,"description":"Token to be used during events tracking","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Token","id":565818,"groupControl":false,"key":"token"},{"internal":false,"companyConfig":false,"displayOrder":11,"active":true,"description":"Mixpanel Event Notification Signature Key","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Event Notification Signature Key","id":565827,"groupControl":false,"key":"event.notification.signature.key"},{"internal":false,"companyConfig":false,"displayOrder":12,"active":true,"description":"Event Notification Callback Headers","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Callback Headers","id":565819,"groupControl":false,"key":"event.notification.callback.headers"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":51,"active":true,"description":"Used to enable/disable filtering of null values from the responses","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Filter null values from the response","id":565820,"groupControl":false,"key":"filter.response.nulls"},{"internal":false,"companyConfig":false,"displayOrder":98,"active":true,"description":"Generic map used to specify default fields for bulk download and GET /all requests. Each key should be the canonical objectName and values may be specified as a comma-delimited string or a list of strings","isPrivate":false,"type":"TEXTAREA","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Default select fields","id":565821,"groupControl":false,"key":"default.select.fields.map"},{"internal":false,"companyConfig":false,"displayOrder":100,"active":true,"description":"Instance Variables","isPrivate":false,"type":"CODE_EDITOR","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Instance Variables","id":565822,"groupControl":false,"key":"instance.variables"},{"internal":true,"companyConfig":false,"displayOrder":100,"active":true,"description":"Mixpanel Old Time of Getting Token or Performing Authentication","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Time of Getting Token or Performing Authentication","id":565823,"groupControl":false,"key":"authentication.time"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":100,"active":true,"description":"Enables synchronous bulk callback notification","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Synchronous Bulk Notification","id":565824,"groupControl":false,"key":"synchronous.bulk.notification"},{"internal":false,"companyConfig":false,"displayOrder":110,"active":true,"description":"Event Notification basic authentication username","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication UserName","id":565825,"groupControl":false,"key":"event.notification.basic.username"},{"internal":false,"companyConfig":false,"displayOrder":112,"active":true,"description":"Event Notification basic authentication password","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication Password","id":565826,"groupControl":false,"key":"event.notification.basic.password"}],"objects":[{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89542,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities_top","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89543,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"users","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89544,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false}],"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","cloneable":true,"extended":false,"bulkDownloadEnabled":true,"useModelsForMetadata":true,"paginatorVersion":"V2","trialAccount":false,"logo":"mixpanel","id":52738,"hooks":[],"beta":false,"key":"mixpanel-clone","authentication":{"type":"basic"},"bulkUploadEnabled":false,"image":"https://uxcam.com/images/mixpanel-logo.png","active":true,"resources":[{"method":"POST","kind":"eb","description":"Create a(n) activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/track/","path":"/hubs/general/activities","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createActivity","transform":false,"name":"activities","requestSwagger":{"createActivity":{"type":"object","properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"]},"properties":{"type":"object","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"}}}},"swagger":{"activities":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574422,"hooks":[{"resourceId":574422,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102818,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574422,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102817,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\nif(vendorBody.properties === null || vendorBody.properties === undefined) {\n\tvendorBody.properties = {};\n}\n\nif(vendorBody.properties.token === null || vendorBody.properties.token === undefined) {\n vendorBody.properties.token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574422,"dataType":"createActivity","description":"The activities object","vendorDataType":"activities","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"activities","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"activities","id":1340644}]},{"method":"GET","kind":"eb","description":"Search for activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"/events/top/","path":"/hubs/general/activities/top","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"activitiesTopList","swagger":{"activitiesTopListObject":{"type":"object","properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}}}}},"id":574423,"hooks":[],"parameters":[{"vendorType":"query","resourceId":574423,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340646},{"vendorType":"query","resourceId":574423,"dataType":"string","description":"The number of resources to return in a given page","vendorDataType":"number","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"limit","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"limit","id":1340645}],"rootKey":"|events"},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"provisionAuthValidation","vendorPath":"https://data.mixpanel.com/api/2.0/export/","path":"/hubs/general/authvalidation","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"authvalidation","swagger":{"authvalidation":{"id":"authvalidation","properties":{"event":{"type":"string"},"properties":{"type":"properties"}}},"properties":{"id":"properties","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"},"time":{"format":"int32","type":"integer"}}}}},"id":574424,"hooks":[{"resourceId":574424,"isLegacy":false,"contextParams":"request_vendor_parameters","id":102819,"mimeType":"application/javascript","body":"var date = new Date();\n\nvar dd = date.getDate();\nvar mm = date.getMonth();\nvar yyyy = date.getFullYear();\n\nvar todate = yyyy+'-'+mm+'-'+dd;\n\nvar dd = date.getDate() - 1\n\nvar fromdate = yyyy+'-'+mm+'-'+dd;\n\ndone({\n\trequest_vendor_parameters : {\n\t\t'to_date' : todate,\n\t\t'from_date': fromdate\n\t}\n})\n\n","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574424,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340647}]},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"https://mixpanel.com/api/2.0/engage/","nextPageKey":"body.session_id","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"usersList","swagger":{"$properties":{"type":"object","properties":{"$browser_version":{"format":"int32","type":"integer"},"$timezone":{"type":"string"},"gender":{"type":"string"},"$city":{"type":"string"},"$email":{"type":"string"},"$os":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$browser":{"type":"string"},"$country_code":{"type":"string"},"Name":{"type":"string"},"$deliveries":{"type":"array","items":{"format":"int64","type":"integer"}},"$region":{"type":"string"},"$campaigns":{"type":"array","items":{"format":"int32","type":"integer"}},"$last_seen":{"type":"string"},"credits":{"format":"int32","type":"integer"},"$initial_referrer":{"type":"string"},"$created":{"type":"string"}}},"usersListObject":{"type":"object","properties":{"$properties":{"$ref":"#/definitions/$properties"},"$distinct_id":{"type":"string"}}}}},"id":574425,"hooks":[{"resourceId":574425,"isLegacy":false,"contextParams":"request_parameters,request_expression,request_vendor_parameters","id":102820,"mimeType":"application/javascript","body":"var params = {};\n\nif(request_vendor_parameters !== null && (request_vendor_parameters.session_id === null || request_vendor_parameters.session_id === undefined)) {\n\tparams.page = null;\n} else if(request_vendor_parameters !== null && request_vendor_parameters.session_id !== null && request_parameters.page !== null && request_parameters.page !== undefined) {\n\tparams.page = request_parameters.page;\n}\n\nif(request_expression !== null && request_expression !== undefined && request_expression.length > 0) {\n\t//construct the where\n\t\n\tvar wherequery = \"(\";\n\tvar nextCall = false;\n\tfor (var index in request_expression) {\n\t\tvar exp = request_expression[index];\n\t\t//If its query ignore others and just use query value for the where\n\t\tif(exp.attribute === 'query') {\n\t\t\twherequery = exp.value;\n\t\t\tnextCall = false;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif(nextCall) {\n\t\t\twherequery += ' and ';\n\t\t}\n\t\t\n\t\tnextCall = true;\n\t\twherequery += 'properties[';\n\t\tif(exp.attribute.indexOf('\"') === 0) {\n\t\t\twherequery += exp.attribute;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.attribute;\n\t\t\twherequery += '\"';\n\t\t}\t\t\n\t\twherequery += '] ';\n\t\t\n\t\tvar oper = exp.operator;\n\t\tif(oper === '=') {\n\t\t\toper = '==';\n\t\t}\n\t\twherequery += oper;\n\t\twherequery += ' ';\n\t\tif(exp.value.indexOf('\"') === 0) {\n\t\t\twherequery += exp.value;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.value;\n\t\t\twherequery += '\"';\n\t\t}\n\t}\n\t\n\tif(nextCall) {\n\t\twherequery += ')';\t\n\t}\n\t\n\tparams.where = wherequery;\n}\n\ndone({\n\trequest_vendor_parameters: params\n})","type":"preRequest"}],"parameters":[{"vendorType":"query","resourceId":574425,"dataType":"string","description":"The next page token to get the next set of results","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"session_id","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"nextPage","id":1340649},{"vendorType":"no-op","resourceId":574425,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340648}],"rootKey":"|results"},{"method":"POST","kind":"eb","description":"Create a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createUsers","transform":false,"name":"users","requestSwagger":{"createUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574426,"hooks":[{"resourceId":574426,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102822,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574426,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102821,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574426,"dataType":"createUsers","description":"The users object, if the $distinct_id is existing user gets updated","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340650}]},{"method":"DELETE","kind":"eb","description":"Delete a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"users","swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574427,"hooks":[{"resourceId":574427,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102824,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});","type":"postRequest"},{"resourceId":574427,"isLegacy":false,"contextParams":"request_path,request_vendor_parameters,configuration","id":102823,"mimeType":"application/javascript","body":"var vendorBody = {\n\t$token: configuration['token'],\n\t\"$delete\": \"\"\n};\n\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574427,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340651}]},{"method":"PATCH","kind":"eb","description":"Update a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"updateUsers","transform":false,"name":"users","requestSwagger":{"updateUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574428,"hooks":[{"resourceId":574428,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102826,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574428,"isLegacy":false,"contextParams":"request_body,request_path,request_vendor_parameters,configuration","id":102825,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params,\n \n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574428,"dataType":"updateUsers","description":"The users object","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340653},{"vendorType":"no-op","resourceId":574428,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340652}]}],"protocolType":"http","transformationsEnabled":true,"childTransformationsEnabled":true,"deleted":false,"hub":"general","typeOauth":false,"name":"Mixpanel","extendable":false,"parameters":[{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46692,"source":"request","type":"value","vendorName":"Accept","required":false},{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46691,"source":"request","type":"value","vendorName":"Content-Type","required":false}]} \ No newline at end of file diff --git a/mixpanel-clone/metadata.json b/mixpanel-clone/metadata.json new file mode 100644 index 0000000..fb4aea4 --- /dev/null +++ b/mixpanel-clone/metadata.json @@ -0,0 +1 @@ +{"key":"mixpanel-clone","authentication":"BASIC"} \ No newline at end of file diff --git a/mixpanel-clone/swagger.json b/mixpanel-clone/swagger.json new file mode 100644 index 0000000..f7353e8 --- /dev/null +++ b/mixpanel-clone/swagger.json @@ -0,0 +1 @@ +{"basePath":"/elements/api-v2","paths":{"/activities":{"post":{"summary":"Create a(n) activities","operationId":"createActivity","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/activities"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createActivity"},"in":"body","name":"activities","description":"The activities object","required":true}],"tags":["activities"]}},"/activities/top":{"get":{"summary":"Search for activities","operationId":"getActivitiesTop","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/activitiesTopListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","type":"string","required":true},{"in":"query","name":"limit","description":"The number of resources to return in a given page","type":"string","required":false}],"tags":["activities"]}},"/bulk/download":{"post":{"summary":"Create a new bulk download job (asynchronous)","operationId":"createBulkDownload","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/bulkDownloadRequest"},"in":"body","name":"body","description":"The object body","required":true}],"tags":["bulk"]}},"/bulk/jobs":{"get":{"operationId":"getBulkJobs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The CEQL search expression, or the where clause, without the WHERE keyword, in a typical SQL query. For example to get all upload jobs the expression would be where=job_direction='UPLOAD'. The following fields are valid search fields 'object_name', 'job_status', 'job_direction', 'record_count'","in":"query","name":"where","required":false,"type":"string"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkJobList"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Fetch all the bulk jobs for an instance","tags":["bulk"]}},"/bulk/query":{"post":{"operationId":"createBulkQuery","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The Url to send the notification to when the Job is completed","in":"header","name":"Elements-Async-Callback-Url","required":false,"type":"string"},{"description":"The CEQL query. When this parameter is omitted, all objects of the given type are returned via the bulk job. Endpoint limiters may still apply.","in":"query","name":"q","required":false,"type":"string"},{"description":"The last time this query was run. This is optional. You can also have this parameter in the query and leave this blank - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"lastRunDate","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"from","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"to","required":false,"type":"string"},{"description":"Optional JSON MetaData that contains callback-payload and fileName, ex: {\"callback-payload\" : , \"fileName\" : \"{Date format}_Name of the file\"}. If the fileName is MyFile then pass metadata as {\"fileName\" : \"{yyyy-MM-dd HH:mm:ss}_MyFile\"}. The valid date formats are \"yyyy-MM-dd'T'HH:mm:ssXXX\", \"yyyy-MM-dd'T'HH:mm:ss'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd HH:mm:ss\", \"yyyy.MM.dd G 'at' HH:mm:ss z\", \"h:mm a\", \"yyyyy.MMMMM.dd GGG hh:mm aaa\" and \"yyMMddHHmmssZ\". callback-payload - is passed back in bulk job notification ","in":"formData","name":"metaData","required":false,"type":"string"}],"consumes":["multipart/form-data"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/cancel":{"put":{"operationId":"replaceBulkCancel","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to cancel.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Cancel an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/errors":{"get":{"operationId":"getBulkErrors","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its errors.","in":"path","name":"id","required":true,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the errors of a bulk job.","tags":["bulk"]}},"/bulk/{id}/status":{"get":{"operationId":"getBulkStatus","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its status.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the status of a bulk job.","tags":["bulk"]}},"/bulk/{id}/{objectName}":{"get":{"operationId":"getBulkByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job","in":"path","name":"id","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"file"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the results of an asynchronous bulk query.","tags":["bulk"],"produces":["text/csv","application/json","application/jsonl"]}},"/objects":{"get":{"operationId":"getObjects","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the available objects.","tags":["objects"]}},"/objects/{objectName}/docs":{"get":{"operationId":"getObjectsObjectNameDocs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Include discovery metadata in definitions","in":"query","name":"discovery","required":false,"type":"boolean"},{"description":"Optionally resolve swagger references for an inline object definition","in":"query","name":"resolveReferences","required":false,"type":"boolean"},{"description":"Include only OpenAPI / Swagger properties in definitions","in":"query","name":"basic","required":false,"type":"boolean"},{"description":"The element swagger version to get the corresponding element swagger, Passing in \"-1\" gives latest element swagger","in":"query","name":"version","required":false,"default":"-1","type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/swaggerDocs"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get swagger docs for an object.","tags":["objects"]}},"/objects/{objectName}/metadata":{"get":{"operationId":"getObjectsObjectNameMetadata","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/objectsMetadata"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the field for an object.","tags":["objects"]}},"/ping":{"get":{"operationId":"getPing","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Pong"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Ping the Element to confirm that the Hub Element has a heartbeat. If the Element does not have a heartbeat, an error message will be returned.","tags":["ping"]}},"/users":{"post":{"summary":"Create a(n) users","operationId":"createUser","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createUsers"},"in":"body","name":"users","description":"The users object, if the $distinct_id is existing user gets updated","required":true}],"tags":["users"]},"get":{"summary":"Search for users","operationId":"getUsers","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/usersListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","type":"string","required":false},{"in":"query","name":"nextPage","description":"The next page cursor, taken from the response header: `elements-next-page-token`","type":"string","required":false}],"tags":["users"]}},"/users/{id}":{"patch":{"summary":"Update a(n) users","operationId":"updateUserById","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true},{"schema":{"$ref":"#/definitions/updateUsers"},"in":"body","name":"users","description":"The users object","required":true}],"tags":["users"]},"delete":{"summary":"Delete a(n) users","operationId":"deleteUserById","responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true}],"tags":["users"]}},"/{objectName}":{"get":{"operationId":"getByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {objectName}","tags":["objectName"]},"post":{"operationId":"createByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}":{"delete":{"operationId":"deleteObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {objectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"produces":["application/json","application/pdf"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {objectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}":{"get":{"operationId":"getObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {childObjectName}","tags":["objectName"]},"post":{"operationId":"createObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {childObjectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}/{childObjectId}":{"delete":{"operationId":"deleteObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {childObjectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {childObjectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]}}},"schemes":["https"],"definitions":{"bulkDownloadRequest":{"properties":{"apiLimit":{"format":"int32","type":"integer","x-samplevalue":100},"continueFromJobId":{"format":"int32","type":"integer","x-samplevalue":1},"docsHubDetails":{"$ref":"#/definitions/bulkDownloadRequestDocsHubDetails"},"filterDateField":{"type":"string","x-samplevalue":"lastModifiedDate"},"filterNulls":{"type":"boolean","x-samplevalue":true},"format":{"enum":["application/json","txt/csv","application/jsonl"],"type":"string","x-samplevalue":"application/json"},"from":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-06T13:22:17-08:00"},"limit":{"format":"int32","type":"integer","x-samplevalue":107},"notificationUrl":{"type":"string","x-samplevalue":"https://myreceiver.com/whatever"},"objectName":{"type":"string","x-samplevalue":"accounts"},"pageSize":{"format":"int32","type":"integer","x-samplevalue":200},"query":{"$ref":"#/definitions/bulkDownloadRequestQuery"},"selectFields":{"type":"string","x-samplevalue":"a,b,c"},"to":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-10T13:22:17-08:00"},"where":{"type":"string","x-samplevalue":"name='Alex' and gender='male'"}},"required":["objectName","format"],"title":"bulkDownloadRequest","type":"object"},"swaggerschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact-POST-Response","type":"string"}}},"swaggerdefinitions":{"x-has-customfields":false,"type":"object","title":"definitions","properties":{"definition-name":{"$ref":"#/definitions/swaggerdefinition-name"}}},"swagger415":{"x-has-customfields":false,"type":"object","title":"415","properties":{"description":{"x-samplevalue":"Unsupported media type - The server cannot handle the requested Content-Type","type":"string"}}},"BulkQuery":{"properties":{"id":{"type":"string"},"status":{"type":"string"},"instance_id":{"type":"number"}},"type":"object"},"swaggerdefinition-name":{"x-has-customfields":false,"type":"object","title":"definition-name","properties":{"properties":{"$ref":"#/definitions/swaggerproperties"}}},"swaggerparameters":{"x-has-customfields":false,"title":"parameters","properties":{"schema":{"$ref":"#/definitions/swaggerparametersschema"},"in":{"x-samplevalue":"header","type":"string"},"name":{"x-samplevalue":"Authorization","type":"string"},"description":{"x-samplevalue":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string"},"type":{"x-samplevalue":"string","type":"string"},"required":{"x-samplevalue":true,"type":"boolean"}},"type":"object"},"swaggerparametersschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact","type":"string"}}},"swaggerresponses":{"x-has-customfields":false,"type":"object","title":"responses","properties":{"200":{"$ref":"#/definitions/swagger200"},"400":{"$ref":"#/definitions/swagger400"},"401":{"$ref":"#/definitions/swagger401"},"403":{"$ref":"#/definitions/swagger403"},"404":{"$ref":"#/definitions/swagger404"},"405":{"$ref":"#/definitions/swagger405"},"406":{"$ref":"#/definitions/swagger406"},"409":{"$ref":"#/definitions/swagger409"},"415":{"$ref":"#/definitions/swagger415"},"500":{"$ref":"#/definitions/swagger500"},"502":{"$ref":"#/definitions/swagger502"}}},"swaggerproperties":{"x-has-customfields":false,"type":"object","title":"properties","properties":{"definition-property":{"$ref":"#/definitions/swaggerdefinition-property"}}},"usersListObject":{"properties":{"$distinct_id":{"type":"string"},"$properties":{"$ref":"#/definitions/$properties"}},"type":"object"},"swagger-contacts-path":{"x-has-customfields":false,"type":"object","title":"/contacts","properties":{"post":{"$ref":"#/definitions/swaggerpost"}}},"swagger200":{"x-has-customfields":false,"type":"object","title":"200","properties":{"schema":{"$ref":"#/definitions/swaggerschema"},"description":{"x-samplevalue":"OK - Everything worked as expected","type":"string"}}},"$properties":{"properties":{"$browser":{"type":"string"},"$browser_version":{"format":"int32","type":"integer"},"$campaigns":{"items":{"format":"int32","type":"integer"},"type":"array"},"$city":{"type":"string"},"$country_code":{"type":"string"},"$created":{"type":"string"},"$deliveries":{"items":{"format":"int64","type":"integer"},"type":"array"},"$email":{"type":"string"},"$initial_referrer":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$last_seen":{"type":"string"},"$os":{"type":"string"},"$region":{"type":"string"},"$timezone":{"type":"string"},"Name":{"type":"string"},"credits":{"format":"int32","type":"integer"},"gender":{"type":"string"}},"type":"object"},"createActivity":{"properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"],"type":"object"},"swagger400":{"x-has-customfields":false,"type":"object","title":"400","properties":{"description":{"x-samplevalue":"Bad Request - Often due to a missing request parameter","type":"string"}}},"swaggerinfo":{"x-has-customfields":false,"type":"object","title":"info","properties":{"contact":{"$ref":"#/definitions/swaggercontact"},"title":{"x-samplevalue":"hubspotcrm","type":"string"},"version":{"x-samplevalue":"api-v2","type":"string"}}},"swagger401":{"x-has-customfields":false,"type":"object","title":"401","properties":{"description":{"x-samplevalue":"Unauthorized - An invalid element token, user secret and/or org secret provided","type":"string"}}},"swagger500":{"x-has-customfields":false,"type":"object","title":"500","properties":{"description":{"x-samplevalue":"Server error - Something went wrong on the Cloud Elements server","type":"string"}}},"swaggerpaths":{"x-has-customfields":false,"type":"object","title":"paths","properties":{"/contacts":{"$ref":"#/definitions/swagger-contacts-path"}}},"swagger403":{"x-has-customfields":false,"type":"object","title":"403","properties":{"description":{"x-samplevalue":"Forbidden - Access to the resource by the provider is forbidden","type":"string"}}},"swagger502":{"x-has-customfields":false,"type":"object","title":"502","properties":{"description":{"x-samplevalue":"Provider server error - Something went wrong on the Provider or Endpoint's server","type":"string"}}},"BulkStatus":{"description":"Status of the bulk upload.","type":"object","properties":{"batchId":{"description":"Contact/Leads loaded","type":"number"},"message":{"type":"string"},"numOfLeadsProcessed":{"description":"Contact/Leads loaded","type":"number"},"numOfRowsFailed":{"description":"Failed count","type":"number"},"numOfRowsWithWarning":{"description":"Contact/Leads that had warnings","type":"number"},"status":{"description":"Status of the bulk job","type":"string"}}},"swagger404":{"x-has-customfields":false,"type":"object","title":"404","properties":{"description":{"x-samplevalue":"Not found - The requested resource is not found","type":"string"}}},"activitiesTopListObject":{"properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}},"type":"object"},"swagger405":{"x-has-customfields":false,"type":"object","title":"405","properties":{"description":{"x-samplevalue":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected","type":"string"}}},"BulkJobList":{"title":"BulkJobList","properties":{"record_count":{"x-samplevalue":41,"format":"int32","type":"integer"},"job_query":{"x-samplevalue":"SELECT attributes.organizationid, attributes.systemuserid, organizationid FROM users WHERE organizationid = '3b80f68d-b945-4208-9442-f55bd0e1c5b2'","type":"string"},"job_reset_attempt":{"x-samplevalue":0,"format":"int32","type":"integer"},"completion_time":{"x-samplevalue":1542829827804,"format":"int64","type":"integer"},"status":{"x-samplevalue":"COMPLETED","type":"string"},"notification_url":{"type":"string"},"job_direction":{"x-samplevalue":"DOWNLOAD","type":"string"},"error_count":{"x-samplevalue":0,"format":"int32","type":"integer"},"job_state":{"type":"string"},"createdDate":{"x-samplevalue":1542829826619,"format":"int64","type":"integer"},"id":{"x-samplevalue":1722,"format":"int32","type":"integer"},"instanceId":{"x-samplevalue":123453,"format":"int32","type":"integer"},"object_name":{"x-samplevalue":"systemuser","type":"string"},"fileFormat":{"x-samplevalue":"csv","type":"string"}},"type":"object"},"objectsMetadataFields":{"properties":{"mask":{"type":"string"},"type":{"type":"string"},"vendorDisplayName":{"type":"string"},"vendorPath":{"type":"string"},"vendorReadOnly":{"type":"boolean"},"vendorRequired":{"type":"boolean"}},"type":"object"},"createUsers":{"properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"],"x-primary-key":["$distinct_id"],"type":"object"},"$set":{"properties":{"Address":{"type":"string"}},"type":"object"},"bulkDownloadRequestDocsHubDetails":{"properties":{"instanceId":{"type":"string","x-samplevalue":"1234"},"path":{"type":"string","x-samplevalue":"/myfolder/in/googledrive/myfilename.extention"}},"title":"docsHubDetails","type":"object"},"swaggerDocs":{"x-has-customfields":false,"title":"swaggerDocs","properties":{"basePath":{"x-samplevalue":"/elements/api-v2/hubs/crm","type":"string"},"paths":{"$ref":"#/definitions/swaggerpaths"},"host":{"x-samplevalue":"localhost:5050","type":"string"},"schemes":{"x-samplevalue":["http"],"type":"array","items":{"type":"string"}},"definitions":{"$ref":"#/definitions/swaggerdefinitions"},"swagger":{"x-samplevalue":"2.0","type":"string"},"info":{"$ref":"#/definitions/swaggerinfo"},"tags":{"type":"array","items":{"$ref":"#/definitions/swaggertags"}}},"type":"object"},"users":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggercontact":{"x-has-customfields":false,"type":"object","title":"contact","properties":{"email":{"x-samplevalue":"support@cloud-elements.com","type":"string"}}},"bulkDownloadRequestQuery":{"properties":{"anyKey":{"type":"string","x-samplevalue":"anyValue"}},"title":"query","type":"object"},"activities":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggerpost":{"x-has-customfields":false,"type":"object","title":"post","properties":{"summary":{"x-samplevalue":"Create a new contact in the CRM service. Contact creation will flow through Cloud Elements to your CRM service. With the exception of the 'id' field, the required fields indicated in the 'Contact' model are those required to create a new contact.","type":"string"},"operationId":{"x-samplevalue":"createContact","type":"string"},"responses":{"$ref":"#/definitions/swaggerresponses"},"parameters":{"type":"array","items":{"$ref":"#/definitions/swaggerparameters"}},"tags":{"x-samplevalue":["contacts"],"type":"array","items":{"type":"string"}}}},"swagger406":{"x-has-customfields":false,"type":"object","title":"406","properties":{"description":{"x-samplevalue":"Not acceptable - The response content type does not match the 'Accept' header value","type":"string"}}},"swaggerdefinition-property":{"x-has-customfields":false,"type":"object","title":"#/definitions/definition-property","properties":{"type":{"x-samplevalue":"string","type":"string"}}},"Object":{"description":"Fields for the object. There will be fields associated with an Object, which are not all described here.","properties":{"objectField":{"type":"string"}},"type":"object"},"updateUsers":{"properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"],"x-primary-key":["$distinct_id"],"type":"object"},"swagger409":{"x-has-customfields":false,"type":"object","title":"409","properties":{"description":{"x-samplevalue":"Conflict - If a resource being created already exists","type":"string"}}},"objectsMetadata":{"properties":{"fields":{"items":{"$ref":"#/definitions/objectsMetadataFields"},"type":"array"}},"type":"object"},"swaggertags":{"x-has-customfields":false,"title":"tags","properties":{"name":{"x-samplevalue":"contacts","type":"string"}},"type":"object"},"properties":{"properties":{"Referred By":{"type":"string"},"distinct_id":{"type":"string"}},"type":"object"},"Pong":{"properties":{"dateTime":{"format":"date-time","type":"string"},"endpoint":{"type":"string"},"valid":{"type":"boolean"}},"type":"object"}},"swagger":"2.0","info":{"x-element-name":"Mixpanel","x-element-hub":"general","x-element-key":"mixpanel-clone","contact":{"email":"support@cloud-elements.com"},"title":"mixpanel-clone","x-element-id":52738,"version":"api-v2"},"tags":[{"name":"activities"},{"name":"ping"},{"name":"objects"},{"name":"objectName"},{"name":"bulk"},{"name":"users"}]} \ No newline at end of file From e452e0302b308cf33df77bdee228a54ec3d78ce3 Mon Sep 17 00:00:00 2001 From: Samrat Dutta <52174734+gapking90@users.noreply.github.com> Date: Mon, 15 Feb 2021 15:02:15 +0530 Subject: [PATCH 2/5] Update elements-metadata.json --- elements-metadata.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elements-metadata.json b/elements-metadata.json index e63a63b..b21de6d 100644 --- a/elements-metadata.json +++ b/elements-metadata.json @@ -632,14 +632,14 @@ }, "Mixpanel" : { "image" : "https://uxcam.com/images/mixpanel-logo.png", - "path" : "mixpanel-clone/element.json", + "path" : "mixpanel/element.json", "hub" : "general", "author" : "gapking90", "name" : "Mixpanel", "active" : true, "description" : "Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users", "vendor_version" : null, - "key" : "mixpanel-clone", + "key" : "mixpanel", "extended" : false } -} \ No newline at end of file +} From c3fd48b4a49bb43c3882452c52eac8913b74f9b2 Mon Sep 17 00:00:00 2001 From: Samrat Dutta <52174734+gapking90@users.noreply.github.com> Date: Mon, 15 Feb 2021 15:02:51 +0530 Subject: [PATCH 3/5] Update element.json --- mixpanel-clone/element.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixpanel-clone/element.json b/mixpanel-clone/element.json index fff058e..2173715 100644 --- a/mixpanel-clone/element.json +++ b/mixpanel-clone/element.json @@ -1 +1 @@ -{"elementMetadata":{"image":"https://uxcam.com/images/mixpanel-logo.png","usage":{"instanceCount":0,"customerCount":1,"traffic":1},"displayOrder":100,"active":true,"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","eventTypes":["unknown"],"hasSandboxWarnings":false,"paginationMetadata":{},"tags":[],"authenticationTypes":["basic"],"hub":"general","discovery":{"nativeObjectMetadataDiscovery":false,"vendorSupportCustomFieldsDiscovery":false,"supportCustomFieldsDiscovery":false,"nativeObjectDiscovery":false,"objectDiscoverySupport":false,"crudsSupported":false},"captured":false,"name":"Mixpanel","api":{"vendorSupportWebhooks":false,"type":"rest"},"extendable":false,"id":52738,"bulk":{"download":true,"upload":false,"ceSupportNativeBulkUpload":false,"vendorSupportNativeBulkDownload":false,"ceSupportNativeBulkDownload":false,"vendorSupportNativeBulkUpload":false},"beta":false,"key":"mixpanel-clone"},"private":true,"configuration":[{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Mixpanel API Secret","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":true,"hideFromConsole":false,"name":"API Secret","id":565814,"groupControl":false,"key":"username"},{"internal":false,"companyConfig":false,"defaultValue":"cursor","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Type","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Type","id":565813,"groupControl":false,"key":"pagination.type"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":1,"active":true,"description":"Enables use of global fields query parameter to filter response to only specified fields. This will override any existing vendor functionality on the connector","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Allow Select Fields parameter","id":565812,"groupControl":false,"key":"allow.select.fields"},{"internal":false,"companyConfig":false,"defaultValue":"yyyy-MM-dd","displayOrder":1,"active":true,"description":"Bulk query Date Mask","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Date Mask","id":565811,"groupControl":false,"key":"bulk.query.date_mask"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query Operator","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Operator","id":565810,"groupControl":false,"key":"bulk.query.operator"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query FieldName","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query FieldName","id":565809,"groupControl":false,"key":"bulk.query.field_name"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Query Created Field Name","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Created Field Name","id":565808,"groupControl":false,"key":"bulk.attribute.created_time"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Add Metadata","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Add Metadata","id":565807,"groupControl":false,"key":"bulk.add_metadata"},{"internal":false,"companyConfig":false,"defaultValue":"JSON","displayOrder":1,"active":true,"description":"Bulk Download Format","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Download Format","id":565806,"groupControl":false,"key":"bulk.query.download_format"},{"internal":false,"companyConfig":false,"defaultValue":"1000","displayOrder":1,"active":true,"description":"Mixpanel Old Max Page Size (or limit)","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Max Page Size (or limit)","id":565805,"groupControl":false,"key":"pagination.max"},{"internal":false,"companyConfig":false,"defaultValue":"1","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Start Index","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Start Index","id":565816,"groupControl":false,"key":"pagination.page.startindex"},{"internal":false,"companyConfig":false,"defaultValue":"https://mixpanel.com/api/2.0","displayOrder":1,"active":true,"description":"Mixpanel Old Base URL","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Base URL","id":565815,"groupControl":false,"key":"base.url"},{"internal":false,"companyConfig":false,"displayOrder":3,"active":true,"description":"Password, this is blank and not required for provisioning","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Password","id":565817,"groupControl":false,"key":"password"},{"internal":false,"companyConfig":false,"displayOrder":4,"active":true,"description":"Token to be used during events tracking","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Token","id":565818,"groupControl":false,"key":"token"},{"internal":false,"companyConfig":false,"displayOrder":11,"active":true,"description":"Mixpanel Event Notification Signature Key","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Event Notification Signature Key","id":565827,"groupControl":false,"key":"event.notification.signature.key"},{"internal":false,"companyConfig":false,"displayOrder":12,"active":true,"description":"Event Notification Callback Headers","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Callback Headers","id":565819,"groupControl":false,"key":"event.notification.callback.headers"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":51,"active":true,"description":"Used to enable/disable filtering of null values from the responses","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Filter null values from the response","id":565820,"groupControl":false,"key":"filter.response.nulls"},{"internal":false,"companyConfig":false,"displayOrder":98,"active":true,"description":"Generic map used to specify default fields for bulk download and GET /all requests. Each key should be the canonical objectName and values may be specified as a comma-delimited string or a list of strings","isPrivate":false,"type":"TEXTAREA","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Default select fields","id":565821,"groupControl":false,"key":"default.select.fields.map"},{"internal":false,"companyConfig":false,"displayOrder":100,"active":true,"description":"Instance Variables","isPrivate":false,"type":"CODE_EDITOR","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Instance Variables","id":565822,"groupControl":false,"key":"instance.variables"},{"internal":true,"companyConfig":false,"displayOrder":100,"active":true,"description":"Mixpanel Old Time of Getting Token or Performing Authentication","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Time of Getting Token or Performing Authentication","id":565823,"groupControl":false,"key":"authentication.time"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":100,"active":true,"description":"Enables synchronous bulk callback notification","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Synchronous Bulk Notification","id":565824,"groupControl":false,"key":"synchronous.bulk.notification"},{"internal":false,"companyConfig":false,"displayOrder":110,"active":true,"description":"Event Notification basic authentication username","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication UserName","id":565825,"groupControl":false,"key":"event.notification.basic.username"},{"internal":false,"companyConfig":false,"displayOrder":112,"active":true,"description":"Event Notification basic authentication password","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication Password","id":565826,"groupControl":false,"key":"event.notification.basic.password"}],"objects":[{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89542,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities_top","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89543,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"users","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89544,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false}],"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","cloneable":true,"extended":false,"bulkDownloadEnabled":true,"useModelsForMetadata":true,"paginatorVersion":"V2","trialAccount":false,"logo":"mixpanel","id":52738,"hooks":[],"beta":false,"key":"mixpanel-clone","authentication":{"type":"basic"},"bulkUploadEnabled":false,"image":"https://uxcam.com/images/mixpanel-logo.png","active":true,"resources":[{"method":"POST","kind":"eb","description":"Create a(n) activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/track/","path":"/hubs/general/activities","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createActivity","transform":false,"name":"activities","requestSwagger":{"createActivity":{"type":"object","properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"]},"properties":{"type":"object","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"}}}},"swagger":{"activities":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574422,"hooks":[{"resourceId":574422,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102818,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574422,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102817,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\nif(vendorBody.properties === null || vendorBody.properties === undefined) {\n\tvendorBody.properties = {};\n}\n\nif(vendorBody.properties.token === null || vendorBody.properties.token === undefined) {\n vendorBody.properties.token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574422,"dataType":"createActivity","description":"The activities object","vendorDataType":"activities","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"activities","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"activities","id":1340644}]},{"method":"GET","kind":"eb","description":"Search for activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"/events/top/","path":"/hubs/general/activities/top","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"activitiesTopList","swagger":{"activitiesTopListObject":{"type":"object","properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}}}}},"id":574423,"hooks":[],"parameters":[{"vendorType":"query","resourceId":574423,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340646},{"vendorType":"query","resourceId":574423,"dataType":"string","description":"The number of resources to return in a given page","vendorDataType":"number","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"limit","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"limit","id":1340645}],"rootKey":"|events"},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"provisionAuthValidation","vendorPath":"https://data.mixpanel.com/api/2.0/export/","path":"/hubs/general/authvalidation","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"authvalidation","swagger":{"authvalidation":{"id":"authvalidation","properties":{"event":{"type":"string"},"properties":{"type":"properties"}}},"properties":{"id":"properties","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"},"time":{"format":"int32","type":"integer"}}}}},"id":574424,"hooks":[{"resourceId":574424,"isLegacy":false,"contextParams":"request_vendor_parameters","id":102819,"mimeType":"application/javascript","body":"var date = new Date();\n\nvar dd = date.getDate();\nvar mm = date.getMonth();\nvar yyyy = date.getFullYear();\n\nvar todate = yyyy+'-'+mm+'-'+dd;\n\nvar dd = date.getDate() - 1\n\nvar fromdate = yyyy+'-'+mm+'-'+dd;\n\ndone({\n\trequest_vendor_parameters : {\n\t\t'to_date' : todate,\n\t\t'from_date': fromdate\n\t}\n})\n\n","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574424,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340647}]},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"https://mixpanel.com/api/2.0/engage/","nextPageKey":"body.session_id","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"usersList","swagger":{"$properties":{"type":"object","properties":{"$browser_version":{"format":"int32","type":"integer"},"$timezone":{"type":"string"},"gender":{"type":"string"},"$city":{"type":"string"},"$email":{"type":"string"},"$os":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$browser":{"type":"string"},"$country_code":{"type":"string"},"Name":{"type":"string"},"$deliveries":{"type":"array","items":{"format":"int64","type":"integer"}},"$region":{"type":"string"},"$campaigns":{"type":"array","items":{"format":"int32","type":"integer"}},"$last_seen":{"type":"string"},"credits":{"format":"int32","type":"integer"},"$initial_referrer":{"type":"string"},"$created":{"type":"string"}}},"usersListObject":{"type":"object","properties":{"$properties":{"$ref":"#/definitions/$properties"},"$distinct_id":{"type":"string"}}}}},"id":574425,"hooks":[{"resourceId":574425,"isLegacy":false,"contextParams":"request_parameters,request_expression,request_vendor_parameters","id":102820,"mimeType":"application/javascript","body":"var params = {};\n\nif(request_vendor_parameters !== null && (request_vendor_parameters.session_id === null || request_vendor_parameters.session_id === undefined)) {\n\tparams.page = null;\n} else if(request_vendor_parameters !== null && request_vendor_parameters.session_id !== null && request_parameters.page !== null && request_parameters.page !== undefined) {\n\tparams.page = request_parameters.page;\n}\n\nif(request_expression !== null && request_expression !== undefined && request_expression.length > 0) {\n\t//construct the where\n\t\n\tvar wherequery = \"(\";\n\tvar nextCall = false;\n\tfor (var index in request_expression) {\n\t\tvar exp = request_expression[index];\n\t\t//If its query ignore others and just use query value for the where\n\t\tif(exp.attribute === 'query') {\n\t\t\twherequery = exp.value;\n\t\t\tnextCall = false;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif(nextCall) {\n\t\t\twherequery += ' and ';\n\t\t}\n\t\t\n\t\tnextCall = true;\n\t\twherequery += 'properties[';\n\t\tif(exp.attribute.indexOf('\"') === 0) {\n\t\t\twherequery += exp.attribute;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.attribute;\n\t\t\twherequery += '\"';\n\t\t}\t\t\n\t\twherequery += '] ';\n\t\t\n\t\tvar oper = exp.operator;\n\t\tif(oper === '=') {\n\t\t\toper = '==';\n\t\t}\n\t\twherequery += oper;\n\t\twherequery += ' ';\n\t\tif(exp.value.indexOf('\"') === 0) {\n\t\t\twherequery += exp.value;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.value;\n\t\t\twherequery += '\"';\n\t\t}\n\t}\n\t\n\tif(nextCall) {\n\t\twherequery += ')';\t\n\t}\n\t\n\tparams.where = wherequery;\n}\n\ndone({\n\trequest_vendor_parameters: params\n})","type":"preRequest"}],"parameters":[{"vendorType":"query","resourceId":574425,"dataType":"string","description":"The next page token to get the next set of results","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"session_id","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"nextPage","id":1340649},{"vendorType":"no-op","resourceId":574425,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340648}],"rootKey":"|results"},{"method":"POST","kind":"eb","description":"Create a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createUsers","transform":false,"name":"users","requestSwagger":{"createUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574426,"hooks":[{"resourceId":574426,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102822,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574426,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102821,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574426,"dataType":"createUsers","description":"The users object, if the $distinct_id is existing user gets updated","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340650}]},{"method":"DELETE","kind":"eb","description":"Delete a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"users","swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574427,"hooks":[{"resourceId":574427,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102824,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});","type":"postRequest"},{"resourceId":574427,"isLegacy":false,"contextParams":"request_path,request_vendor_parameters,configuration","id":102823,"mimeType":"application/javascript","body":"var vendorBody = {\n\t$token: configuration['token'],\n\t\"$delete\": \"\"\n};\n\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574427,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340651}]},{"method":"PATCH","kind":"eb","description":"Update a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"updateUsers","transform":false,"name":"users","requestSwagger":{"updateUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574428,"hooks":[{"resourceId":574428,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102826,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574428,"isLegacy":false,"contextParams":"request_body,request_path,request_vendor_parameters,configuration","id":102825,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params,\n \n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574428,"dataType":"updateUsers","description":"The users object","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340653},{"vendorType":"no-op","resourceId":574428,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340652}]}],"protocolType":"http","transformationsEnabled":true,"childTransformationsEnabled":true,"deleted":false,"hub":"general","typeOauth":false,"name":"Mixpanel","extendable":false,"parameters":[{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46692,"source":"request","type":"value","vendorName":"Accept","required":false},{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46691,"source":"request","type":"value","vendorName":"Content-Type","required":false}]} \ No newline at end of file +{"elementMetadata":{"image":"https://uxcam.com/images/mixpanel-logo.png","usage":{"instanceCount":0,"customerCount":1,"traffic":1},"displayOrder":100,"active":true,"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","eventTypes":["unknown"],"hasSandboxWarnings":false,"paginationMetadata":{},"tags":[],"authenticationTypes":["basic"],"hub":"general","discovery":{"nativeObjectMetadataDiscovery":false,"vendorSupportCustomFieldsDiscovery":false,"supportCustomFieldsDiscovery":false,"nativeObjectDiscovery":false,"objectDiscoverySupport":false,"crudsSupported":false},"captured":false,"name":"Mixpanel","api":{"vendorSupportWebhooks":false,"type":"rest"},"extendable":false,"id":52738,"bulk":{"download":true,"upload":false,"ceSupportNativeBulkUpload":false,"vendorSupportNativeBulkDownload":false,"ceSupportNativeBulkDownload":false,"vendorSupportNativeBulkUpload":false},"beta":false,"key":"mixpanel"},"private":true,"configuration":[{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Mixpanel API Secret","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":true,"hideFromConsole":false,"name":"API Secret","id":565814,"groupControl":false,"key":"username"},{"internal":false,"companyConfig":false,"defaultValue":"cursor","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Type","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Type","id":565813,"groupControl":false,"key":"pagination.type"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":1,"active":true,"description":"Enables use of global fields query parameter to filter response to only specified fields. This will override any existing vendor functionality on the connector","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Allow Select Fields parameter","id":565812,"groupControl":false,"key":"allow.select.fields"},{"internal":false,"companyConfig":false,"defaultValue":"yyyy-MM-dd","displayOrder":1,"active":true,"description":"Bulk query Date Mask","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Date Mask","id":565811,"groupControl":false,"key":"bulk.query.date_mask"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query Operator","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Operator","id":565810,"groupControl":false,"key":"bulk.query.operator"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk query FieldName","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query FieldName","id":565809,"groupControl":false,"key":"bulk.query.field_name"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Query Created Field Name","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk query Created Field Name","id":565808,"groupControl":false,"key":"bulk.attribute.created_time"},{"internal":false,"companyConfig":false,"displayOrder":1,"active":true,"description":"Bulk Add Metadata","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Add Metadata","id":565807,"groupControl":false,"key":"bulk.add_metadata"},{"internal":false,"companyConfig":false,"defaultValue":"JSON","displayOrder":1,"active":true,"description":"Bulk Download Format","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Bulk Download Format","id":565806,"groupControl":false,"key":"bulk.query.download_format"},{"internal":false,"companyConfig":false,"defaultValue":"1000","displayOrder":1,"active":true,"description":"Mixpanel Old Max Page Size (or limit)","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Max Page Size (or limit)","id":565805,"groupControl":false,"key":"pagination.max"},{"internal":false,"companyConfig":false,"defaultValue":"1","displayOrder":1,"active":true,"description":"Mixpanel Old Pagination Start Index","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Pagination Start Index","id":565816,"groupControl":false,"key":"pagination.page.startindex"},{"internal":false,"companyConfig":false,"defaultValue":"https://mixpanel.com/api/2.0","displayOrder":1,"active":true,"description":"Mixpanel Old Base URL","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Base URL","id":565815,"groupControl":false,"key":"base.url"},{"internal":false,"companyConfig":false,"displayOrder":3,"active":true,"description":"Password, this is blank and not required for provisioning","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Password","id":565817,"groupControl":false,"key":"password"},{"internal":false,"companyConfig":false,"displayOrder":4,"active":true,"description":"Token to be used during events tracking","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Token","id":565818,"groupControl":false,"key":"token"},{"internal":false,"companyConfig":false,"displayOrder":11,"active":true,"description":"Mixpanel Event Notification Signature Key","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Event Notification Signature Key","id":565827,"groupControl":false,"key":"event.notification.signature.key"},{"internal":false,"companyConfig":false,"displayOrder":12,"active":true,"description":"Event Notification Callback Headers","isPrivate":false,"type":"TEXTFIELD_128","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Callback Headers","id":565819,"groupControl":false,"key":"event.notification.callback.headers"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":51,"active":true,"description":"Used to enable/disable filtering of null values from the responses","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Filter null values from the response","id":565820,"groupControl":false,"key":"filter.response.nulls"},{"internal":false,"companyConfig":false,"displayOrder":98,"active":true,"description":"Generic map used to specify default fields for bulk download and GET /all requests. Each key should be the canonical objectName and values may be specified as a comma-delimited string or a list of strings","isPrivate":false,"type":"TEXTAREA","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Default select fields","id":565821,"groupControl":false,"key":"default.select.fields.map"},{"internal":false,"companyConfig":false,"displayOrder":100,"active":true,"description":"Instance Variables","isPrivate":false,"type":"CODE_EDITOR","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Instance Variables","id":565822,"groupControl":false,"key":"instance.variables"},{"internal":true,"companyConfig":false,"displayOrder":100,"active":true,"description":"Mixpanel Old Time of Getting Token or Performing Authentication","isPrivate":false,"type":"TEXTFIELD_32","resellerConfig":false,"required":false,"hideFromConsole":true,"name":"Time of Getting Token or Performing Authentication","id":565823,"groupControl":false,"key":"authentication.time"},{"internal":false,"companyConfig":false,"defaultValue":"true","displayOrder":100,"active":true,"description":"Enables synchronous bulk callback notification","isPrivate":false,"type":"BOOLEAN","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Synchronous Bulk Notification","id":565824,"groupControl":false,"key":"synchronous.bulk.notification"},{"internal":false,"companyConfig":false,"displayOrder":110,"active":true,"description":"Event Notification basic authentication username","isPrivate":false,"type":"TEXTFIELD_1000","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication UserName","id":565825,"groupControl":false,"key":"event.notification.basic.username"},{"internal":false,"companyConfig":false,"displayOrder":112,"active":true,"description":"Event Notification basic authentication password","isPrivate":false,"type":"PASSWORD","resellerConfig":false,"required":false,"hideFromConsole":false,"name":"Event Notification Basic Authentication Password","id":565826,"groupControl":false,"key":"event.notification.basic.password"}],"objects":[{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89542,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"activities_top","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89543,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false},{"elementId":52738,"metadataDiscovery":false,"eventsEnabled":false,"eventCreatedSupported":false,"nativeBulkUpload":false,"vendorEventTypes":"unknown","tags":[],"ownerAccountId":35441,"name":"users","operationsSupported":["unknown"],"eventUpdatedSupported":false,"hulkDownloadEnabled":true,"id":89544,"migrated":false,"nativeBulkDownload":false,"eventDeletedSupported":false,"hulkUploadEnabled":false}],"description":"Add an Mixpanel element to connect to your existing mixpanel account, allowing you to create activities, users and download activities and users","cloneable":true,"extended":false,"bulkDownloadEnabled":true,"useModelsForMetadata":true,"paginatorVersion":"V2","trialAccount":false,"logo":"mixpanel","id":52738,"hooks":[],"beta":false,"key":"mixpanel","authentication":{"type":"basic"},"bulkUploadEnabled":false,"image":"https://uxcam.com/images/mixpanel-logo.png","active":true,"resources":[{"method":"POST","kind":"eb","description":"Create a(n) activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/track/","path":"/hubs/general/activities","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createActivity","transform":false,"name":"activities","requestSwagger":{"createActivity":{"type":"object","properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"]},"properties":{"type":"object","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"}}}},"swagger":{"activities":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574422,"hooks":[{"resourceId":574422,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102818,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574422,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102817,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\nif(vendorBody.properties === null || vendorBody.properties === undefined) {\n\tvendorBody.properties = {};\n}\n\nif(vendorBody.properties.token === null || vendorBody.properties.token === undefined) {\n vendorBody.properties.token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574422,"dataType":"createActivity","description":"The activities object","vendorDataType":"activities","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"activities","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"activities","id":1340644}]},{"method":"GET","kind":"eb","description":"Search for activities","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"/events/top/","path":"/hubs/general/activities/top","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"activitiesTopList","swagger":{"activitiesTopListObject":{"type":"object","properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}}}}},"id":574423,"hooks":[],"parameters":[{"vendorType":"query","resourceId":574423,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340646},{"vendorType":"query","resourceId":574423,"dataType":"string","description":"The number of resources to return in a given page","vendorDataType":"number","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"limit","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"limit","id":1340645}],"rootKey":"|events"},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"provisionAuthValidation","vendorPath":"https://data.mixpanel.com/api/2.0/export/","path":"/hubs/general/authvalidation","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"authvalidation","swagger":{"authvalidation":{"id":"authvalidation","properties":{"event":{"type":"string"},"properties":{"type":"properties"}}},"properties":{"id":"properties","properties":{"distinct_id":{"type":"string"},"Referred By":{"type":"string"},"time":{"format":"int32","type":"integer"}}}}},"id":574424,"hooks":[{"resourceId":574424,"isLegacy":false,"contextParams":"request_vendor_parameters","id":102819,"mimeType":"application/javascript","body":"var date = new Date();\n\nvar dd = date.getDate();\nvar mm = date.getMonth();\nvar yyyy = date.getFullYear();\n\nvar todate = yyyy+'-'+mm+'-'+dd;\n\nvar dd = date.getDate() - 1\n\nvar fromdate = yyyy+'-'+mm+'-'+dd;\n\ndone({\n\trequest_vendor_parameters : {\n\t\t'to_date' : todate,\n\t\t'from_date': fromdate\n\t}\n})\n\n","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574424,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340647}]},{"method":"GET","kind":"eb","description":"Search for users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"https://mixpanel.com/api/2.0/engage/","nextPageKey":"body.session_id","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"usersList","swagger":{"$properties":{"type":"object","properties":{"$browser_version":{"format":"int32","type":"integer"},"$timezone":{"type":"string"},"gender":{"type":"string"},"$city":{"type":"string"},"$email":{"type":"string"},"$os":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$browser":{"type":"string"},"$country_code":{"type":"string"},"Name":{"type":"string"},"$deliveries":{"type":"array","items":{"format":"int64","type":"integer"}},"$region":{"type":"string"},"$campaigns":{"type":"array","items":{"format":"int32","type":"integer"}},"$last_seen":{"type":"string"},"credits":{"format":"int32","type":"integer"},"$initial_referrer":{"type":"string"},"$created":{"type":"string"}}},"usersListObject":{"type":"object","properties":{"$properties":{"$ref":"#/definitions/$properties"},"$distinct_id":{"type":"string"}}}}},"id":574425,"hooks":[{"resourceId":574425,"isLegacy":false,"contextParams":"request_parameters,request_expression,request_vendor_parameters","id":102820,"mimeType":"application/javascript","body":"var params = {};\n\nif(request_vendor_parameters !== null && (request_vendor_parameters.session_id === null || request_vendor_parameters.session_id === undefined)) {\n\tparams.page = null;\n} else if(request_vendor_parameters !== null && request_vendor_parameters.session_id !== null && request_parameters.page !== null && request_parameters.page !== undefined) {\n\tparams.page = request_parameters.page;\n}\n\nif(request_expression !== null && request_expression !== undefined && request_expression.length > 0) {\n\t//construct the where\n\t\n\tvar wherequery = \"(\";\n\tvar nextCall = false;\n\tfor (var index in request_expression) {\n\t\tvar exp = request_expression[index];\n\t\t//If its query ignore others and just use query value for the where\n\t\tif(exp.attribute === 'query') {\n\t\t\twherequery = exp.value;\n\t\t\tnextCall = false;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tif(nextCall) {\n\t\t\twherequery += ' and ';\n\t\t}\n\t\t\n\t\tnextCall = true;\n\t\twherequery += 'properties[';\n\t\tif(exp.attribute.indexOf('\"') === 0) {\n\t\t\twherequery += exp.attribute;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.attribute;\n\t\t\twherequery += '\"';\n\t\t}\t\t\n\t\twherequery += '] ';\n\t\t\n\t\tvar oper = exp.operator;\n\t\tif(oper === '=') {\n\t\t\toper = '==';\n\t\t}\n\t\twherequery += oper;\n\t\twherequery += ' ';\n\t\tif(exp.value.indexOf('\"') === 0) {\n\t\t\twherequery += exp.value;\n\t\t} else {\n\t\t\twherequery += '\"';\n\t\t\twherequery += exp.value;\n\t\t\twherequery += '\"';\n\t\t}\n\t}\n\t\n\tif(nextCall) {\n\t\twherequery += ')';\t\n\t}\n\t\n\tparams.where = wherequery;\n}\n\ndone({\n\trequest_vendor_parameters: params\n})","type":"preRequest"}],"parameters":[{"vendorType":"query","resourceId":574425,"dataType":"string","description":"The next page token to get the next set of results","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"session_id","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"nextPage","id":1340649},{"vendorType":"no-op","resourceId":574425,"converter":"toQueryParameters","dataType":"string","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"query","vendorName":"converter:toQueryParameters","required":false,"createdDate":"2021-02-15T09:27:31Z","name":"where","id":1340648}],"rootKey":"|results"},{"method":"POST","kind":"eb","description":"Create a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"createUsers","transform":false,"name":"users","requestSwagger":{"createUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574426,"hooks":[{"resourceId":574426,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102822,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574426,"isLegacy":false,"contextParams":"request_body,request_vendor_parameters,configuration","id":102821,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574426,"dataType":"createUsers","description":"The users object, if the $distinct_id is existing user gets updated","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340650}]},{"method":"DELETE","kind":"eb","description":"Delete a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"POST","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"transform":false,"name":"users","swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574427,"hooks":[{"resourceId":574427,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102824,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});","type":"postRequest"},{"resourceId":574427,"isLegacy":false,"contextParams":"request_path,request_vendor_parameters,configuration","id":102823,"mimeType":"application/javascript","body":"var vendorBody = {\n\t$token: configuration['token'],\n\t\"$delete\": \"\"\n};\n\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params\n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574427,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340651}]},{"method":"PATCH","kind":"eb","description":"Update a(n) users","updatedDate":"2021-02-15T09:27:40Z","type":"api","vendorPath":"http://api.mixpanel.com/engage/","path":"/hubs/general/users/{id}","createdDate":"2021-02-15T09:27:31Z","paginationType":"VENDOR_SUPPORTED","vendorMethod":"GET","response":{"contentTypeAsString":"application/json","contentType":"application/json"},"ownerAccountId":35441,"tryitoutDisable":false,"model":{"requestName":"updateUsers","transform":false,"name":"users","requestSwagger":{"updateUsers":{"x-primary-key":["$distinct_id"],"type":"object","properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"]},"$set":{"type":"object","properties":{"Address":{"type":"string"}}}},"swagger":{"users":{"type":"object","properties":{"success":{"type":"boolean"}}}}},"id":574428,"hooks":[{"resourceId":574428,"isLegacy":false,"contextParams":"response_body,response_status_code,response_iserror,response_error","id":102826,"mimeType":"application/javascript","body":"if(response_iserror) {\n\tdone({});\n}\n\nif(response_body === '1' || response_body === 1) {\n\tdone({\n\t\t\"response_body\" : {\n\t\t\t\"success\" : true\n\t\t}\n\t});\n}\n\ndone({\n\t\"response_error\" : \"Error while creating activity\",\n\t\"response_status_code\" : 400\n});\t\n\n\n","type":"postRequest"},{"resourceId":574428,"isLegacy":false,"contextParams":"request_body,request_path,request_vendor_parameters,configuration","id":102825,"mimeType":"application/javascript","body":"var vendorBody = JSON.parse(request_body);\n\nif(vendorBody.$token === null || vendorBody.$token === undefined) {\n vendorBody.$token = configuration['token'];\t\n}\n\nvar path = request_path;\nvendorBody.$distinct_id = path.substring(path.indexOf('users/')+6);\nvar params = {};\nparams.data = CE.b64(JSON.stringify(vendorBody));\n\ndone({\n request_vendor_parameters: params,\n \n});","type":"preRequest"}],"parameters":[{"vendorType":"no-op","resourceId":574428,"dataType":"updateUsers","description":"The users object","vendorDataType":"users","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"body","vendorName":"users","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"users","id":1340653},{"vendorType":"no-op","resourceId":574428,"dataType":"string","description":"The users ID","vendorDataType":"string","source":"request","updatedDate":"2021-02-15T09:27:40Z","type":"path","vendorName":"id","required":true,"createdDate":"2021-02-15T09:27:31Z","name":"id","id":1340652}]}],"protocolType":"http","transformationsEnabled":true,"childTransformationsEnabled":true,"deleted":false,"hub":"general","typeOauth":false,"name":"Mixpanel","extendable":false,"parameters":[{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46692,"source":"request","type":"value","vendorName":"Accept","required":false},{"elementId":52738,"vendorType":"header","createdDate":"2021-02-15T09:27:40Z","name":"application/json","id":46691,"source":"request","type":"value","vendorName":"Content-Type","required":false}]} From 2dcc22a419d4fbd77ea24134c27c0b79c9d88cff Mon Sep 17 00:00:00 2001 From: Samrat Dutta <52174734+gapking90@users.noreply.github.com> Date: Mon, 15 Feb 2021 15:03:03 +0530 Subject: [PATCH 4/5] Update metadata.json --- mixpanel-clone/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixpanel-clone/metadata.json b/mixpanel-clone/metadata.json index fb4aea4..e460cbf 100644 --- a/mixpanel-clone/metadata.json +++ b/mixpanel-clone/metadata.json @@ -1 +1 @@ -{"key":"mixpanel-clone","authentication":"BASIC"} \ No newline at end of file +{"key":"mixpanel","authentication":"BASIC"} From b7433e5adaa48fc9cc6b7e92d7c013b57c4cac09 Mon Sep 17 00:00:00 2001 From: Samrat Dutta <52174734+gapking90@users.noreply.github.com> Date: Mon, 15 Feb 2021 15:03:31 +0530 Subject: [PATCH 5/5] Update swagger.json --- mixpanel-clone/swagger.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixpanel-clone/swagger.json b/mixpanel-clone/swagger.json index f7353e8..d86c557 100644 --- a/mixpanel-clone/swagger.json +++ b/mixpanel-clone/swagger.json @@ -1 +1 @@ -{"basePath":"/elements/api-v2","paths":{"/activities":{"post":{"summary":"Create a(n) activities","operationId":"createActivity","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/activities"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createActivity"},"in":"body","name":"activities","description":"The activities object","required":true}],"tags":["activities"]}},"/activities/top":{"get":{"summary":"Search for activities","operationId":"getActivitiesTop","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/activitiesTopListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","type":"string","required":true},{"in":"query","name":"limit","description":"The number of resources to return in a given page","type":"string","required":false}],"tags":["activities"]}},"/bulk/download":{"post":{"summary":"Create a new bulk download job (asynchronous)","operationId":"createBulkDownload","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/bulkDownloadRequest"},"in":"body","name":"body","description":"The object body","required":true}],"tags":["bulk"]}},"/bulk/jobs":{"get":{"operationId":"getBulkJobs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The CEQL search expression, or the where clause, without the WHERE keyword, in a typical SQL query. For example to get all upload jobs the expression would be where=job_direction='UPLOAD'. The following fields are valid search fields 'object_name', 'job_status', 'job_direction', 'record_count'","in":"query","name":"where","required":false,"type":"string"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkJobList"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Fetch all the bulk jobs for an instance","tags":["bulk"]}},"/bulk/query":{"post":{"operationId":"createBulkQuery","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The Url to send the notification to when the Job is completed","in":"header","name":"Elements-Async-Callback-Url","required":false,"type":"string"},{"description":"The CEQL query. When this parameter is omitted, all objects of the given type are returned via the bulk job. Endpoint limiters may still apply.","in":"query","name":"q","required":false,"type":"string"},{"description":"The last time this query was run. This is optional. You can also have this parameter in the query and leave this blank - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"lastRunDate","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"from","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"to","required":false,"type":"string"},{"description":"Optional JSON MetaData that contains callback-payload and fileName, ex: {\"callback-payload\" : , \"fileName\" : \"{Date format}_Name of the file\"}. If the fileName is MyFile then pass metadata as {\"fileName\" : \"{yyyy-MM-dd HH:mm:ss}_MyFile\"}. The valid date formats are \"yyyy-MM-dd'T'HH:mm:ssXXX\", \"yyyy-MM-dd'T'HH:mm:ss'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd HH:mm:ss\", \"yyyy.MM.dd G 'at' HH:mm:ss z\", \"h:mm a\", \"yyyyy.MMMMM.dd GGG hh:mm aaa\" and \"yyMMddHHmmssZ\". callback-payload - is passed back in bulk job notification ","in":"formData","name":"metaData","required":false,"type":"string"}],"consumes":["multipart/form-data"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/cancel":{"put":{"operationId":"replaceBulkCancel","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to cancel.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Cancel an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/errors":{"get":{"operationId":"getBulkErrors","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its errors.","in":"path","name":"id","required":true,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the errors of a bulk job.","tags":["bulk"]}},"/bulk/{id}/status":{"get":{"operationId":"getBulkStatus","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its status.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the status of a bulk job.","tags":["bulk"]}},"/bulk/{id}/{objectName}":{"get":{"operationId":"getBulkByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job","in":"path","name":"id","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"file"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the results of an asynchronous bulk query.","tags":["bulk"],"produces":["text/csv","application/json","application/jsonl"]}},"/objects":{"get":{"operationId":"getObjects","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the available objects.","tags":["objects"]}},"/objects/{objectName}/docs":{"get":{"operationId":"getObjectsObjectNameDocs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Include discovery metadata in definitions","in":"query","name":"discovery","required":false,"type":"boolean"},{"description":"Optionally resolve swagger references for an inline object definition","in":"query","name":"resolveReferences","required":false,"type":"boolean"},{"description":"Include only OpenAPI / Swagger properties in definitions","in":"query","name":"basic","required":false,"type":"boolean"},{"description":"The element swagger version to get the corresponding element swagger, Passing in \"-1\" gives latest element swagger","in":"query","name":"version","required":false,"default":"-1","type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/swaggerDocs"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get swagger docs for an object.","tags":["objects"]}},"/objects/{objectName}/metadata":{"get":{"operationId":"getObjectsObjectNameMetadata","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/objectsMetadata"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the field for an object.","tags":["objects"]}},"/ping":{"get":{"operationId":"getPing","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Pong"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Ping the Element to confirm that the Hub Element has a heartbeat. If the Element does not have a heartbeat, an error message will be returned.","tags":["ping"]}},"/users":{"post":{"summary":"Create a(n) users","operationId":"createUser","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createUsers"},"in":"body","name":"users","description":"The users object, if the $distinct_id is existing user gets updated","required":true}],"tags":["users"]},"get":{"summary":"Search for users","operationId":"getUsers","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/usersListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","type":"string","required":false},{"in":"query","name":"nextPage","description":"The next page cursor, taken from the response header: `elements-next-page-token`","type":"string","required":false}],"tags":["users"]}},"/users/{id}":{"patch":{"summary":"Update a(n) users","operationId":"updateUserById","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true},{"schema":{"$ref":"#/definitions/updateUsers"},"in":"body","name":"users","description":"The users object","required":true}],"tags":["users"]},"delete":{"summary":"Delete a(n) users","operationId":"deleteUserById","responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true}],"tags":["users"]}},"/{objectName}":{"get":{"operationId":"getByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {objectName}","tags":["objectName"]},"post":{"operationId":"createByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}":{"delete":{"operationId":"deleteObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {objectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"produces":["application/json","application/pdf"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {objectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}":{"get":{"operationId":"getObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {childObjectName}","tags":["objectName"]},"post":{"operationId":"createObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {childObjectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}/{childObjectId}":{"delete":{"operationId":"deleteObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {childObjectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {childObjectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]}}},"schemes":["https"],"definitions":{"bulkDownloadRequest":{"properties":{"apiLimit":{"format":"int32","type":"integer","x-samplevalue":100},"continueFromJobId":{"format":"int32","type":"integer","x-samplevalue":1},"docsHubDetails":{"$ref":"#/definitions/bulkDownloadRequestDocsHubDetails"},"filterDateField":{"type":"string","x-samplevalue":"lastModifiedDate"},"filterNulls":{"type":"boolean","x-samplevalue":true},"format":{"enum":["application/json","txt/csv","application/jsonl"],"type":"string","x-samplevalue":"application/json"},"from":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-06T13:22:17-08:00"},"limit":{"format":"int32","type":"integer","x-samplevalue":107},"notificationUrl":{"type":"string","x-samplevalue":"https://myreceiver.com/whatever"},"objectName":{"type":"string","x-samplevalue":"accounts"},"pageSize":{"format":"int32","type":"integer","x-samplevalue":200},"query":{"$ref":"#/definitions/bulkDownloadRequestQuery"},"selectFields":{"type":"string","x-samplevalue":"a,b,c"},"to":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-10T13:22:17-08:00"},"where":{"type":"string","x-samplevalue":"name='Alex' and gender='male'"}},"required":["objectName","format"],"title":"bulkDownloadRequest","type":"object"},"swaggerschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact-POST-Response","type":"string"}}},"swaggerdefinitions":{"x-has-customfields":false,"type":"object","title":"definitions","properties":{"definition-name":{"$ref":"#/definitions/swaggerdefinition-name"}}},"swagger415":{"x-has-customfields":false,"type":"object","title":"415","properties":{"description":{"x-samplevalue":"Unsupported media type - The server cannot handle the requested Content-Type","type":"string"}}},"BulkQuery":{"properties":{"id":{"type":"string"},"status":{"type":"string"},"instance_id":{"type":"number"}},"type":"object"},"swaggerdefinition-name":{"x-has-customfields":false,"type":"object","title":"definition-name","properties":{"properties":{"$ref":"#/definitions/swaggerproperties"}}},"swaggerparameters":{"x-has-customfields":false,"title":"parameters","properties":{"schema":{"$ref":"#/definitions/swaggerparametersschema"},"in":{"x-samplevalue":"header","type":"string"},"name":{"x-samplevalue":"Authorization","type":"string"},"description":{"x-samplevalue":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string"},"type":{"x-samplevalue":"string","type":"string"},"required":{"x-samplevalue":true,"type":"boolean"}},"type":"object"},"swaggerparametersschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact","type":"string"}}},"swaggerresponses":{"x-has-customfields":false,"type":"object","title":"responses","properties":{"200":{"$ref":"#/definitions/swagger200"},"400":{"$ref":"#/definitions/swagger400"},"401":{"$ref":"#/definitions/swagger401"},"403":{"$ref":"#/definitions/swagger403"},"404":{"$ref":"#/definitions/swagger404"},"405":{"$ref":"#/definitions/swagger405"},"406":{"$ref":"#/definitions/swagger406"},"409":{"$ref":"#/definitions/swagger409"},"415":{"$ref":"#/definitions/swagger415"},"500":{"$ref":"#/definitions/swagger500"},"502":{"$ref":"#/definitions/swagger502"}}},"swaggerproperties":{"x-has-customfields":false,"type":"object","title":"properties","properties":{"definition-property":{"$ref":"#/definitions/swaggerdefinition-property"}}},"usersListObject":{"properties":{"$distinct_id":{"type":"string"},"$properties":{"$ref":"#/definitions/$properties"}},"type":"object"},"swagger-contacts-path":{"x-has-customfields":false,"type":"object","title":"/contacts","properties":{"post":{"$ref":"#/definitions/swaggerpost"}}},"swagger200":{"x-has-customfields":false,"type":"object","title":"200","properties":{"schema":{"$ref":"#/definitions/swaggerschema"},"description":{"x-samplevalue":"OK - Everything worked as expected","type":"string"}}},"$properties":{"properties":{"$browser":{"type":"string"},"$browser_version":{"format":"int32","type":"integer"},"$campaigns":{"items":{"format":"int32","type":"integer"},"type":"array"},"$city":{"type":"string"},"$country_code":{"type":"string"},"$created":{"type":"string"},"$deliveries":{"items":{"format":"int64","type":"integer"},"type":"array"},"$email":{"type":"string"},"$initial_referrer":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$last_seen":{"type":"string"},"$os":{"type":"string"},"$region":{"type":"string"},"$timezone":{"type":"string"},"Name":{"type":"string"},"credits":{"format":"int32","type":"integer"},"gender":{"type":"string"}},"type":"object"},"createActivity":{"properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"],"type":"object"},"swagger400":{"x-has-customfields":false,"type":"object","title":"400","properties":{"description":{"x-samplevalue":"Bad Request - Often due to a missing request parameter","type":"string"}}},"swaggerinfo":{"x-has-customfields":false,"type":"object","title":"info","properties":{"contact":{"$ref":"#/definitions/swaggercontact"},"title":{"x-samplevalue":"hubspotcrm","type":"string"},"version":{"x-samplevalue":"api-v2","type":"string"}}},"swagger401":{"x-has-customfields":false,"type":"object","title":"401","properties":{"description":{"x-samplevalue":"Unauthorized - An invalid element token, user secret and/or org secret provided","type":"string"}}},"swagger500":{"x-has-customfields":false,"type":"object","title":"500","properties":{"description":{"x-samplevalue":"Server error - Something went wrong on the Cloud Elements server","type":"string"}}},"swaggerpaths":{"x-has-customfields":false,"type":"object","title":"paths","properties":{"/contacts":{"$ref":"#/definitions/swagger-contacts-path"}}},"swagger403":{"x-has-customfields":false,"type":"object","title":"403","properties":{"description":{"x-samplevalue":"Forbidden - Access to the resource by the provider is forbidden","type":"string"}}},"swagger502":{"x-has-customfields":false,"type":"object","title":"502","properties":{"description":{"x-samplevalue":"Provider server error - Something went wrong on the Provider or Endpoint's server","type":"string"}}},"BulkStatus":{"description":"Status of the bulk upload.","type":"object","properties":{"batchId":{"description":"Contact/Leads loaded","type":"number"},"message":{"type":"string"},"numOfLeadsProcessed":{"description":"Contact/Leads loaded","type":"number"},"numOfRowsFailed":{"description":"Failed count","type":"number"},"numOfRowsWithWarning":{"description":"Contact/Leads that had warnings","type":"number"},"status":{"description":"Status of the bulk job","type":"string"}}},"swagger404":{"x-has-customfields":false,"type":"object","title":"404","properties":{"description":{"x-samplevalue":"Not found - The requested resource is not found","type":"string"}}},"activitiesTopListObject":{"properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}},"type":"object"},"swagger405":{"x-has-customfields":false,"type":"object","title":"405","properties":{"description":{"x-samplevalue":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected","type":"string"}}},"BulkJobList":{"title":"BulkJobList","properties":{"record_count":{"x-samplevalue":41,"format":"int32","type":"integer"},"job_query":{"x-samplevalue":"SELECT attributes.organizationid, attributes.systemuserid, organizationid FROM users WHERE organizationid = '3b80f68d-b945-4208-9442-f55bd0e1c5b2'","type":"string"},"job_reset_attempt":{"x-samplevalue":0,"format":"int32","type":"integer"},"completion_time":{"x-samplevalue":1542829827804,"format":"int64","type":"integer"},"status":{"x-samplevalue":"COMPLETED","type":"string"},"notification_url":{"type":"string"},"job_direction":{"x-samplevalue":"DOWNLOAD","type":"string"},"error_count":{"x-samplevalue":0,"format":"int32","type":"integer"},"job_state":{"type":"string"},"createdDate":{"x-samplevalue":1542829826619,"format":"int64","type":"integer"},"id":{"x-samplevalue":1722,"format":"int32","type":"integer"},"instanceId":{"x-samplevalue":123453,"format":"int32","type":"integer"},"object_name":{"x-samplevalue":"systemuser","type":"string"},"fileFormat":{"x-samplevalue":"csv","type":"string"}},"type":"object"},"objectsMetadataFields":{"properties":{"mask":{"type":"string"},"type":{"type":"string"},"vendorDisplayName":{"type":"string"},"vendorPath":{"type":"string"},"vendorReadOnly":{"type":"boolean"},"vendorRequired":{"type":"boolean"}},"type":"object"},"createUsers":{"properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"],"x-primary-key":["$distinct_id"],"type":"object"},"$set":{"properties":{"Address":{"type":"string"}},"type":"object"},"bulkDownloadRequestDocsHubDetails":{"properties":{"instanceId":{"type":"string","x-samplevalue":"1234"},"path":{"type":"string","x-samplevalue":"/myfolder/in/googledrive/myfilename.extention"}},"title":"docsHubDetails","type":"object"},"swaggerDocs":{"x-has-customfields":false,"title":"swaggerDocs","properties":{"basePath":{"x-samplevalue":"/elements/api-v2/hubs/crm","type":"string"},"paths":{"$ref":"#/definitions/swaggerpaths"},"host":{"x-samplevalue":"localhost:5050","type":"string"},"schemes":{"x-samplevalue":["http"],"type":"array","items":{"type":"string"}},"definitions":{"$ref":"#/definitions/swaggerdefinitions"},"swagger":{"x-samplevalue":"2.0","type":"string"},"info":{"$ref":"#/definitions/swaggerinfo"},"tags":{"type":"array","items":{"$ref":"#/definitions/swaggertags"}}},"type":"object"},"users":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggercontact":{"x-has-customfields":false,"type":"object","title":"contact","properties":{"email":{"x-samplevalue":"support@cloud-elements.com","type":"string"}}},"bulkDownloadRequestQuery":{"properties":{"anyKey":{"type":"string","x-samplevalue":"anyValue"}},"title":"query","type":"object"},"activities":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggerpost":{"x-has-customfields":false,"type":"object","title":"post","properties":{"summary":{"x-samplevalue":"Create a new contact in the CRM service. Contact creation will flow through Cloud Elements to your CRM service. With the exception of the 'id' field, the required fields indicated in the 'Contact' model are those required to create a new contact.","type":"string"},"operationId":{"x-samplevalue":"createContact","type":"string"},"responses":{"$ref":"#/definitions/swaggerresponses"},"parameters":{"type":"array","items":{"$ref":"#/definitions/swaggerparameters"}},"tags":{"x-samplevalue":["contacts"],"type":"array","items":{"type":"string"}}}},"swagger406":{"x-has-customfields":false,"type":"object","title":"406","properties":{"description":{"x-samplevalue":"Not acceptable - The response content type does not match the 'Accept' header value","type":"string"}}},"swaggerdefinition-property":{"x-has-customfields":false,"type":"object","title":"#/definitions/definition-property","properties":{"type":{"x-samplevalue":"string","type":"string"}}},"Object":{"description":"Fields for the object. There will be fields associated with an Object, which are not all described here.","properties":{"objectField":{"type":"string"}},"type":"object"},"updateUsers":{"properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"],"x-primary-key":["$distinct_id"],"type":"object"},"swagger409":{"x-has-customfields":false,"type":"object","title":"409","properties":{"description":{"x-samplevalue":"Conflict - If a resource being created already exists","type":"string"}}},"objectsMetadata":{"properties":{"fields":{"items":{"$ref":"#/definitions/objectsMetadataFields"},"type":"array"}},"type":"object"},"swaggertags":{"x-has-customfields":false,"title":"tags","properties":{"name":{"x-samplevalue":"contacts","type":"string"}},"type":"object"},"properties":{"properties":{"Referred By":{"type":"string"},"distinct_id":{"type":"string"}},"type":"object"},"Pong":{"properties":{"dateTime":{"format":"date-time","type":"string"},"endpoint":{"type":"string"},"valid":{"type":"boolean"}},"type":"object"}},"swagger":"2.0","info":{"x-element-name":"Mixpanel","x-element-hub":"general","x-element-key":"mixpanel-clone","contact":{"email":"support@cloud-elements.com"},"title":"mixpanel-clone","x-element-id":52738,"version":"api-v2"},"tags":[{"name":"activities"},{"name":"ping"},{"name":"objects"},{"name":"objectName"},{"name":"bulk"},{"name":"users"}]} \ No newline at end of file +{"basePath":"/elements/api-v2","paths":{"/activities":{"post":{"summary":"Create a(n) activities","operationId":"createActivity","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/activities"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createActivity"},"in":"body","name":"activities","description":"The activities object","required":true}],"tags":["activities"]}},"/activities/top":{"get":{"summary":"Search for activities","operationId":"getActivitiesTop","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/activitiesTopListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: type='general' Valid values for type are \"general\", \"unique\", or \"average\"","type":"string","required":true},{"in":"query","name":"limit","description":"The number of resources to return in a given page","type":"string","required":false}],"tags":["activities"]}},"/bulk/download":{"post":{"summary":"Create a new bulk download job (asynchronous)","operationId":"createBulkDownload","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/bulkDownloadRequest"},"in":"body","name":"body","description":"The object body","required":true}],"tags":["bulk"]}},"/bulk/jobs":{"get":{"operationId":"getBulkJobs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The CEQL search expression, or the where clause, without the WHERE keyword, in a typical SQL query. For example to get all upload jobs the expression would be where=job_direction='UPLOAD'. The following fields are valid search fields 'object_name', 'job_status', 'job_direction', 'record_count'","in":"query","name":"where","required":false,"type":"string"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkJobList"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Fetch all the bulk jobs for an instance","tags":["bulk"]}},"/bulk/query":{"post":{"operationId":"createBulkQuery","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The Url to send the notification to when the Job is completed","in":"header","name":"Elements-Async-Callback-Url","required":false,"type":"string"},{"description":"The CEQL query. When this parameter is omitted, all objects of the given type are returned via the bulk job. Endpoint limiters may still apply.","in":"query","name":"q","required":false,"type":"string"},{"description":"The last time this query was run. This is optional. You can also have this parameter in the query and leave this blank - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"lastRunDate","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"from","required":false,"type":"string"},{"description":"The created/updated date of the object to filter on - optional eg. '2014-10-06T13:22:17-08:00'","in":"query","name":"to","required":false,"type":"string"},{"description":"Optional JSON MetaData that contains callback-payload and fileName, ex: {\"callback-payload\" : , \"fileName\" : \"{Date format}_Name of the file\"}. If the fileName is MyFile then pass metadata as {\"fileName\" : \"{yyyy-MM-dd HH:mm:ss}_MyFile\"}. The valid date formats are \"yyyy-MM-dd'T'HH:mm:ssXXX\", \"yyyy-MM-dd'T'HH:mm:ss'Z'\", \"yyyy-MM-dd'T'HH:mm:ss.SXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSXXX\", \"yyyy-MM-dd'T'HH:mm:ss.SSSZ\", \"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", \"yyyy-MM-dd HH:mm:ss\", \"yyyy.MM.dd G 'at' HH:mm:ss z\", \"h:mm a\", \"yyyyy.MMMMM.dd GGG hh:mm aaa\" and \"yyMMddHHmmssZ\". callback-payload - is passed back in bulk job notification ","in":"formData","name":"metaData","required":false,"type":"string"}],"consumes":["multipart/form-data"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkQuery"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/cancel":{"put":{"operationId":"replaceBulkCancel","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to cancel.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Cancel an asynchronous bulk query job.","tags":["bulk"]}},"/bulk/{id}/errors":{"get":{"operationId":"getBulkErrors","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its errors.","in":"path","name":"id","required":true,"type":"string"},{"description":"The page size for pagination, which defaults to 200 if not supplied","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the errors of a bulk job.","tags":["bulk"]}},"/bulk/{id}/status":{"get":{"operationId":"getBulkStatus","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job to retrieve its status.","in":"path","name":"id","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/BulkStatus"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the status of a bulk job.","tags":["bulk"]}},"/bulk/{id}/{objectName}":{"get":{"operationId":"getBulkByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The ID of the bulk job","in":"path","name":"id","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"file"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve the results of an asynchronous bulk query.","tags":["bulk"],"produces":["text/csv","application/json","application/jsonl"]}},"/objects":{"get":{"operationId":"getObjects","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"type":"string"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the available objects.","tags":["objects"]}},"/objects/{objectName}/docs":{"get":{"operationId":"getObjectsObjectNameDocs","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Include discovery metadata in definitions","in":"query","name":"discovery","required":false,"type":"boolean"},{"description":"Optionally resolve swagger references for an inline object definition","in":"query","name":"resolveReferences","required":false,"type":"boolean"},{"description":"Include only OpenAPI / Swagger properties in definitions","in":"query","name":"basic","required":false,"type":"boolean"},{"description":"The element swagger version to get the corresponding element swagger, Passing in \"-1\" gives latest element swagger","in":"query","name":"version","required":false,"default":"-1","type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/swaggerDocs"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get swagger docs for an object.","tags":["objects"]}},"/objects/{objectName}/metadata":{"get":{"operationId":"getObjectsObjectNameMetadata","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"Elements Version to be used for getting metadata, possible options are Hydrogen, Helium. Default value is Hydrogen","in":"header","name":"Elements-Version","required":false,"type":"string","enum":["Hydrogen","Helium"]}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/objectsMetadata"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Get a list of all the field for an object.","tags":["objects"]}},"/ping":{"get":{"operationId":"getPing","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Pong"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Ping the Element to confirm that the Hub Element has a heartbeat. If the Element does not have a heartbeat, an error message will be returned.","tags":["ping"]}},"/users":{"post":{"summary":"Create a(n) users","operationId":"createUser","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"schema":{"$ref":"#/definitions/createUsers"},"in":"body","name":"users","description":"The users object, if the $distinct_id is existing user gets updated","required":true}],"tags":["users"]},"get":{"summary":"Search for users","operationId":"getUsers","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"type":"array","items":{"$ref":"#/definitions/usersListObject"}}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"query","name":"where","description":"The CEQL search expression. ex: \"$city\" = 'Denver' or the expression itself as query = '(properties[\"$created\"] > \"2011-03-15T09:53:54\")'","type":"string","required":false},{"in":"query","name":"nextPage","description":"The next page cursor, taken from the response header: `elements-next-page-token`","type":"string","required":false}],"tags":["users"]}},"/users/{id}":{"patch":{"summary":"Update a(n) users","operationId":"updateUserById","responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/users"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true},{"schema":{"$ref":"#/definitions/updateUsers"},"in":"body","name":"users","description":"The users object","required":true}],"tags":["users"]},"delete":{"summary":"Delete a(n) users","operationId":"deleteUserById","responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"},"404":{"description":"Not found - The requested resource is not found"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"}},"parameters":[{"in":"header","name":"Authorization","description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string","required":true},{"in":"path","name":"id","description":"The users ID","type":"string","required":true}],"tags":["users"]}},"/{objectName}":{"get":{"operationId":"getByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {objectName}","tags":["objectName"]},"post":{"operationId":"createByObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}":{"delete":{"operationId":"deleteObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {objectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"}],"produces":["application/json","application/pdf"],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {objectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the 'Accept' header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}":{"get":{"operationId":"getObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The CEQL search expression.","in":"query","name":"where","required":false,"type":"string"},{"description":"The page size. Defaults to 200 if not provided. Maximum of 5000.","format":"int64","in":"query","name":"pageSize","required":false,"type":"integer"},{"description":"The next page cursor, taken from the response header: `elements-next-page-token`","in":"query","name":"nextPage","required":false,"type":"string"},{"description":"The fields to return on the response. Can be a single field or a comma-separated list of fields","in":"query","name":"fields","required":false,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"items":{"$ref":"#/definitions/Object"},"type":"array"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Search for {childObjectName}","tags":["objectName"]},"post":{"operationId":"createObjectNameByChildObjectName","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {childObjectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Create an {objectName}","tags":["objectName"]}},"/{objectName}/{objectId}/{childObjectName}/{childObjectId}":{"delete":{"operationId":"deleteObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected"},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Delete an {childObjectName}","tags":["objectName"]},"get":{"operationId":"getObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Retrieve an {childObjectName}","tags":["objectName"]},"patch":{"operationId":"updateObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]},"put":{"operationId":"replaceObjectNameByChildObjectId","parameters":[{"description":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","in":"header","name":"Authorization","required":true,"type":"string"},{"description":"The name of the object","in":"path","name":"objectName","required":true,"type":"string"},{"description":"The name of the childObjectName","in":"path","name":"childObjectName","required":true,"type":"string"},{"description":"The {objectName} ID","in":"path","name":"objectId","required":true,"type":"string"},{"description":"The {childObjectName} ID","in":"path","name":"childObjectId","required":true,"type":"string"},{"description":"The {objectName}","in":"body","name":"Body","required":true,"schema":{"$ref":"#/definitions/Object"}}],"responses":{"200":{"description":"OK - Everything worked as expected","schema":{"$ref":"#/definitions/Object"}},"400":{"description":"Bad Request - Often due to a missing request parameter"},"401":{"description":"Unauthorized - An invalid element token, user secret and/or org secret provided"},"403":{"description":"Forbidden - Access to the resource by the provider is forbidden"},"404":{"description":"Not found - The requested resource is not found"},"405":{"description":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected"},"406":{"description":"Not acceptable - The response content type does not match the "Accept" header value"},"409":{"description":"Conflict - If a resource being created already exists"},"415":{"description":"Unsupported media type - The server cannot handle the requested Content-Type"},"500":{"description":"Server error - Something went wrong on the Cloud Elements server"},"502":{"description":"Provider server error - Something went wrong on the Provider or Endpoint's server"}},"summary":"Update an {childObjectName}","tags":["objectName"]}}},"schemes":["https"],"definitions":{"bulkDownloadRequest":{"properties":{"apiLimit":{"format":"int32","type":"integer","x-samplevalue":100},"continueFromJobId":{"format":"int32","type":"integer","x-samplevalue":1},"docsHubDetails":{"$ref":"#/definitions/bulkDownloadRequestDocsHubDetails"},"filterDateField":{"type":"string","x-samplevalue":"lastModifiedDate"},"filterNulls":{"type":"boolean","x-samplevalue":true},"format":{"enum":["application/json","txt/csv","application/jsonl"],"type":"string","x-samplevalue":"application/json"},"from":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-06T13:22:17-08:00"},"limit":{"format":"int32","type":"integer","x-samplevalue":107},"notificationUrl":{"type":"string","x-samplevalue":"https://myreceiver.com/whatever"},"objectName":{"type":"string","x-samplevalue":"accounts"},"pageSize":{"format":"int32","type":"integer","x-samplevalue":200},"query":{"$ref":"#/definitions/bulkDownloadRequestQuery"},"selectFields":{"type":"string","x-samplevalue":"a,b,c"},"to":{"format":"date-time","type":"string","x-mask":"yyyy-MM-dd'T'HH:mm:ssZ","x-samplevalue":"2014-10-10T13:22:17-08:00"},"where":{"type":"string","x-samplevalue":"name='Alex' and gender='male'"}},"required":["objectName","format"],"title":"bulkDownloadRequest","type":"object"},"swaggerschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact-POST-Response","type":"string"}}},"swaggerdefinitions":{"x-has-customfields":false,"type":"object","title":"definitions","properties":{"definition-name":{"$ref":"#/definitions/swaggerdefinition-name"}}},"swagger415":{"x-has-customfields":false,"type":"object","title":"415","properties":{"description":{"x-samplevalue":"Unsupported media type - The server cannot handle the requested Content-Type","type":"string"}}},"BulkQuery":{"properties":{"id":{"type":"string"},"status":{"type":"string"},"instance_id":{"type":"number"}},"type":"object"},"swaggerdefinition-name":{"x-has-customfields":false,"type":"object","title":"definition-name","properties":{"properties":{"$ref":"#/definitions/swaggerproperties"}}},"swaggerparameters":{"x-has-customfields":false,"title":"parameters","properties":{"schema":{"$ref":"#/definitions/swaggerparametersschema"},"in":{"x-samplevalue":"header","type":"string"},"name":{"x-samplevalue":"Authorization","type":"string"},"description":{"x-samplevalue":"The authorization tokens. The format for the header value is 'Element <token>, User <user secret>'","type":"string"},"type":{"x-samplevalue":"string","type":"string"},"required":{"x-samplevalue":true,"type":"boolean"}},"type":"object"},"swaggerparametersschema":{"x-has-customfields":false,"type":"object","title":"schema","properties":{"$ref":{"x-samplevalue":"#/definitions/Contact","type":"string"}}},"swaggerresponses":{"x-has-customfields":false,"type":"object","title":"responses","properties":{"200":{"$ref":"#/definitions/swagger200"},"400":{"$ref":"#/definitions/swagger400"},"401":{"$ref":"#/definitions/swagger401"},"403":{"$ref":"#/definitions/swagger403"},"404":{"$ref":"#/definitions/swagger404"},"405":{"$ref":"#/definitions/swagger405"},"406":{"$ref":"#/definitions/swagger406"},"409":{"$ref":"#/definitions/swagger409"},"415":{"$ref":"#/definitions/swagger415"},"500":{"$ref":"#/definitions/swagger500"},"502":{"$ref":"#/definitions/swagger502"}}},"swaggerproperties":{"x-has-customfields":false,"type":"object","title":"properties","properties":{"definition-property":{"$ref":"#/definitions/swaggerdefinition-property"}}},"usersListObject":{"properties":{"$distinct_id":{"type":"string"},"$properties":{"$ref":"#/definitions/$properties"}},"type":"object"},"swagger-contacts-path":{"x-has-customfields":false,"type":"object","title":"/contacts","properties":{"post":{"$ref":"#/definitions/swaggerpost"}}},"swagger200":{"x-has-customfields":false,"type":"object","title":"200","properties":{"schema":{"$ref":"#/definitions/swaggerschema"},"description":{"x-samplevalue":"OK - Everything worked as expected","type":"string"}}},"$properties":{"properties":{"$browser":{"type":"string"},"$browser_version":{"format":"int32","type":"integer"},"$campaigns":{"items":{"format":"int32","type":"integer"},"type":"array"},"$city":{"type":"string"},"$country_code":{"type":"string"},"$created":{"type":"string"},"$deliveries":{"items":{"format":"int64","type":"integer"},"type":"array"},"$email":{"type":"string"},"$initial_referrer":{"type":"string"},"$initial_referring_domain":{"type":"string"},"$last_login":{"type":"string"},"$last_seen":{"type":"string"},"$os":{"type":"string"},"$region":{"type":"string"},"$timezone":{"type":"string"},"Name":{"type":"string"},"credits":{"format":"int32","type":"integer"},"gender":{"type":"string"}},"type":"object"},"createActivity":{"properties":{"event":{"type":"string"},"properties":{"$ref":"#/definitions/properties"}},"required":["event","properties"],"type":"object"},"swagger400":{"x-has-customfields":false,"type":"object","title":"400","properties":{"description":{"x-samplevalue":"Bad Request - Often due to a missing request parameter","type":"string"}}},"swaggerinfo":{"x-has-customfields":false,"type":"object","title":"info","properties":{"contact":{"$ref":"#/definitions/swaggercontact"},"title":{"x-samplevalue":"hubspotcrm","type":"string"},"version":{"x-samplevalue":"api-v2","type":"string"}}},"swagger401":{"x-has-customfields":false,"type":"object","title":"401","properties":{"description":{"x-samplevalue":"Unauthorized - An invalid element token, user secret and/or org secret provided","type":"string"}}},"swagger500":{"x-has-customfields":false,"type":"object","title":"500","properties":{"description":{"x-samplevalue":"Server error - Something went wrong on the Cloud Elements server","type":"string"}}},"swaggerpaths":{"x-has-customfields":false,"type":"object","title":"paths","properties":{"/contacts":{"$ref":"#/definitions/swagger-contacts-path"}}},"swagger403":{"x-has-customfields":false,"type":"object","title":"403","properties":{"description":{"x-samplevalue":"Forbidden - Access to the resource by the provider is forbidden","type":"string"}}},"swagger502":{"x-has-customfields":false,"type":"object","title":"502","properties":{"description":{"x-samplevalue":"Provider server error - Something went wrong on the Provider or Endpoint's server","type":"string"}}},"BulkStatus":{"description":"Status of the bulk upload.","type":"object","properties":{"batchId":{"description":"Contact/Leads loaded","type":"number"},"message":{"type":"string"},"numOfLeadsProcessed":{"description":"Contact/Leads loaded","type":"number"},"numOfRowsFailed":{"description":"Failed count","type":"number"},"numOfRowsWithWarning":{"description":"Contact/Leads that had warnings","type":"number"},"status":{"description":"Status of the bulk job","type":"string"}}},"swagger404":{"x-has-customfields":false,"type":"object","title":"404","properties":{"description":{"x-samplevalue":"Not found - The requested resource is not found","type":"string"}}},"activitiesTopListObject":{"properties":{"amount":{"format":"int32","type":"integer"},"event":{"type":"string"},"percent_change":{"format":"double","type":"number"}},"type":"object"},"swagger405":{"x-has-customfields":false,"type":"object","title":"405","properties":{"description":{"x-samplevalue":"Method not allowed - Incorrect HTTP verb used, e.g., GET used when POST expected","type":"string"}}},"BulkJobList":{"title":"BulkJobList","properties":{"record_count":{"x-samplevalue":41,"format":"int32","type":"integer"},"job_query":{"x-samplevalue":"SELECT attributes.organizationid, attributes.systemuserid, organizationid FROM users WHERE organizationid = '3b80f68d-b945-4208-9442-f55bd0e1c5b2'","type":"string"},"job_reset_attempt":{"x-samplevalue":0,"format":"int32","type":"integer"},"completion_time":{"x-samplevalue":1542829827804,"format":"int64","type":"integer"},"status":{"x-samplevalue":"COMPLETED","type":"string"},"notification_url":{"type":"string"},"job_direction":{"x-samplevalue":"DOWNLOAD","type":"string"},"error_count":{"x-samplevalue":0,"format":"int32","type":"integer"},"job_state":{"type":"string"},"createdDate":{"x-samplevalue":1542829826619,"format":"int64","type":"integer"},"id":{"x-samplevalue":1722,"format":"int32","type":"integer"},"instanceId":{"x-samplevalue":123453,"format":"int32","type":"integer"},"object_name":{"x-samplevalue":"systemuser","type":"string"},"fileFormat":{"x-samplevalue":"csv","type":"string"}},"type":"object"},"objectsMetadataFields":{"properties":{"mask":{"type":"string"},"type":{"type":"string"},"vendorDisplayName":{"type":"string"},"vendorPath":{"type":"string"},"vendorReadOnly":{"type":"boolean"},"vendorRequired":{"type":"boolean"}},"type":"object"},"createUsers":{"properties":{"$distinct_id":{"type":"string"},"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$distinct_id","$set"],"x-primary-key":["$distinct_id"],"type":"object"},"$set":{"properties":{"Address":{"type":"string"}},"type":"object"},"bulkDownloadRequestDocsHubDetails":{"properties":{"instanceId":{"type":"string","x-samplevalue":"1234"},"path":{"type":"string","x-samplevalue":"/myfolder/in/googledrive/myfilename.extention"}},"title":"docsHubDetails","type":"object"},"swaggerDocs":{"x-has-customfields":false,"title":"swaggerDocs","properties":{"basePath":{"x-samplevalue":"/elements/api-v2/hubs/crm","type":"string"},"paths":{"$ref":"#/definitions/swaggerpaths"},"host":{"x-samplevalue":"localhost:5050","type":"string"},"schemes":{"x-samplevalue":["http"],"type":"array","items":{"type":"string"}},"definitions":{"$ref":"#/definitions/swaggerdefinitions"},"swagger":{"x-samplevalue":"2.0","type":"string"},"info":{"$ref":"#/definitions/swaggerinfo"},"tags":{"type":"array","items":{"$ref":"#/definitions/swaggertags"}}},"type":"object"},"users":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggercontact":{"x-has-customfields":false,"type":"object","title":"contact","properties":{"email":{"x-samplevalue":"support@cloud-elements.com","type":"string"}}},"bulkDownloadRequestQuery":{"properties":{"anyKey":{"type":"string","x-samplevalue":"anyValue"}},"title":"query","type":"object"},"activities":{"properties":{"success":{"type":"boolean"}},"type":"object"},"swaggerpost":{"x-has-customfields":false,"type":"object","title":"post","properties":{"summary":{"x-samplevalue":"Create a new contact in the CRM service. Contact creation will flow through Cloud Elements to your CRM service. With the exception of the 'id' field, the required fields indicated in the 'Contact' model are those required to create a new contact.","type":"string"},"operationId":{"x-samplevalue":"createContact","type":"string"},"responses":{"$ref":"#/definitions/swaggerresponses"},"parameters":{"type":"array","items":{"$ref":"#/definitions/swaggerparameters"}},"tags":{"x-samplevalue":["contacts"],"type":"array","items":{"type":"string"}}}},"swagger406":{"x-has-customfields":false,"type":"object","title":"406","properties":{"description":{"x-samplevalue":"Not acceptable - The response content type does not match the 'Accept' header value","type":"string"}}},"swaggerdefinition-property":{"x-has-customfields":false,"type":"object","title":"#/definitions/definition-property","properties":{"type":{"x-samplevalue":"string","type":"string"}}},"Object":{"description":"Fields for the object. There will be fields associated with an Object, which are not all described here.","properties":{"objectField":{"type":"string"}},"type":"object"},"updateUsers":{"properties":{"$ip":{"type":"string"},"$set":{"$ref":"#/definitions/$set"}},"required":["$set"],"x-primary-key":["$distinct_id"],"type":"object"},"swagger409":{"x-has-customfields":false,"type":"object","title":"409","properties":{"description":{"x-samplevalue":"Conflict - If a resource being created already exists","type":"string"}}},"objectsMetadata":{"properties":{"fields":{"items":{"$ref":"#/definitions/objectsMetadataFields"},"type":"array"}},"type":"object"},"swaggertags":{"x-has-customfields":false,"title":"tags","properties":{"name":{"x-samplevalue":"contacts","type":"string"}},"type":"object"},"properties":{"properties":{"Referred By":{"type":"string"},"distinct_id":{"type":"string"}},"type":"object"},"Pong":{"properties":{"dateTime":{"format":"date-time","type":"string"},"endpoint":{"type":"string"},"valid":{"type":"boolean"}},"type":"object"}},"swagger":"2.0","info":{"x-element-name":"Mixpanel","x-element-hub":"general","x-element-key":"mixpanel","contact":{"email":"support@cloud-elements.com"},"title":"mixpanel","x-element-id":52738,"version":"api-v2"},"tags":[{"name":"activities"},{"name":"ping"},{"name":"objects"},{"name":"objectName"},{"name":"bulk"},{"name":"users"}]}