{"_id":"5765839a49ea760e0059b969","version":{"_id":"56cacb1cc675f50b00a4b61c","project":"56cacb1bc675f50b00a4b619","__v":14,"createdAt":"2016-02-22T08:47:24.528Z","releaseDate":"2016-02-22T08:47:24.528Z","categories":["56cacb1dc675f50b00a4b61d","56cc10aaca43550b0028125a","56cc10b7b4cbcf0b004a5df9","56cc1bb2272aa4130002ccd2","56cc5834b4cbcf0b004a5f8b","56cda18bface161300dae13b","56d51f2873dcd20b00fb87bb","56fbe0610023171700b96105","57658310c176520e00ea9076","5772bdd48c48e00e00503638","577c1dfe87acf617003c3fcd","579525172979790e00771a15","582b4661cdfdc125000c8684","586365cedfe6cc3700a7be63"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1"},"category":{"_id":"57658310c176520e00ea9076","project":"56cacb1bc675f50b00a4b619","__v":0,"version":"56cacb1cc675f50b00a4b61c","sync":{"url":"","isSync":false},"reference":true,"createdAt":"2016-06-18T17:21:20.126Z","from_sync":false,"order":11,"slug":"datasync-rest-api","title":"DataSync REST API"},"user":"56caca84245b841300806def","project":"56cacb1bc675f50b00a4b619","__v":0,"editedParams":true,"parentDoc":null,"editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-18T17:23:38.913Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"","language":"text"}]},"method":"post","results":{"codes":[]},"settings":"","auth":"required","params":[{"_id":"5765839a49ea760e0059b96b","ref":"","in":"body","required":true,"desc":"Customer ID","default":"","type":"string","name":"customer_id"},{"_id":"5765839a49ea760e0059b96a","ref":"","in":"body","required":true,"desc":"Data in JSON format","default":"","type":"string","name":"meta"}],"url":"/v:version/services/data/user"},"isReference":true,"order":0,"body":"Sync data about your users to get rich Analytics & to setup marketing automation from Codemojo Dashboard.\n\nThe meta data should be in JSON format which can include the following\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Key\",\n    \"h-1\": \"Value\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"name\",\n    \"0-1\": \"Name of the customer\",\n    \"1-0\": \"email\",\n    \"1-1\": \"Email of the customer\",\n    \"2-0\": \"phone\",\n    \"2-1\": \"Phone number of the customer\",\n    \"3-0\": \"gender\",\n    \"3-1\": \"Gender of the customer\",\n    \"4-0\": \"apn\",\n    \"4-1\": \"Apple Push notification ID for the device\",\n    \"5-0\": \"gcm\",\n    \"5-1\": \"Android Push notification ID for the device\",\n    \"6-0\": \"wpn\",\n    \"6-1\": \"Windows Push notification ID for the device\"\n  },\n  \"cols\": 2,\n  \"rows\": 7\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"name\\\": \\\"John Doe\\\",\\n  \\\"email\\\": \\\"john.doe:::at:::gmail.com\\\",\\n  \\\"gender\\\": \\\"Male\\\",\\n  \\\"phone\\\": \\\"+1939594939\\\",\\n  \\\"apn\\\": \\\"aklsadHJKASHjkhdkajshdasS__2dasdasd\\\",\\n  \\\"gcm\\\": \\\"aklsadHJKASHjkhdkajshdasS__2dasdasd\\\",\\n  \\\"wpn\\\": \\\"aklsadHJKASHjkhdkajshdasS__2dasdasd\\\"\\n}\",\n      \"language\": \"json\",\n      \"name\": \"Sample JSON Content\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"user-datasync","type":"endpoint","title":"User DataSync"}

postUser DataSync


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

customer_id:
required
string
Customer ID
meta:
required
string
Data in JSON format

Documentation

Sync data about your users to get rich Analytics & to setup marketing automation from Codemojo Dashboard. The meta data should be in JSON format which can include the following [block:parameters] { "data": { "h-0": "Key", "h-1": "Value", "h-2": "Description", "0-0": "name", "0-1": "Name of the customer", "1-0": "email", "1-1": "Email of the customer", "2-0": "phone", "2-1": "Phone number of the customer", "3-0": "gender", "3-1": "Gender of the customer", "4-0": "apn", "4-1": "Apple Push notification ID for the device", "5-0": "gcm", "5-1": "Android Push notification ID for the device", "6-0": "wpn", "6-1": "Windows Push notification ID for the device" }, "cols": 2, "rows": 7 } [/block] [block:code] { "codes": [ { "code": "{\n \"name\": \"John Doe\",\n \"email\": \"john.doe@gmail.com\",\n \"gender\": \"Male\",\n \"phone\": \"+1939594939\",\n \"apn\": \"aklsadHJKASHjkhdkajshdasS__2dasdasd\",\n \"gcm\": \"aklsadHJKASHjkhdkajshdasS__2dasdasd\",\n \"wpn\": \"aklsadHJKASHjkhdkajshdasS__2dasdasd\"\n}", "language": "json", "name": "Sample JSON Content" } ] } [/block]

User Information

Try It Out

post
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}