Interface PlaceAssetQueryOptions

Mapping of available query parameters for the assets index endpoint

interface PlaceAssetQueryOptions {
    _poll?: boolean;
    barcode?: string;
    cache?: number;
    fields?: string;
    limit?: number;
    offset?: number;
    order_id?: string;
    q?: string;
    ref?: string;
    serial_number?: string;
    type_id?: string;
    zone_id?: string;
}

Hierarchy (View Summary)

Properties

_poll?: boolean

Whether the request is a API poll request

barcode?: string

Return assets that have a matching barcode

cache?: number

Number of milliseconds to cache the query response

fields?: string

Ignored by the server since PlaceOS moved search to PostgreSQL (PPT-2644)

limit?: number

Number of results to return. Defaults to 20. Max 10000

offset?: number

Offset of the results to return. Max 1000000

order_id?: string

Return assets that match the purchase order ID provided

q?: string

Free-text search filter. Words match as prefixes against the resource's searchable fields (PostgreSQL full-text search); all words must match.

ref?: string

Ignored by the server; pagination follows the Link header's offset

serial_number?: string

Return assets that have a matching serial number

type_id?: string

Return assets that match the asset type ID provided

zone_id?: string

Return assets which are in the zone provided