CreateCallTags

更新时间:
复制 MD 格式

You can invoke CreateCallTags to create multiple call tags under a specified instance.

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 parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

CallTagNameList

string

Yes

A JSON-formatted string representing an array of call tag names. Each array element is a call tag name to be created. The length of each call tag name must be between 1 and 10 characters.

["TagA","TagB"]

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

EEEE671A-3E24-4A04-81E6-6C4F5B39DF75

HttpStatusCode

integer

The HTTP status code.

200

Code

string

The response code.

OK

Message

string

The response message.

Data

array<object>

The list of call tags that failed to be created.

object

Information about a call tag that failed to be created.

Item

string

The name of the call tag that failed to be created.

TagC

Reason

string

The reason why the call tag creation failed.

Valid values:

  • CALL_TAG_NAME_DUPLICATED :

    Duplicate items exist in the input list.

  • CALL_TAG_NAME_INSERT_DUPLICATED :

    Duplicate items were detected when writing call tags in the backend.

  • CALL_TAG_NAME_ILLEGAL :

    The input list contains call tags with invalid formats.

CALL_TAG_NAME_DUPLICATED

Examples

Success response

JSON format

{
  "RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "无",
  "Data": [
    {
      "Item": "TagC",
      "Reason": "CALL_TAG_NAME_DUPLICATED"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Blank The parameter %s must not be null or empty.
400 Parameter.Minimum The parameter %s must be greater than or equal to %s.
400 Parameter.Maximum The parameter %s must be less than or equal to %s.
400 LimitExceed.CallTagsPerInstance The total number of call tag of the instance exceeds the limit %s.
500 InternalService.DB An internal DB service error occurred. %s
404 NotExists.InstanceId The specified instance %s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.