tdx-asset-update
Update complete asset information in TeamDynamix by providing the asset ID and new data fields. This tool modifies existing asset records for IT service management.
Instructions
Full update of a TDX asset
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| appId | No | TDX app ID (defaults to env TDX_APP_ID) | |
| id | Yes | Asset ID | |
| data | Yes | Full asset data (PascalCase TDX field names) |
Implementation Reference
- src/tools/assets.ts:86-103 (handler)Registration and handler implementation for 'tdx-asset-update' tool. It takes an asset ID and full data, performing a POST request to update the TDX asset.
server.tool( "tdx-asset-update", "Full update of a TDX asset", { appId: z.number().optional().describe("TDX app ID (defaults to env TDX_APP_ID)"), id: z.number().describe("Asset ID"), data: z.record(z.unknown()).describe("Full asset data (PascalCase TDX field names)"), }, async (params) => { const app = params.appId ?? defaultAppId; try { const result = await client.post(`/${app}/assets/${params.id}`, params.data); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (e: unknown) { return { content: [{ type: "text", text: String(e) }], isError: true }; } } );