---
title: "Archive a Prompt"
method: POST
path: "/v1/prompts/{id}/archive"
tags: ["Prompts"]
---

# Archive a Prompt

`POST /v1/prompts/{id}/archive`

Archives a specific prompt container, setting `status` to 'archived'. The prompt still exists in the system and people can call it and use it, so a prompt is never deleted. Requires Org Admin or Team Admin privileges (GitHub repo owner model). Team Editors and Team Members are not authorized to archive prompts.

## Path parameters

- `id` string, uuid, required

## Response `200`

Prompt successfully archived

- object
  - `prompt` Prompt, required
    - `id` string, uuid, required — Unique identifier.
    - `project_id` string, uuid, required — Unique identifier of the project the prompt belongs to.
    - `slug` string, required — Unique slug within the project.
    - `name` string, required — Name of the prompt container.
    - `description` string, required — Brief summary explaining the prompt purpose.
    - `status` 'active' | 'archived', required — Current status of the prompt container (active, archived).
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400` — Invalid UUID format
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Prompt not found
- `500` — Internal error

---

[API](https://skmtc.net/px0-ai/apis/px0-api.md) · [All operations](https://skmtc.net/px0-ai/apis/px0-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/px0-ai/px0-api/revisions/3ed72443989d/schema)
