Last active
May 31, 2017 23:01
-
-
Save gsemino/655a8ac3fcaf27f6d4933547c853f970 to your computer and use it in GitHub Desktop.
SYNQ userdata Update API sample calls
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
//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