Forum Discussion
Hello,
Thanks for contacting us.
You can use the following API call to set the participant custom field value for the user:
[{"command":"SessionService.authenticate","args":{"login":"reviewer","ticket":"731ec82736efff4ba6ef5aeb123ea60f"}},{"command":"ReviewService.editReview","args":{"participantCustomFields":[{"name":"Discipline","value":["Management"]}],"reviewId":18}}].
In this example, I'm setting the Discipline participant custom field to Management for the user whose login name is reviewer in review 18.
Note, that you need to be logged in under the user to be able to modify their participant custom field value.
For more information, please refer to this documentation section: https://support.smartbear.com/collaborator/docs/custom-integrations/json-api/index.html
and the ReviewService interface at <your_server_address>/javadoc/jsonapi/.
"Note, that you need to be logged in under the user to be able to modify their participant custom field value."
So are you not able to automate each participants Discipline when adding them to a review? You can only modify the logged in user? Is there not a way to pass the user ID as an argument whose Discipline field you want to modify? Why would it default the update to the logged in user?