tencent cloud

APIs

CreateContentIdentifier

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-11-25 17:00:09

1. API Description

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

This API is used to create a content identifier. You can set the description, tag, and other information. At the same time, you need to bind an enterprise package for billing data statistics. A content identifier can only be bound to one billing package, while a billing package can bind multiple content identifiers. This functionality is only available to allowlisted users.

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 Name Required Type Description
Action Yes String Common Params. The value used for this API: CreateContentIdentifier.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
Description Yes String Description of the content identifier. Length limited to 20 characters.
PlanId Yes String Target bundle ID to be bound. Enterprise edition only.
  • If a package already exists under your account, go to Plan management to get the package ID, and bind the content identifier to that package directly;
  • If you currently have no bindable package, purchase an enterprise edition package first.
  • Tags.N No Array of Tag Tag. This parameter is used for authority control over content identifiers. Go to the tag console (https://console.tencentcloud.com/tag/taglist) first to create tags before you can input the corresponding tag key and tag value here.

    3. Output Parameters

    Parameter Name Type Description
    ContentId String ID of the generated content. After creation is completed, go to the rule engine to set the content identifier under certain match conditions.
    RequestId String The 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 a Content Identifier

    Create a content identifier and bind tags simultaneously.

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: CreateContentIdentifier
    <Common request parameters>
    
    {
        "Tags": [
            {
                "TagKey": "testkey",
                "TagValue": "testvalue"
            }
        ],
        "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.

    Ajuda e Suporte

    Esta página foi útil?

    comentários