Saltar al contenido

assetLots

Módulo Assets · 5 operaciones

List asset lot rows

GET/asset-lots

A quantity of an asset class at a place (lot grain). Returns a cursor page of asset lot rows the caller may see. The default order is `created_at` ascending. Supports sparse fieldsets and the filter grammar.

Create an asset lot

POST/asset-lots

A quantity of an asset class at a place (lot grain). Creates an asset lot. Requires `Idempotency-Key`; a replay returns the original response. The organization is derived from the credential or the parent row, never from the body.

Get an asset lot

GET/asset-lots/{id}

A quantity of an asset class at a place (lot grain). Returns one asset lot with its `ETag`. A asset lot the caller may not see returns 404.

Update an asset lot

PATCH/asset-lots/{id}

A quantity of an asset class at a place (lot grain). Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.

Delete an asset lot

DELETE/asset-lots/{id}

A quantity of an asset class at a place (lot grain). Soft-deletes the asset lot: it moves to Trash and can be restored for its table's retention period.