Public M2M API — cost-centers
Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.
Authentication and permissions · Requests, results and recovery
/api/v1/cost-centers
Exported methods: GET, POST, DELETE
GET
- Resource scopes:
cost-centers:read - Query parameters:
isActive,limit,page,parentId,search,stats,tree,type - Shared pagination: Yes
- Response keys observed across outcomes:
stats,tenantId,tree
POST
- Resource scopes:
cost-centers:write - Explicit response statuses:
201,400,409,422 - Explicit error codes:
cost_center_failed,invalid_request,onboarding_incomplete - Response keys observed across outcomes:
costCenter
Validated request fields
DELETE
- Resource scopes:
cost-centers:write - Query parameters:
id - Explicit response statuses:
400,422 - Explicit error codes:
delete_failed,invalid_request - Response keys observed across outcomes:
deleted,id
Provide a nonempty id in query or JSON. The selected cost center is passed to the delete service; inspect the result and current record before retrying.
/api/v1/cost-centers/{id}
Exported methods: GET, PATCH, DELETE
GET
- Resource scopes:
cost-centers:read - Path parameters:
id - Response keys observed across outcomes:
costCenter
PATCH
- Resource scopes:
cost-centers:write - Path parameters:
id - Explicit response statuses:
422 - Explicit error codes:
invalid_request - Response keys observed across outcomes:
costCenter
Validated request fields
DELETE
- Resource scopes:
cost-centers:write - Path parameters:
id - Response keys observed across outcomes:
deleted,id
Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.