Folders

Get the descendants of a folder

PUT
/v1_1/{cloud_name}/folders/descendants

Returns the descendant folders of the folder with the specified identifier, optionally filtered to a set of folder identifiers.

Authorization

AuthorizationBasic <token>

Basic authentication using Cloudinary API Key and API Secret.

In: header

Path Parameters

cloud_name*string

The cloud name of your product environment.

Request Body

application/json

The parent folder identifier and optional filter.

The parent folder identifier and optional descendant filter.

id*string

The immutable identifier of the parent folder whose descendants are returned.

filter_ids?array<string>

A list of folder identifiers to restrict the returned descendants to.

inclusive?boolean

Whether to include the parent folder itself in the results. If false, only descendants are returned.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/v1_1/my_cloud/folders/descendants" \  -H "Content-Type: application/json" \  -d '{    "id": "string"  }'
{  "folders": [    {      "name": "string",      "path": "string",      "external_id": "string",      "created_at": "2019-08-24T14:15:22Z",      "resource_count": 0,      "total_bytes": 0,      "last_uploaded_at": 0,      "ancestors": [        {          "name": "string",          "path": "string",          "external_id": "string",          "created_at": "2019-08-24T14:15:22Z"        }      ]    }  ]}