---
title: "POST /costCenter"
method: POST
path: "/costCenter"
tags: ["costCenter"]
---

# POST /costCenter

`POST /costCenter`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/costCenter`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/costCenter/post.ts> (a function with typed inputs; its response is checked against the schema)

create a costCenter

## Query parameters

- `dryRun` boolean

## Request body

- CostCenter
  - `id` string
  - `version` string
  - `costCenterGroupId` string
  - `costCenterNumber` string, required
  - `costCenterType` 'DIRECT_COST_CENTER' | 'INDIRECT_COST_CENTER' | 'SERVICE_COST_CENTER', required
  - `createdDate` integer
  - `description` string
  - `lastModifiedDate` integer

## Response `201`

costCenter create response

- CostCenter
  - `id` string
  - `version` string
  - `costCenterGroupId` string
  - `costCenterNumber` string, required
  - `costCenterType` 'DIRECT_COST_CENTER' | 'INDIRECT_COST_CENTER' | 'SERVICE_COST_CENTER', required
  - `createdDate` integer
  - `description` string
  - `lastModifiedDate` integer

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/costCenter/post.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
