Smart Folder

Smart Folder API allows you to list, create, update, delete smart folders, and query matching items.

triangle-exclamation

Endpoint Overview

Method
Endpoint
Description

GET

/api/v2/smartFolder/get

List smart folders

POST

/api/v2/smartFolder/get

List smart folders (request body)

POST

/api/v2/smartFolder/create

Create a smart folder

POST

/api/v2/smartFolder/update

Update a smart folder

POST

/api/v2/smartFolder/remove

Delete a smart folder

GET

/api/v2/smartFolder/getItems

Get matching items

POST

/api/v2/smartFolder/getItems

Get matching items (request body)

GET

/api/v2/smartFolder/getRules

Get available rule schema


GET /api/v2/smartFolder/get

List all smart folders, or filter by ID.

Query Parameters

  • id string (optional) — Return a single smart folder by ID

  • ids string (optional) — Comma-separated smart folder IDs

Response

Examples


POST /api/v2/smartFolder/get

Same as GET, but accepts filter parameters in a JSON body.

Request Body

  • id string (optional) — Smart folder ID

  • ids string[] (optional) — Array of smart folder IDs

Examples


POST /api/v2/smartFolder/create

Create a new smart folder.

Request Body

  • name string (required) — Smart folder name

  • conditions Object[] (required) — Filter conditions (see Conditions Format below)

  • description string (optional) — Description

  • icon string (optional) — Icon

  • iconColor string (optional) — Icon color. Allowed values: red, orange, yellow, green, aqua, blue, purple, pink

  • parent string (optional) — Parent smart folder ID. If omitted, creates at root level.

Response

Returns the newly created smart folder object.

Examples


POST /api/v2/smartFolder/update

Update an existing smart folder's metadata. Only the fields you include will be modified.

Request Body

  • id string (required) — Smart folder ID to update

Modifiable fields:

  • name string (optional) — New name

  • conditions Object[] (optional) — New filter conditions

  • description string (optional) — New description

  • icon string (optional) — New icon

  • iconColor string (optional) — New icon color

Response

Returns the updated smart folder object.

Examples


POST /api/v2/smartFolder/remove

Delete a smart folder. This also removes all its child smart folders.

Request Body

  • id string (required) — Smart folder ID to delete

Response

Examples


GET /api/v2/smartFolder/getItems

Get items that match the smart folder's filter conditions.

Query Parameters

  • smartFolderId string (required) — Smart folder ID

  • orderBy string (optional) — Sort field

  • fields string (optional) — Comma-separated list of fields to return

Response

Examples


POST /api/v2/smartFolder/getItems

Same as GET, but accepts parameters in a JSON body.

Request Body

  • smartFolderId string (required) — Smart folder ID

  • orderBy string (optional) — Sort field

  • fields string[] (optional) — Fields to return

Examples


GET /api/v2/smartFolder/getRules

Get the available filter rule schema. Returns supported methods, valueType, options, and more for each property, enabling callers to dynamically construct valid conditions.

Response

Examples

circle-info

Tip: Call getRules first to get all available properties and methods, then build your conditions based on the returned schema before passing them to create or update. This helps avoid invalid filter conditions.


Conditions Format

A smart folder's conditions is an array of condition groups, each containing multiple rules:

Condition Group Properties

Property
Type
Description

rules

Object[]

Array of rules

match

string

Logic between rules. "AND": all must match; "OR": any must match

boolean

string

Include/exclude logic. "TRUE" (include, default) or "FALSE" (exclude)

Rule Properties

Property
Type
Description

property

string

Filter property (e.g., name, width, type)

method

string

Filter method (e.g., contain, >, equal)

value

any

Filter value (format depends on property and method)

circle-info

Tip: Use GET /api/v2/smartFolder/getRules to query all available properties, methods, and their corresponding valueTypes.


SmartFolder Properties

Smart folders returned by the API contain the following properties:

Property
Type
Description

id

string

Unique smart folder ID

name

string

Name

conditions

Object[]

Filter conditions

description

string

Description

icon

string

Icon

iconColor

string

Icon color

children

Object[]

Child smart folders

modificationTime

integer

Last modification timestamp

imageCount

integer

Number of matching items

Last updated