Subrents
Get a subrent
Returns the detail of a subrent by its identifier.
subrents:readsubrents:read- 120/min
- Server annotation: Read-only
- Server annotation: Idempotent
Result
generated from the schema
Same record as the listing, without what is paid to the supplier.
Arguments
Subrent identifier.
Limits: min length 1
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Unique subrent identifier.
bulk if it is a quantity of a bulk item, serialized if it is a specific unit.
Available options: bulk, serialized
Subrent status.
Available options: pending, active, completed, cancelled
Identifier of the subrented item.
Name of the subrented item.
Item SKU; null if it has none.
Subrented units; null if it is a specific unit.
Identifier of the specific unit; null if bulk.
Code of the specific unit; null if bulk.
Identifier of the supplier that lends the material; null if not decided yet.
Supplier name; null if not decided yet.
true if the need is already covered, that is, if the supplier and material are confirmed.
Start of the required period in ISO 8601 UTC; null if not set.
End of the required period in ISO 8601 UTC; null if not set.
Pickup date from the supplier in ISO 8601 UTC; null if not set.
Return date to the supplier in ISO 8601 UTC; null if not set.
Order that motivates the subrent; null if it has none.
Associated project; null if it has none.
Purchase order that formalizes it; null if none has been issued.
Warehouse where the material is received; null if not applicable.
Subrent notes; null if it has none.
Creation date in ISO 8601 UTC.
Last modification date in ISO 8601 UTC.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
The same operation by REST
This tool runs GET /api/v1/subrents/{subrentId}.
Related pages
Link to this section: Related pagesSubrents
Get a subrent
Returns the detail of a subrent by its identifier.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?