Domain name for API request: wedata.intl.tencentcloudapi.com.
This API is used to create a code 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: CreateCodeFile. |
| 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. |
| ProjectId | Yes | String | Project ID. |
| CodeFileName | Yes | String | Filename of the code file. |
| ParentFolderPath | Yes | String | Parent folder path, such as /aaa/bbb/ccc. the path must start with a slash. use / for the root directory. |
| CodeFileConfig | No | CodeFileConfig | Specifies the code file configuration. |
| CodeFileContent | No | String | Specifies the code file content. |
| Parameter Name | Type | Description |
|---|---|---|
| Data | CodeFile | 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: CreateCodeFile
<Common request parameters>
{
"ProjectId": "1470547050521227264",
"CodeFileName": "testFile-0917-1.ipynb",
"ParentFolderPath": "/",
"CodeFileConfig": {
"Params": "p1",
"NotebookSessionInfo": {
"NotebookSessionId": "dfdfds-3343gdfs-454",
"NotebookSessionName": "session1"
}
}
}{
"Response": {
"Data": {
"AccessScope": "SHARED",
"CodeFileConfig": {
"NotebookSessionInfo": {
"NotebookSessionId": "dfdfds-3343gdfs-454",
"NotebookSessionName": "session1"
},
"Params": "p1"
},
"CodeFileContent": "",
"CodeFileId": "2bfa8813-344f-4858-a2cc-7a07bd10ac1d",
"CodeFileName": "testFile-0917-1.ipynb",
"CreateTime": "2025-09-17 18:51:32",
"OwnerUin": "100028579606",
"Path": "/testFile-0917-1.ipynb",
"ProjectId": "1470547050521227264",
"UpdateTime": "2025-09-17 18:51:32",
"UpdateUserUin": "100028579606"
},
"RequestId": "a54aa353-e71f-4507-9c72-80cdbe8dbb78"
}
}
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. |
Feedback