---
title: "Archive a project"
method: POST
path: "/companies/{company}/projects/{project}/archive"
tags: ["Projects"]
---

# Archive a project

`POST /companies/{company}/projects/{project}/archive`

## Request

- Base URL: `https://api.factuarea.com/v1`
- URL: `https://api.factuarea.com/v1/companies/{company}/projects/{project}/archive`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Archive a project: it leaves the default listings and stops accepting new tasks (422 `project_archived`), but everything is kept and can be read. Reversible with `POST /v1/companies/{company}/projects/{project}/unarchive`.

## Path parameters

- `company` string, uuid, required
- `project` string, uuid, required

## Headers

- `Idempotency-Key` string
- `Factuarea-Version` string, date

## Response `200`

- object
  - `data` Project, required: A task project of your company: its board columns hold the tasks, and its key (`DEV`) prefixes their keys (`DEV-12`).
    - `id` string, uuid, required: UUID v7 of the project.
    - `object` 'project', required: Stripe-like discriminator. Always `project` for this resource.
    - `key` string, required: Project key, unique in your company. Prefixes the key of every task (`DEV-12`).
    - `name` string, required: Project name.
    - `icon` string, required: Icon of the project, from the task icon catalog.
    - `description` string, nullable, required: Free description of the project, or `null`.
    - `position` integer, required: Position of the project in the list shown in the app.
    - `is_archived` boolean, required: `true` when the project is archived (read-only, no new tasks).
    - `archived_at` string, date-time, nullable, required: When the project was archived, or `null`.
    - `billing_contact_id` string, uuid, nullable, required: UUID of the contact invoiced by default for the logged time, or `null`.
    - `billing_hourly_rate` string, nullable, required: Default hourly rate (decimal string, before taxes) used to invoice the logged time, or `null`.
    - `billing_product_id` string, uuid, nullable, required: UUID of the product used for the invoice lines of logged time, or `null`.
    - `stats` object, required: Task statistics of the project.
      - `total_tasks` integer, required: Tasks of the project, archived ones included.
      - `completed_tasks` integer, required: Completed tasks.
      - `completion_percentage` integer, required: Completed tasks over total, as a whole percentage.
      - `next_due_on` string, date, nullable, required: Earliest due date among the open tasks, or `null`.
    - `created_at` string, date-time, required: Creation timestamp.
    - `updated_at` string, date-time, required: Last update timestamp.

## Other responses

- `400`: `parameter_unknown` with `subcode` `retired_active_profile_header`: the retired `X-Active-Profile` header was sent; the company goes in the path. `parameter_invalid_format` on `Factuarea-Version`: the header is not a `YYYY-MM-DD` date. `unsupported_api_version`: the `Factuarea-Version` date is not a supported version.
- `401`: Missing or invalid API key.
- `403`: The request is authenticated but not allowed: the API key lacks the required scope (`insufficient_scope`), the plan does not include the public API or this feature (`addon_not_active`, `feature_not_available_in_plan`), or the module is not available with a test key (`module_not_available_in_sandbox`).
- `404`: The requested resource does not exist or belongs to another company.
- `409`: The request conflicts with data that already exists or with a request running at the same time. `column_has_tasks`: the column still holds tasks. Move them to another column (`move_to_column_id`) before deleting it. `column_slug_in_use`: another column of the project already has that name (or one that produces the same identifier). Choose another name. `project_key_in_use`: another project of the company already uses that `key`. Choose another one.
- `422`: `idempotency_key_reused`: the `Idempotency-Key` was already used with a different body; send a new key or the same body. `invalid_param_format` on `Idempotency-Key`: the key must be 1 to 255 printable ASCII characters.
- `429`: Rate limit exceeded. Retry after the duration in `Retry-After`.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/factuarea/apis/factuarea-public-api.md) · [All operations](https://skmtc.dev/factuarea/apis/factuarea-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factuarea/apis/factuarea-public-api/revisions/718e77934422?raw)
