Skip to content

Instantly share code, notes, and snippets.

@gsemino
Last active May 31, 2017 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsemino/85ca16e36fd1ef59ee8eed6e9df69737 to your computer and use it in GitHub Desktop.
Save gsemino/85ca16e36fd1ef59ee8eed6e9df69737 to your computer and use it in GitHub Desktop.
Userdata creation examples for SYNQ's Create and Update API
//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