Request-reviewers fail silently?

Is there a parameter we can pass to this API to avoid the 422?

Unprocessable Entity if user is not a collaborator

I’m building a bot that adds users/teams programmatically, and I’d rather the request add the reviewers it can instead of failing the entire request because a team isn’t added to the repo.

Have you verified that it does indeed fail all the users? If so I see two courses of action

  1. Make separate requests for each user (not sure if this has issues with rate limiting but it would be kind of dumb to rate limit based on requests rather than number of users pinged)
  2. Check that the users are collaborators and only add the ones that are.