[POST] .../v1/documentenumerator/reset
Resets document numbering for the selected document enumerator. Use this destructive workflow method only when the current document number sequence must be restarted for a selected document type. The method sets sys_db_counters_ref.tbc_counter to 0 for the selected enumerator, writes a reset action log record and returns row_affected. The request body is required and id must identify an existing document enumerator; call DocumentEnumerator/Get first when the client needs to show the current mask and counter before reset. The current request user must have document enumerator reset permission and the document enumerator tariff parameter must be enabled. Missing body, invalid id, denied access, disabled tariff parameter, missing record, transaction failures, action log failures and database errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Document numerator ID. |
Request Example
{
"id": 5
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}