tencent cloud

CreateResourceFile
Last updated:2025-11-13 20:54:56
CreateResourceFile
Last updated: 2025-11-13 20:54:56

1. API Description

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

This API is used to create a resource file.

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: CreateResourceFile.
Version Yes String Common Params. The value used for this API: 2025-08-06.
Region Yes String Common Params. For more information, please see the list of regions supported by the product. This API only supports: ap-hongkong, ap-jakarta, ap-singapore, eu-frankfurt, na-ashburn, na-siliconvalley.
ProjectId Yes String Project ID.
ResourceName Yes String Resource file name. should be consistent with the uploaded file name.
BucketName Yes String Bucket name. can be obtained from the GetResourceCosPath api.
CosRegion Yes String BucketName specifies the cos storage bucket region.
ParentFolderPath Yes String Upload path for resource files in the project. value example: /wedata/qxxxm/. root directory, please use /.
ResourceFile Yes String -Upload file and manual entry are two methods, choose one. if both are provided, the sequence is file > manual entry.
-The manually entered value must be an existing cos path. /datastudio/resource/ is the fixed prefix. projectId is the project ID. import a specific value. parentFolderPath is the folder path. name is the file name. value example: /datastudio/resource/projectId/parentFolderPath/name.
BundleId No String Bundle Client ID.
BundleInfo No String bundle client info.

3. Output Parameters

Parameter Name Type Description
Data CreateResourceFileResult Create resource file result.
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 Creating a Resource

Input Example

POST / HTTP/1.1
Host: wedata.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateResourceFile
<Common request parameters>

{
    "ProjectId": "1460947xxxxxxxx6",
    "ResourceName": "api_list_dev.csv",
    "BucketName": "1219-agent-13xxx9",
    "CosRegion": "ap-beijing",
    "ParentFolderPath": "/qxxxxx/q2",
    "ResourceFile": null,
    "BundleId": "253",
    "BundleInfo": "wedata"
}

Output Example

{
    "Response": {
        "Data": {
            "ResourceId": "5851e178-19c8-4ccf-9719-fda1e6b0b8eb"
        },
        "RequestId": "9b8d1e11-93db-4d27-9e88-3cdb7559ebe1"
    }
}

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

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
MissingParameter Parameter missing.
ResourceNotFound The resource does not exist.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback