Skip to content

Instantly share code, notes, and snippets.

@Neo42
Created March 30, 2021 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neo42/9a94cd2c9241080e82861aeb044acc7a to your computer and use it in GitHub Desktop.
Save Neo42/9a94cd2c9241080e82861aeb044acc7a to your computer and use it in GitHub Desktop.
Code for changing one's own membership visibility in a github organization
curl \ 20:19:16
-H "Accept: application/vnd.github.v3+json" \
# replace :token below with your personal access token
-H "Authorization: token :token" \
-H "Content-Length: 0" \
-X PUT \
# replace ORGNAME with your organization name and USERNAME your username
https://api.github.com/orgs/ORGNAME/public_members/USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment