# Reactivate Driver Combination

Operation ID: `reactivateDriverCombination`

Group: Value Accounting › Business Drivers › Driver Values

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/endpoints/reactivateDriverCombination)

`POST /value-accounting/driver-values/reactivate`

Retry-safe: A write that accepts Idempotency-Key: repeating a request with the same key replays the stored answer instead of executing twice.

Re-enable an ENDED combination from an accounting period on, with a resume value; returns the id of the value that resumes it. WRITES. The counterpart of endDriverCombination (POST value-accounting/driver-values/end). The resume period must be at or after the end boundary (REACTIVATE_BEFORE_END); the periods between end and resume stay empty on purpose. Resuming AT the boundary with exactly the value the end recorded undoes the end (the row comes back carried). onlyThisPeriod true re-opens it for that one period and ends it again from the next. The resume period must be open and not in the future (PERIOD_LOCKED). Refused for a combination that is not ended (LINE_NOT_ENDED), a value already in that period (COMBO_EXISTS), an inactive driver (DRIVER_INACTIVE), a value that is not a number (INVALID_VALUE), a system driver (SYSTEM_DRIVER), and a combination whose members no longer fit the driver's CURRENT dimensions — they may have changed since its last value was deleted (MEMBER_DIMENSION_MISMATCH, MEMBERS_INCOMPLETE, MEMBER_DUPLICATE_DIMENSION, MEMBER_NOT_FOUND, VALUE_CENTER_DISABLED). It runs in one transaction, so a refusal writes nothing.

Re-enables an ENDED combination from an accounting period on, with a resume value, and returns the `id` of the value that resumes it. The counterpart of endDriverCombination (POST value-accounting/driver-values/end).

The resume period must be at or after the period the combination was ended from (`REACTIVATE_BEFORE_END`): a combination is never revived into the past, and the periods between its end and its resume stay EMPTY on purpose — that is how a genuine gap is recorded.

Two refinements: resuming exactly AT the end boundary with exactly the value the end recorded is an UNDO — the row comes back as a system-carried row, so the combination can be ended again at once; and `onlyThisPeriod: true` re-opens it for that one period and ends it again from the next, for a one-off occurrence.

The resume period must be open and not in the future (`PERIOD_LOCKED`). Refused for a combination that is not ended (`LINE_NOT_ENDED`), an inactive driver, a system driver, and a combination whose members no longer fit the driver's current dimensions (the `MEMBER_*` codes of recordDriverValue, `VALUE_CENTER_DISABLED`). It runs in one transaction, so a refusal 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`: reactivateDriverCombinationInput.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `combinationId` | string | yes | Id (a UUID) of the ENDED combination to re-enable — the combinationId of a row of searchDriverValues (POST value-accounting/driver-values/search). Matched case-insensitively. Example: `"5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"`. |
| `accountingPeriodId` | string | yes | Id (a UUID) of the accounting period the combination resumes in. Open, not in the future, and at or after the period it was ended from. Matched case-insensitively. Example: `"d8b3b2a3-89b1-4040-99f5-8f550f28f23c"`. |
| `value` | decimal | yes | The value the combination resumes with, in the driver's unit, as a decimal number. For an As-of driver it carries forward from there. Stored with at most 12 decimal places: further digits are rounded on the write. Example: `"43"`. |
| `onlyThisPeriod` | boolean | no | True re-opens the combination for this period only: the value is written and the combination is ended again from the next period. Omit or false to resume indefinitely. On the calendar's last period the combination simply stays open. |

```json
{
  "combinationId": "5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d",
  "accountingPeriodId": "d8b3b2a3-89b1-4040-99f5-8f550f28f23c",
  "value": "43"
}
```

## Response

`200` Success

Under `data` (reactivateDriverCombinationOutput):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Id (a UUID) of the value row that resumes the combination. |

```json
{
  "data": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "diagnostics": [
    {
      "code": "<code>",
      "message": "<message>",
      "severity": "error",
      "path": [
        "<path>"
      ],
      "details": "<details>"
    }
  ]
}
```

## Response headers

- `Idempotency-Replayed` — Present and `true` only 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 as `false`.

## Errors

| Code | Status |
| --- | --- |
| `COMBINATION_NOT_FOUND` | 400 |
| `PERIOD_NOT_FOUND` | 400 |
| `PERIOD_CALENDAR_MISMATCH` | 400 |
| `SYSTEM_DRIVER` | 400 |
| `INVALID_VALUE` | 400 |
| `LINE_NOT_FOUND` | 400 |
| `LINE_NOT_ENDED` | 400 |
| `DRIVER_NOT_FOUND` | 400 |
| `DRIVER_INACTIVE` | 400 |
| `PERIOD_LOCKED` | 400 |
| `REACTIVATE_BEFORE_END` | 400 |
| `COMBO_EXISTS` | 400 |
| `MEMBERS_INCOMPLETE` | 400 |
| `MEMBER_DIMENSION_MISMATCH` | 400 |
| `MEMBER_NOT_FOUND` | 400 |
| `MEMBER_DUPLICATE_DIMENSION` | 400 |
| `VALUE_CENTER_DISABLED` | 400 |
| `IDEMPOTENCY_KEY_CONFLICT` | 409 |
| `IDEMPOTENCY_PAYLOAD_MISMATCH` | 422 |

## Statuses

- `400` — Invalid request or business failure. Codes: COMBINATION_NOT_FOUND, PERIOD_NOT_FOUND, PERIOD_CALENDAR_MISMATCH, SYSTEM_DRIVER, INVALID_VALUE, LINE_NOT_FOUND, LINE_NOT_ENDED, DRIVER_NOT_FOUND, DRIVER_INACTIVE, PERIOD_LOCKED, REACTIVATE_BEFORE_END, COMBO_EXISTS, MEMBERS_INCOMPLETE, MEMBER_DIMENSION_MISMATCH, MEMBER_NOT_FOUND, MEMBER_DUPLICATE_DIMENSION, VALUE_CENTER_DISABLED
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `409` — 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 no `Retry-After` header.
- `500` — Internal server error
