---
title: "POST /editor-agent/styles/{id}/archive"
method: POST
path: "/editor-agent/styles/{id}/archive"
tags: ["Editor Agent"]
---

# POST /editor-agent/styles/{id}/archive

`POST /editor-agent/styles/{id}/archive`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/editor-agent/styles/{id}/archive`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `id` string, required

## Request body

- EditorStyleArchiveInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `archived` boolean, required
  - `expected_version` integer, required
  - `workspace_id` string, required

## Response `200`

OK

- EditorAgentEmptyOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `ok` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
