# Trash upload

| **Description** | Trashes or recovers a given upload.                                   |
| --------------- | --------------------------------------------------------------------- |
| **Endpoint**    | `/path/{pathId}/raster/timestamp/{timestampId}/file/{fileId}/trashed` |
| **Method**      | PUT                                                                   |

## Access Level Rules

| **Minimum Access Level** | edit+ |
| ------------------------ | ----- |

## Processing Units

| **Minimum processing units** | 1 |
| ---------------------------- | - |

## Parameters

| Name          | Description                                              | Required | Default       |
| ------------- | -------------------------------------------------------- | -------- | ------------- |
| `pathId`      | The id of the raster layer.                              | true     |               |
| `timestampId` | The id of the timestamp that the upload belongs to.      | true     |               |
| `fileId`      | The id of the upload to trash/recover.                   | true     |               |
| `trashed`     | Boolean whether the file should be trashed or recovered. | false    | Default true. |
