How to give the visibility of comment to multiple users?

Hai all, I like to add comment in task after some action is performed. I refer the below link and did that already using an rest api call.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-comments/#api-rest-api-3-issue-issueidorkey-comment-post

Now my problem is i need to add 2 or more groups in the place of visibility value. How can i give comment visibility to two or more groups?

Thanks in advance…