Skip to content

PUT /counter/

Replace Field Metadata

PUT
/counter/{counter_key}

Replace counter metadata for a given counter key.

Performs a full document update of the Counter record identified by
counter_key. The request body must include _key (via the counter_data
model). check_rev=False means optimistic concurrency is not enforced.

Emits: (direct transaction — no event class)

Required scope: traceability:counter:write

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Parameters

Path Parameters

counter_key*
Type
string
Required

Request Body

application/json
JSON
{
  
"_id": "string",
  
"_key": "string",
  
"_rev": "string",
  
"name": "Work Order Counter",
  
"next_tick": 1,
  
"template": [
  
  
[
  
  
  
"WO-",
  
  
  
"%Y",
  
  
  
"-",
  
  
  
"%m",
  
  
  
"-"
  
  
]
  
],
  
"frequency": "month",
  
"reset_date": "2026-05-01T00:00:00Z"
}

Responses

Successful Response

application/json
JSON
{
  
"status": 200,
  
"message": "string",
  
"detail": "string"
}

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.