# Update upload grant

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

Grant one user read, write or admin access to an upload or folder, or change that grant, and leave the other grants unchanged. 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 UUID or double-URL-encoded project-relative upload path or applicable folder prefix on which the grant is stored. Requires path administration. |
| `user_id`           | path | Yes      | UUID of the user the grant is for.                                                                                                                     |

## Request body

| Field        | Type   | Required | Description                                     |
| ------------ | ------ | -------- | ----------------------------------------------- |
| `permission` | string |          | Access to give: read (default), write or admin. |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Grant stored.                                                                                               |
| 400    | Invalid recipient UUID, a recipient that is not a user, an invalid permission or path encoding              |
| 401    | Authentication is required                                                                                  |
| 403    | Admin access required to manage grants                                                                      |
| 404    | Project not found, or no upload or folder setting governs the path                                          |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
