client
): AssetClient
Name | Type |
---|---|
client | SpaceportSDK |
AssetClient
params
): Promise
<CreateAssetResponse
>
Creates an asset record.
This method creates the asset metadata and returns the full asset data
that can be used for listings and other operations.
Name | Type | Description |
---|---|---|
params | CreateAssetParams | Parameters for creating the asset record. |
Promise
<CreateAssetResponse
>
Object containing success status, the created asset ID, and full asset data.
Example
params
): Promise
<BatchCreateAssetsResponse
>
Creates multiple asset records.
This method creates multiple asset metadata records and returns the full asset data
for each successfully created asset.
Supports both JSON-only requests and file uploads.
Name | Type | Description |
---|---|---|
params | BatchCreateAssetsParams | Parameters for batch creating asset records. |
Promise
<BatchCreateAssetsResponse
>
Object containing success status, created assets data, and any errors.
Example