---
title: "Create a Cost-Center"
method: POST
path: "/cleemy-procurement/api/costcenters"
tags: ["Cost-Centers"]
---

# Create a Cost-Center

`POST /cleemy-procurement/api/costcenters`

Create a new cost-center.

## Request body

- CostCenter — Cost-center.
  - `id` integer
  - `name` string, required
  - `code` string, required
  - `ownerId` integer — ID of the user who will be the owner of the cost-center.
  - `owner` object — **Read-only.** Owner of the cost-center.
    - `id` integer
    - `href` string, uri
    - `name` string
    - `firstName` string
    - `lastName` string
    - `pictureHref` string, uri, nullable — **Read-only.** URL to this user picture image file.
  - `state` 'Disabled' | 'Enabled' — Disabled: the cost-center is disabled. Enabled: the cost-center is enabled.
  - `establishmentIds` integer[] — **Write-only.** IDs of the establishments to which the cost-center belongs."
  - `establishments` EstablishmentReference[] — **Read-only.** Establishments to which the cost-center belongs.
    - `id` integer
    - `name` string
    - `href` string, uri

## Response `201`

OK

- object
  - `items` CostCenter[]
    - `id` integer
    - `name` string, required
    - `code` string, required
    - `ownerId` integer — ID of the user who will be the owner of the cost-center.
    - `owner` object — **Read-only.** Owner of the cost-center.
      - `id` integer
      - `href` string, uri
      - `name` string
      - `firstName` string
      - `lastName` string
      - `pictureHref` string, uri, nullable — **Read-only.** URL to this user picture image file.
    - `state` 'Disabled' | 'Enabled' — Disabled: the cost-center is disabled. Enabled: the cost-center is enabled.
    - `establishmentIds` integer[] — **Write-only.** IDs of the establishments to which the cost-center belongs."
    - `establishments` EstablishmentReference[] — **Read-only.** Establishments to which the cost-center belongs.
      - `id` integer
      - `name` string
      - `href` string, uri

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
