If your goal is to to ‘publicize/conceal’ your org status via that page. You can use these instructions provided by Matt Barber from the Github team:
Thanks for writing in and I hope you are having a great day where you are.
Sorry for the time taken to get back to you, we really do appreciate your patience.
So while trying to emulate this request through the UI programmatically isn’t going to be easy, we do actually offer an API end point for this: https://developer.github.com/v3/orgs/members/#publicize-a-users-membership
Just some quick house keeping before looking at the request. If you are new to our API I’d recommend taking a read through our API docs:
Next, you’ll want to understand how to make an authenticated request:
When determining the scopes you need when creating a token we have this great list:
For this example we’ll be using a personal access token:
curl -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token :token" \
-H "Content-Length: 0" \
-X PUT \
The user can publicize their own membership. (A user cannot publicize the membership for another user.)
Note that you’ll need to set Content-Length to zero when calling out to this endpoint.
You’ll have to replace the :token with your personal access token mentioned earlier.
If this fails, please could you provide full output of a curl -v request that demonstrates this? (-v for verbose logging)
That should help us investigate the issue. Also, please make sure you mask any sensitive information like OAuth tokens and Authorization headers in the output of the curl command.