Cost Centers
Todas las operaciones de Cost Centers.
Modelo de datos
Los endpoints de este módulo trabajan sobre la siguiente entidad. La referencia del esquema enumera cada campo con tipo, validación y relaciones:
| Entidad | ID del esquema | Campos | Secuencia | Permisos |
|---|---|---|---|---|
| Cost Center | cost_center |
10 | — | cost_center_* |
Endpoints
| Método | Ruta | Operación | Descripción |
|---|---|---|---|
POST |
/v1/cost_centers |
Create cost_center | Create a new cost_center in the active tenant. |
DELETE |
/v1/cost_centers/{id} |
Delete cost_center | Soft delete entity. |
GET |
/v1/cost_centers/{id} |
Get cost_center by id | Fetch a single cost_center. |
GET |
/v1/cost_centers/{id}/linked |
Get linked entities | CodeMeta OS API endpoint. |
GET |
/v1/cost_centers/{id}/timeline |
Get timeline | CodeMeta OS API endpoint. |
GET |
/v1/cost_centers/{id}/transitions |
List transitions | CodeMeta OS API endpoint. |
GET |
/v1/cost_centers |
List cost_centers | List cost_centers for the active tenant. |
PATCH |
/v1/cost_centers/{id} |
Patch cost_center | JSON Merge Patch update. |
POST |
/v1/cost_centers/bulk |
Bulk operation | CodeMeta OS API endpoint. |
POST |
/v1/cost_centers/{id}/transition |
POST /v1/cost_centers/{id}/transition | CodeMeta OS API endpoint. |
POST |
/v1/cost_centers/{id}/transitions/{transitionKey} |
Execute transition | CodeMeta OS API endpoint. |
PUT |
/v1/cost_centers/{id} |
Replace cost_center | Full replace with optimistic locking. |