When I use the "Get user email bulk" (user/email/bulk) with a single accountId parameter it works. Example
accountId={accountId}
but when I try to use multiple like this
accountId={accountId},{accountId}
I do not get results. It does not error just returns an empty body.
Am I using the wrong syntax? If so what is the correct syntax? Could it be a bug with the endpoint?
I do not have to use this endpoint often but when I do I might have to grab a hundred or more emails and would rather not have to do it one at a time.
Hello @Fernando Montes
Thank you for reaching out.
The REST API syntax must have the "&&" parameter to properly search for multiple users, so this would be the correct endpoint:
rest/api/3/user/email/bulk?accountId={accountId}&&accountId={accountId}
Additionally, as you can see in the official REST API documentation, the endpoint "/rest/api/3/user/email/bulk" is experimental, so it might be updated at any time and may not work as expected.
Let us know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.