Sample - GitHub REST API
GET/repos/{owner}/{repo}/assignees/{assignee}

Verify issue assignment eligibility

Verifies whether a user can be assigned to issues in a repository. Pass owner, repo, and assignee to check the user's assignment eligibility; a successful check returns no response content.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository.
repostringrequired
The repository name without the `.git` extension.
assigneestringrequired
The user name to check for issue assignment eligibility.

2 status codes
204Returns no content when the `assignee` can be assigned to issues in the repository.
404Returned when the `assignee` cannot be assigned to issues in the repository.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when assignee cannot be assigned to issues in the specified repository. Pass the repository account in owner, the repository name without the .git extension in repo, and the user name in assignee.