cURL
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>" }
Create a new cost center.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The response is of type object.
object