Set public organization membership for the authenticated user
PUT
/orgs/{org}/public_members/{username}
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. For more information, see “HTTP method.”
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” org
required
string
The organization name. The name is not case sensitive.
username
required
string
The handle for the GitHub user account.
Responses
Section titled “ Responses ”Response
Forbidden
Media type application/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}