Home > @poq/sdk-sfcc > FoldersClient > getFoldersByID
To access a content folder, you construct a URL using the template shown below. This template requires you to specify a content folder id and a subfolder level. In response, the server returns a corresponding content folder document. Only content folder, which are marked as online are returned.
Signature:
getFoldersByID(id: string, levels?: number, locale?: string, options?: RequestOptions): Promise<PoqResponse<ContentFolder>>;
Parameter | Type | Description |
---|---|---|
id | string | The id of the requested content folder. |
levels | number | (Optional) |
locale | string | (Optional) |
options | RequestOptions | (Optional) Override http request option. |
Returns:
Promise<PoqResponse<ContentFolder>>