Classification centers
The second classification dimension — cost center, project, branch — used to split one bill across areas.
| Command | HTTP | Description |
|---|---|---|
classification-centers list | GET /v1/classification_centers | List classification centers |
classification-centers create | POST /v1/classification_centers | Create a classification center |
classification-centers get | GET /v1/classification_centers/{id} | Get a classification center by ID |
classification-centers update | PATCH /v1/classification_centers/{id} | Update a classification center |
classification-centers delete | DELETE /v1/classification_centers/{id} | Delete a classification center |
Examples
--params carries query and path parameters (id, page, filters); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# List classification centers
kobana finance classification-centers list \
--fields "id,company_id,name,type,description"
# Get a classification center by ID
kobana finance classification-centers get \
--params '{"id": "CLASSIFICATION_CENTER_ID"}'
# Create a classification center
kobana finance classification-centers create \
--json '{"company_id": "COMPANY_ID", "name": "NAME", "type": "cost"}'
# Update a classification center
kobana finance classification-centers update \
--params '{"id": "CLASSIFICATION_CENTER_ID"}' \
--json '{"name": "NAME", "type": "cost", "description": "DESCRIPTION"}'
# Delete a classification center
kobana finance classification-centers delete \
--params '{"id": "CLASSIFICATION_CENTER_ID"}' \
--dry-run
Next steps
- Automatic rules
- Schema introspection — every parameter this resource accepts.