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 verbs."
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://api.github.com/orgs//public_members/'
Response Response Example
204 - Example 1
{}
Request
Path Params
org
stringÂ
required
The organization name. The name is not case sensitive.