Documentation
Organization Structure API
- Axis-sections
- Departments
- Legal-Units
- Establishments
Core HR API
- Employees Directory
- Guides
Expenses API
- Expense-temp-items
- Expense-claims
- Expense-claim-items
- Exports
- Guides
Invoices API
- Cost-Centers
- Purchases
- Approval Workflow
- Booked Documents
- Misc.
- Guides
Absences API
- Leaves
- Leave-requests
- Sick-leaves
- Imports
- Guides
Office API
- User-locations
- Work-locations
Project API
- Clients
- Projects
- Project services
- Organizations
- Financials
Time Settings API
- UserDates
- Workcycle-exceptions
- Working-time-arrangement
Timesheet API
- Time-entries
- Timesheets
- Reports
- Guides
Mealvouchers API
- Statutory
- Computation
Compensation API
- Fixed-natures
- Fixed-items
- Variable-natures
- Variable-items
Training API
- Training-demands
- Realized-trainings
Cost-Centers
Import Cost-Centers
Import a list of cost-centers. Endpoint to use for bulk import of cost-centers.
POST
/
cleemy-procurement
/
services
/
imports
/
costcenters
Copy
Ask AI
curl --request POST \
--url https://{host}/cleemy-procurement/services/imports/costcenters \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "AllOrNothing",
"items": [
{
"name": "<string>",
"code": "<string>",
"ownerId": 123,
"state": "Disabled",
"establishmentIds": [
123
]
}
]
}'
Copy
Ask AI
{
"mode": "AllOrNothing",
"imported": 1,
"failedValidation": 1,
"items": [
{
"result": {
"id": 123,
"name": "<string>",
"code": "<string>",
"owner": {
"id": 123,
"href": "<string>",
"name": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"pictureHref": "<string>"
},
"state": "Disabled",
"establishments": [
{
"id": 123,
"name": "<string>",
"href": "<string>"
}
]
},
"problem": {
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}
}
]
}
Headers
API key. Value must be formatted like so: lucca application={api_key}
.
Body
application/json
Response
200 - application/json
Successful cost-centers import.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://{host}/cleemy-procurement/services/imports/costcenters \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"mode": "AllOrNothing",
"items": [
{
"name": "<string>",
"code": "<string>",
"ownerId": 123,
"state": "Disabled",
"establishmentIds": [
123
]
}
]
}'
Copy
Ask AI
{
"mode": "AllOrNothing",
"imported": 1,
"failedValidation": 1,
"items": [
{
"result": {
"id": 123,
"name": "<string>",
"code": "<string>",
"owner": {
"id": 123,
"href": "<string>",
"name": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"pictureHref": "<string>"
},
"state": "Disabled",
"establishments": [
{
"id": 123,
"name": "<string>",
"href": "<string>"
}
]
},
"problem": {
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.