# Set public organization membership for the authenticated user

From **GitHub v3 REST API**.

`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](https://docs.github.com/enterprise-server@3.0/rest/overview/resources-in-the-rest-api#http-verbs)."

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `username`

- Location: path
- Required: true
- Type: `string`

## Responses

### `204`

Response

### `403`

Forbidden

### `application/json`

- Type: `object`

Basic Error

```json
{"description":"Basic Error","properties":{"documentation_url":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"},"url":{"type":"string"}},"title":"Basic Error","type":"object"}
```

## Request examples

### cURL

```shell
curl --request PUT \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/public_members/{username}
```
