EJ256
4 years agoOccasional Contributor
JSON API not working to update reviewers
Working off the following example, I am getting "Unexpected character (':' (code 58)): was expecting comma to separate Array entries" and it is giving me the reference to the colon character after th...
- 4 years ago
"reviewID" needs to be declared before assignment. SmartBear, you probably want to update your documentation. I lost about four hours on this. Corrected example below.
[
{"command" : "SessionService.authenticate",
"args":{"login":"jsmith","ticket":"0123456789abcdef0123456789abcdef"}},
{"command" : "ReviewService.updateAssignments",
"args":{
"reviewId":"10463",
"assignments": [
{"user":"jsmith", "role":"AUTHOR"},
{"user":"mike", "role":"REVIEWER"},
{"poolGuid":"1234567890", "role":"OBSERVER"}
]}
}
]