Skip to content

Update cost center

Request

This endpoint updates a cost center by ID.

Security
Bearer
Path
companyIdstring, (uuid)required

Identifier for company.

Example:4974a66b-7493-4f41-908c-58ba81093947
costCenterIdstring, (uuid)required

Identifier for cost-center.

Example:4974a66b-7493-4f41-908c-58ba81093947
Bodyapplication/jsonrequired
idobject(Cost center id.)required
namestringrequired
Example:"CostCenter"
externalIdstring
Example:"external-id"
curl -i -X PUT \
  https://api-ext-sboxmeta.partners.spotnana.com/v2/companies/4974a66b-7493-4f41-908c-58ba81093947/cost-centers/4974a66b-7493-4f41-908c-58ba81093947 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": {
      "id": "731ccbca-0415-6fe1-d235-c324dfbe7423"
    },
    "name": "CostCenter",
    "externalId": "external-id"
  }'

Responses

Updated Successfully

Response
No content