# Update upload visibility

```http
PUT /projects/{project_reference}/uploads/visibility/{upload_path}
```

Set an upload's or folder's visibility to project, public or private. Requires project.uploads.admin.

## Parameters

| Name                | In   | Required | Description                                                                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project.                                                 |
| `upload_path`       | path | Yes      | Upload or folder-prefix path whose visibility setting is created or updated. Requires path administration. |

## Request body

| Field        | Type   | Required | Description                                                                                                                                                                                                    |
| ------------ | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `visibility` | string | Yes      | Visibility setting to create or update. Requires path administration; public visibility follows the paid-project policy. project means project members; public means anyone; private means granted users only. |

## Responses

| Status | Description                                            |
| ------ | ------------------------------------------------------ |
| 200    | Visibility set                                         |
| 400    | Invalid URL encoding in path                           |
| 401    | Authentication is required                             |
| 402    | Public visibility is not available on the project plan |
| 403    | The caller lacks access to the upload or path          |
| 404    | Project or upload path not found                       |
| 500    | Server error                                           |
