API: How to call "removeRevisionFromReview"

 I've been able to use other RPC calls from the api, but this one seems to lack a bit of documentation.

I tried

{"projectId":"ExampleProject","reviewId":"CR-15","revisionId":"0d60fbcba8405d63821cec5a31e8002d3cbbcaf5"}

and

{"projectId":"ExampleProject","reviewId":"CR-15","revisionId":["0d60fbcba8405d63821cec5a31e8002d3cbbcaf5"]}

 

Both results in error code 100: Cannot deserialize params.

The documentation states the "revisionId" should be "repeated". What exactly does that mean?

 

2 comments

Try the following one:

{

"reviewId":{"projectId":"ExampleProject","reviewId":"CR-15" },

"revisionId":["0d60fbcba8405d63821cec5a31e8002d3cbbcaf5"]
}

1

Genius. That was my mistake. Thanks!

0

Please sign in to leave a comment.