Add tag to entity
List entities in inventory (paginated with optional filtering)
Supports filtering by various entity properties. Filter arrays must have matching lengths.
Inventory UID, entity type, assign type, and optional pagination/filtering parameters
Assignment type: 'owner', 'commander', or 'pilot'
Entity type: 'ships', 'vehicles', 'stations', 'cities', 'facilities', 'planets', 'items', 'npcs', 'droids', 'creatures', or 'materials'
Optionalfilter_inclusion?: InventoryFilterInclusion[]Whether each filter should include or exclude matches. Default: 'includes'
Optionalfilter_type?: InventoryFilterType[]Filter types to apply to the query
Optionalfilter_value?: string[]Values corresponding to each filter type
Optionalitem_count?: numberNumber of items to retrieve. Default: 50, Max: 200
Optionalstart_index?: numberStarting position for pagination (1-based). Default: 1
const entities = await client.inventory.entities.list({ uid: '1:12345', entityType: 'vehicle', assignType: 'pilot' });
// Fetch up to 200 entities at once
const moreEntities = await client.inventory.entities.list({ uid: '1:12345', entityType: 'vehicle', assignType: 'pilot', start_index: 1, item_count: 200 });
// Filter by multiple criteria
const multiFiltered = await client.inventory.entities.list({
uid: '1:12345',
entityType: 'ships',
assignType: 'owner',
filter_type: ['class', 'powered'],
filter_value: ['Fighter', '1'],
filter_inclusion: ['includes', 'includes']
});
Remove all tags from entity
Remove tag from entity
Update entity property
Entity type (ships, vehicles, stations, etc.)
New value for the property
Property to update
Optionalreason?: stringOptional reason for the change
Entity UID
Inventory entities resource
See
https://www.swcombine.com/ws/v2.0/documentation/inventory/uid/entity_type/assign_type/ SW Combine API Documentation