Ask a Question

Assign Review Pool JSON API

katieh
New Contributor

Assign Review Pool JSON API

Hello,

 

I'm trying to use the JSON API to assign a review pool to a role in a review

 

here is my call:

{"command": "ReviewService.assignReviewPool",

"args" : {

    "reviewId" : "123"

    "assignment" : {

        "poolGuid" : "123456abcdef"

        "role" : "REVIEWER"

    }

}}

 

And this is the response it returns:

 

{"errors": [{"code": "ReviewPoolNotFound", "message": "No review pool assignments with Group guid "123456abcdef" and Role REVIEWER were found in Review 123, or the given user does not have the right group membership to get that assignment"}]}

 

I've double checked the group guid and the role, both seem to be correct. I'm also pretty sure I should have the correct permissions to execute this, I am able to assign the group to the role from within the GUI

 

Is there something wrong with how I am making this call? 

 

Thanks!

2 REPLIES 2
katieh
New Contributor

Re: Assign Review Pool JSON API

I think I figured it out, the assignReviewPool function does not work but updateAssignments with poolGuid did

Chanelle
Occasional Visitor

Re: Assign Review Pool JSON API

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread.

cancel
Showing results for 
Search instead for 
Did you mean: