Skip to content

Create cost center

Request

This endpoint creates a cost center.

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
namestringrequired
numberOfEmployeesinteger, (int32)
externalIdstring
Example:"external-id"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/cost-centers \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "numberOfEmployees": 0,
    "externalId": "external-id"
  }'

Responses

OK

Bodyapplication/json
idstring, (uuid)required
Example:"b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3"
Response
{ "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3" }