create_asset
Creates a generic asset in a watsonx project using a name, asset type, and optional type-specific attributes or description, enabling project resource registration.
Instructions
Generic asset creation — confirmed live at POST /v2/assets?project_id=...
(not /transactional/v2/assets, which is 404). asset_id is present directly
at the top level of the response, no defensive extraction needed for this one.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"name": "<name>",
"asset_type": "<asset_type>"
},
"name": "create_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| asset_type | Yes | e.g. 'data_asset', 'script', or a product-defined type. | |
| attributes | No | Opaque per-type payload, becomes the asset's `entity` content. Empty for a bare data_asset. | |
| project_id | Yes | ||
| description | No |