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.
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 or manually enter value. only select one method. if both are provided, the sequence is file > manually entered value. -Manually entered value must be existing cos path. parentFolderPath specifies the parent folder path. name specifies the file name. value example: /datastudio/resource/projectId/parentFolderPath/name. |
| BundleId | No | String | Bundle Client ID. |
| BundleInfo | No | String | bundle client info. |
| 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. |
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"
}{
"Response": {
"Data": {
"ResourceId": "5851e178-19c8-4ccf-9719-fda1e6b0b8eb"
},
"RequestId": "9b8d1e11-93db-4d27-9e88-3cdb7559ebe1"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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. |
Feedback