Cognite JavaScript SDK > Assets

Class: Assets

Hierarchy

Assets

Index

Methods


Methods

<Static> create

create(assets: Partial<Asset>[]): Promise<Asset[]>

Defined in Assets.ts:87

Parameters:

Name Type
assets Partial<Asset>[]

Returns: Promise<Asset[]>


<Static> delete

delete(assetIds: number[]): Promise<void>

Defined in Assets.ts:142

Parameters:

Name Type
assetIds number[]

Returns: Promise<void>


<Static> list

list(params?: AssetListParams): Promise<AssetDataWithCursor>

Defined in Assets.ts:150

Parameters:

Name Type
Optional params AssetListParams

Returns: Promise<AssetDataWithCursor>


<Static> listDescendants

listDescendants(assetId: number, params?: AssetListDescendantsParams): Promise<AssetDataWithCursor>

Defined in Assets.ts:160

Parameters:

Name Type
assetId number
Optional params AssetListDescendantsParams

Returns: Promise<AssetDataWithCursor>


<Static> overwriteMultiple

overwriteMultiple(assets: Asset[]): Promise<void>

Defined in Assets.ts:134

Parameters:

Name Type
assets Asset[]

Returns: Promise<void>


<Static> retrieve

retrieve(assetId: number): Promise<Asset>

Defined in Assets.ts:98

Parameters:

Name Type
assetId number

Returns: Promise<Asset>


<Static> retrieveMultiple

retrieveMultiple(assetIds: number[]): Promise<Asset[]>

Defined in Assets.ts:104

Parameters:

Name Type
assetIds number[]

Returns: Promise<Asset[]>


search(params: AssetSearchParams): Promise<AssetDataWithCursor>

Defined in Assets.ts:171

Parameters:

Name Type
params AssetSearchParams

Returns: Promise<AssetDataWithCursor>


<Static> update

update(assetId: number, changes: object): Promise<Asset>

Defined in Assets.ts:115

Parameters:

Name Type
assetId number
changes object

Returns: Promise<Asset>


<Static> updateMultiple

updateMultiple(changes: any[]): Promise<Asset[]>

Defined in Assets.ts:123

Parameters:

Name Type
changes any[]

Returns: Promise<Asset[]>