# Restore upload

```http
POST /projects/{project_reference}/uploads/{upload_reference}/restore
```

Restore a soft-deleted upload. Requires project.uploads.write.

## Parameters

| Name                | In   | Required | Description                                                                                                                                                                                                                                                                                      |
| ------------------- | ---- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project.                                                                                                                                                                                                                                       |
| `upload_reference`  | path | Yes      | Upload UUID selects that exact row; raw project-relative path selects an active row first, otherwise latest deletion then descending UUID. Active rows are rejected. No deletion-age cutoff is enforced; stored content availability is not checked. Requires upload write and path edit access. |

## Responses

| Status | Description                                                            |
| ------ | ---------------------------------------------------------------------- |
| 200    | File restored successfully.                                            |
| 400    | Invalid request, or the upload is not soft-deleted                     |
| 401    | Unauthorized                                                           |
| 403    | The caller lacks access to the upload or path                          |
| 404    | Project or upload not found                                            |
| 409    | Upload is being collected, or its path is occupied by an active upload |
| 500    | Server error                                                           |
