CreateContentIdentifier

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

This API is used to create content identifiers, where you can set descriptions, tags, and other information. It is also necessary to bind an enterprise edition package for billing data statistics. A content identifier can only bind one billing package, while a billing package can bind multiple content identifiers. This feature is only available to the allowlist.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter NameRequiredTypeDescription
ActionYesStringCommon Params. The value used for this API: CreateContentIdentifier.
VersionYesStringCommon Params. The value used for this API: 2022-09-01.
RegionNoStringCommon Params. This parameter is not required.
DescriptionYesStringDescription of the content identifier, length limit of up to 20 characters.
PlanIdYesStringTarget plan id to be bound, available only for the enterprise edition.
  • if there is already a plan under your account, go to plan management to get the plan id and directly bind the content identifier to the plan;
  • if you do not have a plan to bind, please purchase an enterprise edition plan first.
  • .
    Tags.NNoArray of TagTags of the content identifier. this parameter is used for authority control. to create tags, go to the tag console.

    3. Output Parameters

    Parameter NameTypeDescription
    ContentIdStringGenerated content identifier id. after creation, you can go to the rule engine to "set the content identifier" under certain match conditions.
    RequestIdStringThe unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

    4. Example

    Example1 Create Content Identifiers

    Create content identifiers and bind tags.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: CreateContentIdentifier
    <Common request parameters>
    
    {
        "Tags": [
            {
                "TagKey": "test",
                "TagValue": "abc"
            }
        ],
        "PlanId": "edgeone-37q0w7qali10",
        "Description": "content-test"
    }
    

    Output Example

    {
        "Response": {
            "ContentId": "eocontent-27q0p1bali16",
            "RequestId": "3c140219-cff9-470e-b241-907877d6fb03"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    There is no error code related to the API business logic. For other error codes, please see Common Error Codes.