Expand description
Items (parts, assemblies, documents, software) and their search.
Structs§
Constants§
- MAX_
IDEMPOTENCY_ KEY - The longest idempotency key accepted.
- MAX_
WHERE_ USED_ LEVELS - Most levels a multi-level where-used report walks up.
- MAX_
WHERE_ USED_ ROWS - Most usages a multi-level where-used report returns.
Functions§
- create
- Creates an item together with its first revision
A(in work) and returns that revision. - create_
idempotent createwith an idempotency key: the first request with a key creates the item; a repetition by the same user with the samepayload_hashreturns that item (second valuetrue, nothing is created); the same key with another payload is a conflict (409).- create_
with_ files - Creates an item and stores its first files in the new revision – one transaction, so there is never an item without the files it was created with. The revision stays checked out by the creator.
- delete
- Deletes an item created by mistake. Only allowed while it has a single in-work revision, is not used in any BOM, not part of any change, no simulation basis, no design that units were built to and – in a restricted group – no affected item of a change request.
- get
- An item the actor may read; hidden items answer like missing ones.
- get_
by_ number - An item by number, if the actor may read it. A hidden item gives exactly the message of an unknown number.
- hidden_
parents - Number of distinct parent items that use the item but that the actor may not read (“+N assemblies in groups you cannot see”).
- latest_
revision - The latest revision of an item the actor may read.
- open_
revision - The in-work or in-review revision of an item the actor may read.
- revisions
- All revisions of an item the actor may read, newest first.
- search
- Searches items the actor may read; every row carries its latest revision.
- update_
master - Updates item master data. The unit can only change while nothing has been released yet, because released BOMs depend on it.
- validate_
idempotency_ key - Validates a client-supplied idempotency key (printable ASCII, 1..=255).
- where_
used - Parent revisions whose BOM contains the item, at most
limit(a standard part can be used in tens of thousands of BOMs) – only parents the actor may read (seehidden_parentsfor the rest). - where_
used_ levels - Multi-level where-used: every BOM line that uses the item or (up to
levelslevels up) one of its parents. Like the single-level report it looks at the BOMs of all revisions. Each item is reported on the lowest level it is reached on: the walk goes up one level per query (the parents not seen before form the next level), so a part used in thousands of assemblies costs one query per level instead of a recursive expansion of every path. The report stops atMAX_WHERE_USED_ROWSrows.