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

# POST /costType

`POST /costType`

## Request

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

create a costType

## Query parameters

- `dryRun` boolean

## Request body

- CostType
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `name` string, required

## Response `201`

costType create response

- CostType
  - `id` string
  - `version` string
  - `createdDate` integer
  - `lastModifiedDate` integer
  - `name` string, required

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - added the new optional `query` request parameter `dryRun`
- **2022-06-29** `a926aad6dc0c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/costType/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)
