tencent cloud

All product documents
Tencent Cloud EdgeOne
CreateContentIdentifier
Last updated: 2025-02-19 19:34:37
CreateContentIdentifier
Last updated: 2025-02-19 19:34:37

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 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 limit of up to 20 characters.
PlanId Yes String Target 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.N No Array of Tag Tags of the content identifier. this parameter is used for authority control. to create tags, go to the tag console.

    3. Output Parameters

    Parameter Name Type Description
    ContentId String Generated content identifier id. after creation, you can 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 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.

    Was this page helpful?
    You can also Contact Sales or Submit a Ticket for help.
    Yes
    No

    Feedback

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support
    Hong Kong, China
    +852 800 906 020 (Toll Free)
    United States
    +1 844 606 0804 (Toll Free)
    United Kingdom
    +44 808 196 4551 (Toll Free)
    Canada
    +1 888 605 7930 (Toll Free)
    Australia
    +61 1300 986 386 (Toll Free)
    EdgeOne hotline
    +852 300 80699
    More local hotlines coming soon