curl --location 'https://ai.xihuyun.com/v1/assets/import' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "https://example.com/reference.png",
"name": "reference.png",
"asset_type": "Image",
"folder_id": "folder_xxxxxxxx",
"storage_mode": "default",
"agreed": true
}'{
"success": true,
"data": {
"upload_batch_id": "batch_xxxxxxxx",
"assets": [
{
"asset_id": "string",
"asset_uri": "string",
"name": "string",
"asset_type": "string"
}
],
"items": [
{
"status": "success",
"error": "unsupported file extension"
}
]
}
}