CreateTag

Updated at:

Creates a tag node.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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

FieldTypeRequiredValueDescription
nameStringYes"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.
descriptionStringNo"Used to aggregate all intents and FAQs related to after-sales service"The node description.
parentTagIdLongNo-1The 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: The call was successful.

  • false: The call failed.

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.