roma__UpdateProductTopic
Updates a ROMA product topic's name, version, permission, or description to keep device topic definitions aligned with current messaging requirements.
Instructions
[ROMA] 更新产品主题
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": {
"instance_id": "<instance_id>",
"name": "<name>",
"permission": "<permission>",
"product_id": "<product_id>",
"project_id": "<project_id>",
"topic_id": "<topic_id>",
"version": "<version>"
},
"name": "roma__UpdateProductTopic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 主题名称,Topic类格式必须以“/”进行分层,区分每个类目。其中第一个为用户自定义的版本号;第二个已经规定好,为${deviceId}通配设备ID;第三个为用户自定义的topic类名。Topic类组成即为:/${version}/${deviceId}/${customizePart}。简单来说,Topic类:/v1/${deviceId}/customizePart是具体Topic:/v1/deviceid1/customizePart1和/v1/deviceid2/customizePart2等的集合。 | |
| version | Yes | 版本号,输入2-50个字符。值以字母或数字开头和结尾。仅允许使用字母,数字,中划线和点号。 | |
| topic_id | Yes | 产品主题ID | |
| permission | Yes | 主题权限 0-发布 1-订阅 | |
| product_id | Yes | 产品ID | |
| project_id | Yes | 项目ID,获取方式请参见《ROMA Connect API参考》的“附录 > 获取项目ID”章节。 | |
| description | No | 描述,长度0-200 | |
| instance_id | Yes | 实例ID |