# Restore upload

Tool: `veryfront__restore_upload`

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

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                                                                                                                                                                                                    |
| ------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `upload_reference`  | string · min length 1 |          | 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. Do not URL-encode MCP values. |
| `upload_id`         | string · min length 1 |          | Send upload\_reference or this earlier spelling of it, not two different values.                                                                                                                                                                                                                                               |
| `project_reference` | string                |          | Project UUID, slug or configured domain; optional when the selected context supplies a project.                                                                                                                                                                                                                                |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__restore_upload",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"path\":\"string\",\"file_name\":\"string\",\"content_type\":\"string\",\"size_bytes\":0,\"url\":\"string\",\"status\":\"string\",\"visibility\":\"project\",\"created_at\":\"string\",\"updated_at\":\"string\",\"deleted_at\":\"string\",\"restored\":false}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "path": "string",
      "file_name": "string",
      "content_type": "string",
      "size_bytes": 0,
      "url": "string",
      "status": "string",
      "visibility": "project",
      "created_at": "string",
      "updated_at": "string",
      "deleted_at": "string",
      "restored": false
    }
  }
}
```
