Replace asset
replace_assetMake a file a new version of an asset: withAssetId (a file already in the library, such as one just sent with create_upload or import_media to: folder) becomes its current version, in its place, collections and tags; the old one is kept. Projects keep the version they use and show the newer one: update_version moves a project to it.
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": {
"assetId": "<assetId>",
"withAssetId": "<withAssetId>"
},
"name": "replace_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | ||
| withAssetId | Yes |