POST /inventory/count-assignment
Create Counting Assignments
POST
/inventory/count-assignment
Add counting assignments to an existing session.
Inserts one or more InventoryCountAssignment records into the given session.
All referenced sessions must exist and must not be in completed, applied,
or canceled status. Sets created_by from the authenticated token and
defaults include_children to False if not supplied.
Emits: (direct transaction — no event class)
Required scope: inventory:count:create
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
Request Body
application/json
JSON { "_id": "string", "_key": "string", "_rev": "string", "inventory_count_session_key": "cnt-session-001", "target_type": "position", "target_key": "12345", "assigned_to": "user/operator-01", "status": "planned", "created": "2026-05-15T10:00:00Z", "created_by": "user/manager-01", "started": "2026-05-20T08:10:00Z", "completed": "2026-05-20T09:30:00Z", "notes": "Double-check rack 3", "extra": "string" }
[
]
Responses
Successful Response
application/json
JSON "status": 200, "message": "string", "detail": "string"
{
}