tencent cloud

ListCodeFolderContents
Last updated:2025-11-13 20:54:40
ListCodeFolderContents
Last updated: 2025-11-13 20:54:40

1. API Description

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

This API is used to get folder content.

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: ListCodeFolderContents.
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.
ParentFolderPath No String Parent folder path, such as /aaa/bbb/ccc. path header must include a slash. pass / for the root directory.
Keyword No String Folder name or code file name.
OnlyFolderNode No Boolean Queries folder only.
OnlyUserSelfScript No Boolean Specifies whether to query only code script created by user themselves.

3. Output Parameters

Parameter Name Type Description
Data Array of CodeFolderNode 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 ListCodeFolderContents

Input Example

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

{
    "ProjectId": "1470547050521227264",
    "ParentFolderPath": "/",
    "Keyword": "u76eeu5f55",
    "OnlyFolderNode": true,
    "OnlyUserSelfScript": false
}

Output Example

{
    "Response": {
        "Data": [
            {
                "AccessScope": "SHARED",
                "Children": [],
                "CreateUserUin": "100028579606",
                "Id": "cbcb6192-f047-49a3-9593-56f0e81ac900",
                "IsLeaf": false,
                "NodePermission": null,
                "OwnerUin": "100028579606",
                "Params": "",
                "Path": "/juno0829-1",
                "Title": "juno0829-1",
                "Type": "folder"
            }
        ],
        "RequestId": "637a9492-2aa7-40f0-b9a9-43cac3971375"
    }
}

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.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback