Skip to content

Instantly share code, notes, and snippets.

@gsemino
Last active May 31, 2017 23:01
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/655a8ac3fcaf27f6d4933547c853f970 to your computer and use it in GitHub Desktop.
Save gsemino/655a8ac3fcaf27f6d4933547c853f970 to your computer and use it in GitHub Desktop.
SYNQ userdata Update API sample calls
//this call will modify year from above to be 2017
video.userdata.cars[0]["year"]=2017
//this call will add the model 'slk' to the above sample
video.userdata.cars[0]["models"].push("slk")
//sample body response from Update API after above calls
{
"state": "created",
"userdata": {
"cars": [
{
"make": "mercedes",
"year": 2017,
"models": [
"c",
"cls"
"slk"
]
}
]
},
"video_id": "9af7df3099104e9c952dff1234567891",
"created_at": "2017-05-09T17:45:21.445Z",
"updated_at": "2017-05-09T18:41:38.934Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment