Search Driver Units

Operation ID: searchDriverUnits

Group: Value Accounting › Business Drivers › Driver Units

Open in the interactive reference

POST /value-accounting/driver-units/search

Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.

Search the units of measure business drivers are expressed in by a fragment of their name, matched case-insensitively. Read-only, cursor-paginated. Use filters.nameContains for a type-ahead; its sibling, the driverUnits data-set (GET value-accounting/driver-units) can only filter on the EXACT stored name. Omitting filters returns every unit, paged. A filter matching nothing returns an empty items array with HTTP 200, never a 404. Rows carry the same fields as getDriverUnit (GET value-accounting/driver-units/:id). POST rather than GET because a free-text fragment does not belong in a URL.

Finds units of measure of business drivers whose name contains a fragment, matched case-insensitively.

Use filters.nameContains for a type-ahead or a fuzzy lookup; the routed list's filter[name][eq] compares the exact stored text, which is the reason this target exists beside it.

An empty filters is a valid request for every unit, paged. A filter that matches nothing returns an empty items array with HTTP 200 — not a 404.

Rows carry the same fields as getDriverUnit (GET value-accounting/driver-units/:id).

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.

Request body

Required, application/json: searchDriverUnitsInput.

Field Type Required Description
filters object no How to narrow the search. Omit it — or send it with no members — to page through every unit, which is what the driverUnits data-set (GET value-accounting/driver-units) returns. Example: {"nameContains":"hours"}.
filters.nameContains string no Fragment the unit name must contain, matched case-insensitively anywhere in the name. A substring match, not a pattern language: the fragment is taken as literal text, % and _ included (they are escaped, so 50% finds '50%' and not '500'). A fragment matching nothing yields an empty page, not an error.
page object no Cursor and page size. Omit for the first page at the default size. Example: {"size":50}.
page.cursor string no Opaque forward cursor from a previous response's pagination.nextCursor; omit for the first page. Do not construct or decode it — a token is bound to this endpoint, so one it did not issue (a cursor from another endpoint, or one altered by hand) raises INVALID_CURSOR rather than silently restarting at the first page. Keep filters identical across the pages of one walk. It encodes the LAST ROW of the page you received, not a position, so a row created or removed before your position cannot make a later page repeat or skip a row.
page.size number no Maximum number of units to return. Defaults to 50, capped at 200; a larger value is clamped rather than rejected, so the server may return fewer but never more.
{}

Response

200 Success

Under data (searchDriverUnitsOutput):

Field Type Required Description
items array<object> yes The units on this page, in the same shape getDriverUnit (GET value-accounting/driver-units/:id) returns. Empty when nothing matched — an empty page with HTTP 200, never a 404. Ordered by id ascending — a unique, immutable key, so a rename never moves a row across a page boundary; a unit created after your cursor position appears on a later page, one created before it does not, and no row is repeated or skipped.
items[].id string yes Id (a UUID) of the unit — the id getDriverUnit, updateDriverUnit and deleteDriverUnit (GET, PATCH and DELETE value-accounting/driver-units/:id) are keyed by.
items[].name string yes Display name of the unit, e.g. 'Machine hours'. Unique tenant-wide, compared trimmed and case-insensitively.
items[].description string no Longer free-text explanation of what the unit measures. Absent — not null — when it was never set or has been cleared.
items[].lastModifiedDate date-time yes Instant the unit last changed, as ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). The same value the list and the keyed read publish.
pagination object yes Pagination cursor for this page.
pagination.nextCursor string no Opaque cursor to pass as page.cursor for the next page; absent on the last page.
pagination.hasMore boolean yes True when more units remain beyond this page.
{
  "data": {
    "items": [
      {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "name": "<name>",
        "description": "<description>",
        "lastModifiedDate": "2026-01-15T09:30:00.000Z"
      }
    ],
    "pagination": {
      "nextCursor": "<nextCursor>",
      "hasMore": true
    }
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}

Errors

Code Status
INVALID_CURSOR 400

Statuses