---
title: "Archive a local dimension axis or value"
method: POST
path: "/dimensions/archive"
tags: ["Dimensions"]
---

# Archive a local dimension axis or value

`POST /dimensions/archive`

## Request

- Base URL: `https://api.app.lastaccountingcompany.com/portal`
- URL: `https://api.app.lastaccountingcompany.com/portal/dimensions/archive`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/docs/dimensions/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Requires a write-scoped key. Archive preserves historical assignments; deletion is not supported.

## Request body

- DimensionArchive
  - `customer_id` string: Target company. Optional for API keys.
  - `kind` 'axis' | 'value', required
  - `id` string, required
  - `reason` string, required: Audit reason.

## Response `200`

Archive confirmation.

- object
  - `archived` boolean

## Other responses

- `401`: Missing or invalid bearer token.
- `403`: Insufficient scope or role — e.g. a read-scoped key on a mutating method, or an API key on an admin/approver-only endpoint.

---

[API](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api.md) - [All operations](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lastaccountingcompany/apis/lac-customer-api/revisions/52e277b4f031?raw)
