CreateTag
Creates a tag node.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
No |
The complete JSON string. For more information, see the following details. |
"" |
| BaseMeAgentId |
integer |
No |
The workspace ID. |
123456 |
| Field | Type | Required | Value | Description |
| name | String | Yes | "After-sales issue" | The tag name. The name must be 1 to 64 characters in length and must be unique under the same parent node. |
| description | String | No | "Used to aggregate all intents and FAQs related to after-sales service" | The node description. |
| parentTagId | Long | No | -1 | The parent tag node ID. A value of -1 indicates that the tag node is created under the root node. Default value: -1. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
106C6CA0-282D-4AF7-85F0-D2D24*** |
| Data |
object |
The returned result. |
|
| TagId |
integer |
The tag ID. |
128 |
| Name |
string |
The tag name. |
After-sales issue |
| Description |
string |
The tag description. |
Used to aggregate all intents and FAQs related to after-sales service |
| ParentTagId |
integer |
The parent tag node ID. |
-1 |
| CreateTime |
integer |
The time when the tag node was created. |
1748428991000 |
| ModifyTime |
integer |
The time when the tag node was last modified. |
1748428991000 |
| Code |
string |
The result code. A value of 200 indicates success, whereas other values indicate failure. You can determine the cause of the failure based on this field. |
200 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Message |
string |
The error message returned if an error occurs. |
successful |
Examples
Success response
JSON format
{
"RequestId": "106C6CA0-282D-4AF7-85F0-D2D24***",
"Data": {
"TagId": 128,
"Name": "售后问题",
"Description": "用于归集售后服务相关的所有意图与 FAQ",
"ParentTagId": -1,
"CreateTime": 1748428991000,
"ModifyTime": 1748428991000
},
"Code": "200",
"Success": true,
"Message": "successful"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.