visible 置 true,资源开始出现在列表中);改名 / 改文本(修改 name 字段;TTS 资源还可改 content)。注意:本接口要求 file_type 与原值一致,不可修改类型。{
"name": "巡检录音-2026Q2",
"file_type": "audio",
"visible": true
}curl --location --request PUT '/openapi/v2.0/speaker/api/v1/workspaces//resources/103' \
--header 'x-user-token;' \
--header 'x-user-token;' \
--header 'X-Request-Id: 5dff27bd-693c-4ace-979d-e26e920d497a' \
--header 'X-Request-Id;' \
--header 'X-Project-Uuid;' \
--header 'Content-Type: application/json' \
--data '{
"name": "巡检录音-2026Q2",
"file_type": "audio",
"visible": true
}'{
"code": 0,
"message": "success",
"data": {
"id": 103,
"name": "巡检录音-2026Q2",
"file_type": "audio",
"object_key": "speaker/{org}/{prj}/rec.mp3",
"object_url": "https://oss.example.com/speaker/.../rec.mp3?signed=...",
"duration": 5,
"state": "complete",
"md5_sum": "0d8a...",
"created_at": 1717890200
}
}