Create Business Driver
Operation ID: createBusinessDriver
Group: Value Accounting › Business Drivers › Business Driver Definitions
Open in the interactive reference
POST /value-accounting/business-drivers
Retry-safe: A write that accepts Idempotency-Key: repeating a request with the same key replays the stored answer instead of executing twice.
Create one business driver definition — a named measure such as headcount or machine hours that value accounting allocates by. WRITES. Returns only the id of the new driver; read it back with getBusinessDriver (GET value-accounting/business-drivers/:id) for the stored form. Creates NO value: record values against the driver afterwards. Names are unique tenant-wide, compared trimmed and case-insensitively, and a deactivated driver keeps its name: NAME_TAKEN (an active driver holds it) and NAME_TAKEN_DEACTIVATED (a deactivated one does — reactivate it with setBusinessDriversActive (POST value-accounting/business-drivers/set-active) rather than inventing a variant) both carry the holder's id. An empty or whitespace-only name is NAME_REQUIRED. calculationType is 'asOf' or 'cumulative' (else INVALID_CALCULATION_TYPE) and, like the dimension set, freezes with the first recorded value — choose both deliberately. dimensions may be empty: such a definition holds no values until its dimensions are declared. A bad dimension entry is INVALID_DIMENSION, a custom dimension naming no custom value dimension CUSTOM_VALUE_DIMENSION_NOT_FOUND, a unitId naming no driver unit UNIT_NOT_FOUND, and declaring Value Center while the tenant setting is off VALUE_CENTER_DISABLED. Every check runs before anything is written. A system driver cannot be created here.
Creates one business driver DEFINITION and returns only the id the platform assigns — the reference getBusinessDriver, updateBusinessDriver and deleteBusinessDriver (GET/PATCH/deleteBusinessDriver) are keyed by. No value, no period and no recording context is created: the driver holds nothing until values are recorded against it.
Driver names are unique tenant-wide, compared TRIMMED and CASE-INSENSITIVELY, and a DEACTIVATED driver keeps its name: a clash with an active driver fails with NAME_TAKEN, one with a deactivated driver with NAME_TAKEN_DEACTIVATED — reactivate that one (setBusinessDriversActive, POST value-accounting/business-drivers/set-active) instead of inventing a variant spelling. An empty or whitespace-only name fails with NAME_REQUIRED.
Choose calculationType from what the measure IS — 'asOf' for a stock that carries forward (headcount), 'cumulative' for a per-period flow (hours worked) — because it freezes with the first recorded value. Declare every dimension you will need for the same reason: the set freezes too. dimensions: [] is a valid definition that holds no values until its dimensions are declared with PATCH.
Each dimension entry is checked (INVALID_DIMENSION with a reason), a custom one must name an existing custom value dimension (CUSTOM_VALUE_DIMENSION_NOT_FOUND), unitId must name an existing driver unit (UNIT_NOT_FOUND), and declaring the Value Center dimension needs the tenant's Value Center dimension setting (VALUE_CENTER_DISABLED). A system driver cannot be created: isSystem is not an input. The call runs in a transaction: a failure writes nothing.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
Idempotency-Key |
header | string | no | An opaque caller-chosen string (1-255 characters) that makes this request safe to retry. Repeating the same key with an identical request body replays the original response instead of re-executing - but only once that original request succeeded; a failed attempt re-executes on retry. Repeating the key with a different body is answered with 422. A key still in flight is answered with 409 - as is a key whose original request was interrupted before it finished, for a few minutes afterwards, until that attempt is presumed dead. A completed response stays replayable for 24 hours. The key is scoped to the caller, not to the action: reusing it for a different action is answered with 409 or 422 rather than treated independently. On read actions this header is ignored. On write actions that cannot offer the guarantee it is answered with 400 IDEMPOTENCY_NOT_SUPPORTED rather than silently ignored. |
Request body
Required, application/json: createBusinessDriverInput.
| Field | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Display name of the new driver, e.g. 'Headcount'. Required, must not be empty or whitespace only (NAME_REQUIRED), and must not be held by any driver, active or deactivated — matching is trimmed and case-insensitive (NAME_TAKEN, NAME_TAKEN_DEACTIVATED). Stored trimmed. Check whether a name is free with searchBusinessDrivers (POST value-accounting/business-drivers/search). Example: "Machine hours". |
description |
string | no | Longer free-text explanation of what the driver measures and how it is counted. Omit to leave it unset; it can later be changed — or cleared with an explicit null — through updateBusinessDriver (PATCH value-accounting/business-drivers/:id). Example: "Hours a production machine ran, from the shop-floor log.". |
calculationType |
string | yes | Exactly 'asOf' or 'cumulative'; anything else is rejected with INVALID_CALCULATION_TYPE. 'asOf' is a STOCK: a recorded value carries forward into every later period until changed, and an allocation takes the snapshot of its last period. 'cumulative' is a FLOW: each period stands alone, and an allocation sums the periods. FROZEN once the driver holds any recorded value. Example: "cumulative". |
isActive |
boolean | yes | Whether the driver starts active. True for a driver meant to be used now; false creates it already deactivated. Activate or deactivate it later with setBusinessDriversActive (POST value-accounting/business-drivers/set-active). Example: true. |
unitId |
string | no | Id (a UUID) of the driver unit the driver's values are expressed in, from the driverUnits data-set (GET value-accounting/driver-units). An id naming no unit is rejected with UNIT_NOT_FOUND. Omit only to leave the values as bare numbers; once set, a unit can be replaced but never cleared. Example: "0f1e4b9a-6a71-4a2c-8a0d-2f9c5d3b7e10". |
dimensions |
array<object> | yes | The dimensions every recorded value of this driver must populate — with two declared, values only ever exist for a full (member, member) pair. Each dimension may appear once. FROZEN (neither added to nor reduced) once the driver holds any recorded value, so declare everything you will need. At least one is required: every driver this route creates is recorded per entity, and only a driver recorded across entities may declare none (its Entity member is implicit) — an empty array is refused. Example: [{"dimensionUrn":"urn:evst:everest:hr/base:model/node:Department"}]. |
dimensions[].dimensionUrn |
string | yes | Model URN of the dimension. System dimensions: 'urn:evst:everest:hr/base:model/node:Department', ':Team', ':Location', ':Region', ':Employee', 'urn:evst:everest:base:model/node:BusinessUnit', 'urn:evst:everest:fin/expense:model/node:Vendor', 'urn:evst:everest:fin/accounting:model/node:Customer', 'urn:evst:everest:valueaccounting/base:model/node:ValueCenter' (tenant-gated — VALUE_CENTER_DISABLED). For a custom dimension send 'urn:evst:everest:valueaccounting/base:model/node:CustomValueObject' AND its customValueDimensionId. Any other URN is INVALID_DIMENSION with reason UNKNOWN_DIMENSION_URN. |
dimensions[].customValueDimensionId |
string | no | Id (a UUID) of the custom value dimension, from the customValueDimensions data-set (GET value-accounting/custom-value-dimensions). Required on a CustomValueObject entry (reason MISSING_DIMENSION_ID without it) and refused on a system one (reason UNEXPECTED_DIMENSION_ID); an id naming no custom value dimension is CUSTOM_VALUE_DIMENSION_NOT_FOUND. Matched case-insensitively. |
{
"name": "Machine hours",
"calculationType": "cumulative",
"isActive": true,
"dimensions": [
{
"dimensionUrn": "urn:evst:everest:hr/base:model/node:Department"
}
]
}
Response
200 Success
Under data (createBusinessDriverOutput):
| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Id (a UUID) the platform assigned to the new driver, in canonical lowercase. This is the whole of the response: it is the one thing the caller did not already send, and it is what getBusinessDriver, updateBusinessDriver and deleteBusinessDriver (GET, PATCH and DELETE value-accounting/business-drivers/:id) are keyed by. |
{
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Response headers
Idempotency-Replayed— Present andtrueonly when this response replays a previously stored one for the same Idempotency-Key, rather than reflecting a live execution. Absent on a live response - never sent asfalse.
Errors
| Code | Status |
|---|---|
NAME_TAKEN |
400 |
NAME_TAKEN_DEACTIVATED |
400 |
NAME_REQUIRED |
400 |
INVALID_CALCULATION_TYPE |
400 |
INVALID_DIMENSION |
400 |
CUSTOM_VALUE_DIMENSION_NOT_FOUND |
400 |
UNIT_NOT_FOUND |
400 |
VALUE_CENTER_DISABLED |
400 |
IDEMPOTENCY_KEY_CONFLICT |
409 |
IDEMPOTENCY_PAYLOAD_MISMATCH |
422 |
Statuses
400— Invalid request or business failure. Codes: NAME_TAKEN, NAME_TAKEN_DEACTIVATED, NAME_REQUIRED, INVALID_CALCULATION_TYPE, INVALID_DIMENSION, CUSTOM_VALUE_DIMENSION_NOT_FOUND, UNIT_NOT_FOUND, VALUE_CENTER_DISABLED401— The request carries no valid access token.403— Not authorized404— Not found409— The Idempotency-Key is still being processed by another request.422— The Idempotency-Key was already used with a different request payload.429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error