apicheats.dev Cheat sheet Raw .md
PUT

Try PUT /orgs/{org}/memberships/{username} — GitHub API

GitHub playground

Set organization membership for a user

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.github.com; the proxy stores and logs nothing about them.

Headers

Path

Body application/json

1 body fields
  • role · optional · string — The role to give the user in the organization. Can be one of: * `admin` - The user will become an owner of the organization. * `member` - The user will become a non-owner member of the organization.