Last active
May 31, 2017 22:44
-
-
Save gsemino/85ca16e36fd1ef59ee8eed6e9df69737 to your computer and use it in GitHub Desktop.
Userdata creation examples for SYNQ's Create and Update API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//if using the Create API, to create an array of cars put this into 'userdata' field | |
{"cars": [{"make":"mercedes","year":2013, "models":["c","cls"]}]} | |
//if using the Update API, to create an array of cars put this in the 'source' field | |
video.userdata = {"cars": [{"make":"mercedes","year":2013, "models":["c","cls"]}]} | |
//sample body response from Update or Create API: | |
{ | |
"state": "created", | |
"userdata": { | |
"cars": [ | |
{ | |
"make": "mercedes", | |
"year": 2013, | |
"models": [ | |
"c", | |
"cls" | |
] | |
} | |
] | |
}, | |
"video_id": "9af7df3099104e9c952dff1234567891", | |
"created_at": "2017-05-09T17:45:21.445Z", | |
"updated_at": "2017-05-09T18:06:54.127Z" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment