# Update upload grants

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

Replace the complete list of user grants on an upload or folder; an empty list revokes every grant. 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      |                                                            |

## Request body

| Field    | Type  | Required | Description                                                                            |
| -------- | ----- | -------- | -------------------------------------------------------------------------------------- |
| `grants` | array | Yes      | Complete recipient grant list. Replaces all grants; an empty list revokes every grant. |

## Responses

| Status | Description                            |
| ------ | -------------------------------------- |
| 200    | Grants set.                            |
| 400    | Invalid request                        |
| 401    | Authentication is required             |
| 403    | Admin access required to manage grants |
| 404    | Project or upload path not found       |
| 500    | Server error                           |
