All Products
Search
Document Center

Direct Mail:CreateTag

Last Updated:Mar 13, 2024

Creates a tag.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

TagName

String

Yes

vme

The name of the tag. Restriction description: The length is 1-50 characters, English letters and numbers are allowed, and underscores are not supported. You can create up to 10 mail tagname.

Action

String

No

CreateTag

The operation that you want to perform. Set the value to CreateTag.

TagDescription

String

No

testdescription

tag's description

Response parameters

Parameter

Type

Example

Description

RequestId

String

10A1AD70-E48E-476D-98D9-39BD92193837

The ID of the request.

TagId

String

xxxx

The ID of the tag.

Examples

Sample requests

http(s)://dm.aliyuncs.com/? Action=CreateTag
&TagName=vme
&TagDescription=testdescription
&<Common request parameters>

Sample success responses

XML format

<CreateTagResponse>
      <RequestId>10A1AD70-E48E-476D-98D9-39BD92193837</RequestId>
      <TagId>xxxx</TagId>
</CreateTagResponse>

JSON format

{
        "RequestId":"10A1AD70-E48E-476D-98D9-39BD92193837",
        "TagId":"xxxx"
}

Error codes

For a list of error codes, visit the API Error Center.