---
title: "Set public organization membership for the authenticated user"
method: PUT
path: "/orgs/{org}/public_members/{username}"
tags: ["orgs"]
---

# 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](https://docs.github.com/enterprise-server@3.7/rest/guides/getting-started-with-the-rest-api#http-method)."

## Path parameters

- `org` string, required
- `username` string, required

## Response `204`

Response

## Other responses

- `403` — Forbidden

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-6.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-6/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-6/versions/15db3fa0759b/schema)
