> ## Documentation Index
> Fetch the complete documentation index at: https://docs.imperial.gay/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Upload Privacy

> Change an upload's visibility (public, unlisted, private)

## Request

### Headers

<ParamField header="Authorization" type="string" required>
  Your API key in the format: `Bearer imperial_live_xxxxxxxxxxxxx`
</ParamField>

### Path Parameters

<ParamField path="id" type="string" required>
  Upload ID
</ParamField>

### Body

<ParamField body="privacy" type="string" required>
  One of: `public`, `unlisted`, `private`
</ParamField>

## Response

<ResponseField name="id" type="string">
  Upload ID
</ResponseField>

<ResponseField name="privacy" type="string">
  Updated privacy value
</ResponseField>

## Example

```bash theme={null}
curl -X PATCH "https://api.imperial.gay/images/6987cd047baba11ee0f66d98/privacy" \
  -H "Authorization: Bearer imperial_live_xxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{ "privacy": "private" }'
```
