Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Organization | Cost Centers

get
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
get/v1/organization/cost-centers
GET /v1/organization/cost-centers HTTP/1.1
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}
post
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Body
codestring · nullableOptional
descriptionstring · nullableOptional
managerIdsinteger · int32[] · nullableOptional
billingAddressIdinteger · int32 · nullableOptional
Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
post/v1/organization/cost-centers
POST /v1/organization/cost-centers HTTP/1.1
X-API-KEY: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 74

{
  "code": "text",
  "description": "text",
  "managerIds": [
    1
  ],
  "billingAddressId": 1
}
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}
get
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Path parameters
costCenterIdinteger · int32Required
Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
get/v1/organization/cost-centers/{costCenterId}
GET /v1/organization/cost-centers/{costCenterId} HTTP/1.1
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}
put
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Path parameters
costCenterIdinteger · int32Required
Body
codestring · nullableOptional
descriptionstring · nullableOptional
billingAddressIdinteger · int32 · nullableOptional
Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
put/v1/organization/cost-centers/{costCenterId}
PUT /v1/organization/cost-centers/{costCenterId} HTTP/1.1
X-API-KEY: YOUR_API_KEY
Content-Type: application/json-patch+json
Accept: */*
Content-Length: 57

{
  "code": "text",
  "description": "text",
  "billingAddressId": 1
}
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}
delete
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Path parameters
costCenterIdinteger · int32Required
Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
delete/v1/organization/cost-centers/{costCenterId}
DELETE /v1/organization/cost-centers/{costCenterId} HTTP/1.1
X-API-KEY: YOUR_API_KEY
Accept: */*
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}

Partially updates a cost center. Only the fields named in the patch document are changed; a field replaced with `null` is cleared.

patch

managerIds is a set keyed by employee id, not an array: the whole set is replaced through /managerIds ([1, 42], or [] to remove all managers - null is rejected), and a single manager is added or removed through /managerIds/{employeeId}. Patch operations therefore cannot be produced by diffing two GET bodies with a generic JSON Patch library. See docs/design/api/json-patch-to-many-relations.md.

Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Path parameters
costCenterIdinteger · int32Required
Bodyobject · Operation[]
valueany · nullableOptional
pathstring · nullableOptional
opstring · nullableOptional
fromstring · nullableOptional
Responses
400

BadRequest: The patch document or the patched cost center is invalid.

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
patch/v1/organization/cost-centers/{costCenterId}
PATCH /v1/organization/cost-centers/{costCenterId} HTTP/1.1
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 256

[
  {
    "op": "add",
    "path": "/code",
    "value": "stringValue"
  },
  {
    "op": "add",
    "path": "/description",
    "value": "stringValue"
  },
  {
    "op": "add",
    "path": "/billingAddressId",
    "value": 123
  },
  {
    "op": "add",
    "path": "/managerIds/-",
    "value": 123
  },
  {
    "op": "add",
    "path": "/managerIds/0",
    "value": 123
  }
]
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}
patch
Authorizations
X-API-KEYstringRequired

Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.

Path parameters
costCenterIdinteger · int32Required
Body
addinteger · int32[] · nullableOptional
removeinteger · int32[] · nullableOptional
Responses
400

Bad Request

application/json
errorCodestring · nullableOptional
errorDescriptionstring · nullableOptional
dataany · nullableOptional
patch/v1/organization/cost-centers/{costCenterId}/managers
PATCH /v1/organization/cost-centers/{costCenterId}/managers HTTP/1.1
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 24

{
  "add": [
    1
  ],
  "remove": [
    1
  ]
}
{
  "errorCode": "text",
  "errorDescription": "text",
  "data": null
}

Last updated

Was this helpful?