Organization | Cost Centers
Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
OK
Bad Request
Unauthorized
Forbidden
Not Found
GET /v1/organization/cost-centers HTTP/1.1
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"errorCode": "text",
"errorDescription": "text",
"data": null
}Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
OK
Bad Request
Unauthorized
Forbidden
Not Found
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
}Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
OK
Bad Request
Unauthorized
Forbidden
Not Found
GET /v1/organization/cost-centers/{costCenterId} HTTP/1.1
X-API-KEY: YOUR_API_KEY
Accept: */*
{
"errorCode": "text",
"errorDescription": "text",
"data": null
}Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
OK
Bad Request
Unauthorized
Forbidden
Not Found
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
}Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
OK
Bad Request
Unauthorized
Forbidden
Not Found
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.
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.
Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
NoContent: The cost center was patched.
BadRequest: The patch document or the patched cost center is invalid.
Unauthorized: Authentication required.
Forbidden: Resource access denied or resource does not exist anymore.
NotFound: Requested resource could not be found.
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
}Required for authorization in every request. You can request an API-Key for your tenant in the integrations section of the equipme App.
No Content
Bad Request
Unauthorized
Forbidden
Not Found
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?