---
title: "Create a local dimension axis"
method: POST
path: "/dimensions/axes"
tags: ["Dimensions"]
---

# Create a local dimension axis

`POST /dimensions/axes`

## Request

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

Requires a write-scoped key. Provider-managed catalogs cannot be changed here.

## Request body

- DimensionAxisCreate
  - `customer_id` string: Target company. Optional for API keys.
  - `code` string, required
  - `name` string, required
  - `reason` string, required: Audit reason.

## Response `201`

Created local axis.

- object
  - `axis` DimensionAxis
    - `id` string, required
    - `code` string, required
    - `name` string, required
    - `status` 'active' | 'archived', required
    - `ownership` 'local' | 'source', required
    - `provider` string: Present for a source-managed axis.
    - `connection_id` integer: Present for a source-managed axis.
    - `values` DimensionValue[], required
      - `id` string, required
      - `axis_id` string, required
      - `code` string, required
      - `name` string, required
      - `status` 'active' | 'archived', required
      - `row_version` integer, required
    - `row_version` integer, required

## 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)
