Skip to main content

Classification centers

The second classification dimension — cost center, project, branch — used to split one bill across areas.

CommandHTTPDescription
classification-centers listGET /v1/classification_centersList classification centers
classification-centers createPOST /v1/classification_centersCreate a classification center
classification-centers getGET /v1/classification_centers/{id}Get a classification center by ID
classification-centers updatePATCH /v1/classification_centers/{id}Update a classification center
classification-centers deleteDELETE /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​