Skip to main content
PATCH
/
assets
/
{id}
Typescript (SDK)
import { Idalia } from "idalia";

const idalia = new Idalia({
  apiKeyAuth: process.env["IDALIA_API_KEY_AUTH"] ?? "",
});

async function run() {
  const result = await idalia.assets.update({
    id: "123",
  });

  console.log(result);
}

run();
{
  "id": "<string>",
  "createdAt": "<string>",
  "workspaceId": "<string>",
  "name": "<string>",
  "updatedAt": "<string>",
  "uid": "<string>",
  "statusId": "<string>",
  "assetTypeId": "<string>",
  "currentLocationId": "<string>",
  "updatedBy": "<string>",
  "trackUtilization": true,
  "manufacturedAt": "<string>",
  "acquiredAt": "<string>",
  "ownerId": "<string>",
  "manufacturerId": "<string>",
  "purchaseOrderId": "<string>",
  "externalIds": {}
}

Path Parameters

id
string
required

Asset ID

Body

application/json
name
string
required

The name of the asset

uid
string | null

Unique reference ID of the asset

statusId
string | null

ID of the assets's status

assetTypeId
string | null

ID of the asset's type

currentLocationId
string | null

ID of the asset's current location

trackUtilization
boolean | null
manufacturedAt
string | null

Datetime when the asset was manufactured

acquiredAt
string | null

Datetime when the asset was acquired

ownerId
string | null

ID of the company that owns the asset

manufacturerId
string | null

ID of the company that manufactured the asset

purchaseOrderId
string | null

ID of the purchase order used to purchase the asset

externalIds
object

Response

Successful response

id
string
required

The asset ID

createdAt
string
required

Datetime when the asset was created

workspaceId
string
required

The ID of the workspace the asset belongs to

name
string
required

The name of the asset

updatedAt
string | null

Datetime when the asset was last modified

uid
string | null

Unique reference ID of the asset

statusId
string | null

ID of the assets's status

assetTypeId
string | null

ID of the asset's type

currentLocationId
string | null

ID of the asset's current location

updatedBy
string | null

ID of the user who last updated the asset

trackUtilization
boolean | null
manufacturedAt
string | null

Datetime when the asset was manufactured

acquiredAt
string | null

Datetime when the asset was acquired

ownerId
string | null

ID of the company that owns the asset

manufacturerId
string | null

ID of the company that manufactured the asset

purchaseOrderId
string | null

ID of the purchase order used to purchase the asset

externalIds
object