> ## Documentation Index
> Fetch the complete documentation index at: https://dronebundle.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Archive Project

> Archive or unarchive a project.

Requires an API key with `full_access` scope.

Archived projects are hidden from the default project list. Use this endpoint to archive a project you no longer need, or to restore a previously archived project.

## Path parameters

<ParamField path="projectId" type="string" required>
  The unique identifier of the project.
</ParamField>

## Body

<ParamField body="archived" type="boolean" required>
  Set to `true` to archive the project, or `false` to unarchive it.
</ParamField>

## Response

<ResponseField name="message" type="string">
  Confirmation message.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST https://api.dronebundle.com/v1/projects/01964c6b-7a3e-7f00-8000-abc123def456/archive \
    -H "Authorization: Bearer v1_your_api_key_here" \
    -H "Content-Type: application/json" \
    -d '{
      "archived": true
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Project archived"
  }
  ```
</ResponseExample>

## Errors

**400 Bad Request** - Invalid value for `archived`.

```json theme={null}
{
  "message": "archived must be a boolean"
}
```

**404 Not Found** - Project not found.

```json theme={null}
{
  "message": "Project not found"
}
```
