Edit Code Review Assigment settings via API

Is it possible to edit the “Code Review Assignment” settings (i.e, the things you find here: https://github.com/orgs/$orgName/teams/$teamSlug/edit/review_assignment) programmatically, e.g., via the API?

If so, what endpoint should I be using and what format should I specify my data in? I tried POSTing to https://api.github.com/orgs/$orgName/teams/$teamSlug/edit/review_assignment, which returned “Not Found” (not surprising as it’s not in the documentation) and I also looked at the “Update a Team” section of the API docs (https://docs.github.com/en/free-pro-team@latest/rest/reference/teams#update-a-team) but it doesn’t make any reference to the Code Review Assignment settings.

For reference, I would like to programmatically exclude certain team members from being reviewers when they go on vacation.

1 Like

I’d also love this feature! Similarly, can’t find any mention of it in Github’s API docs or a documented timeline for when it would be added. Anyone know more?