Skip to main content
POST
/
v1
/
cost-center
Create cost center
curl --request POST \
  --url http://localhost:3001/v1/cost-center \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "name": "<string>",
  "type": "<string>"
}'
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "code": "<string>",
  "name": "<string>",
  "type": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
code
string
required

Code of the cost center

name
string
required

Name of the cost center

type
string
required

Type of the cost center (KOST 1, KOST 2)

Response

201 - application/json
code
string
required

Code of the cost center

name
string
required

Name of the cost center

type
string
required

Type of the cost center (KOST 1, KOST 2)

id
string

The unique identifier of the entity.

createdAt
string<date-time>

The date and time the entity was created.

updatedAt
string<date-time>

The date and time the entity was last updated.