Skip to main content
PATCH
Update a folder
Updates a folder’s name, kind, or labels, moves it, or changes its status. Omitted fields remain unchanged, metadata replaces all existing labels (send {} to clear), and parent_folder_id cannot be combined with status in the same request.
  • Move: Pass an active parent_folder_id (or null for top level) to move the folder and its entire subtree. Moves that create a cycle return 422 folder_cycle; moves exceeding 8 levels return 422 folder_too_deep.
  • Archive: Set status to ARCHIVED only after every nested folder and program (including SUSPENDED programs) is archived (409 folder_has_unarchived_contents otherwise).
  • Restore: Set status to ACTIVE when top-level or under an active parent (409 folder_parent_archived otherwise). Restoring a folder does not restore its programs.
For usage patterns and examples, see the Folders guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Path Parameters

folder_id
string<uuid>
required

Folder ID

Body

application/json

Fields to update

Partially update a folder. Send at least one field; parent_folder_id and status cannot be combined.

kind
string | null

Level classification (send null to clear).

Example:

"brand"

metadata
object

Key-value string labels; replaces all existing labels (send {} to clear).

name
string

New display name, unique among siblings under the same parent or at top level (case-insensitive).

Maximum string length: 255
Example:

"Coffee"

parent_folder_id
string<uuid> | null

Target active parent folder UUID to move the folder and its subtree (send null for top level; cannot be sent with status).

Example:

"6a8c0e24-d3f5-4b79-9c1b-e5a7c9b1d335"

status
enum<string>

Target lifecycle status (cannot be sent with parent_folder_id).

Available options:
ACTIVE,
ARCHIVED
Example:

"ARCHIVED"

Response

Updated folder

A folder that organizes programs and nested folders within an organization.

created_at
string<date-time>

When the folder was created.

Example:

"2027-01-15T10:30:00Z"

external_id
string

External identifier, unique per organization.

Example:

"brand-coffee"

id
string<uuid>

UUID passed as folder_id in paths and parent_folder_id on child folders.

Example:

"2c4e6a80-b1d3-4f57-8a92-c3e5a7b9d134"

kind
string

Level classification (e.g., brand, region); informational only.

Example:

"brand"

metadata
object

Key-value string labels attached to this folder.

name
string

Display name, unique among siblings under the same parent or at top level (case-insensitive).

Example:

"Coffee"

parent_folder_id
string<uuid>

Parent folder UUID (absent for top-level folders).

Example:

"6a8c0e24-d3f5-4b79-9c1b-e5a7c9b1d335"

status
enum<string>

Lifecycle status of the folder.

Available options:
ACTIVE,
ARCHIVED
Example:

"ACTIVE"

updated_at
string<date-time>

When the folder was last modified.

Example:

"2027-01-15T10:30:00Z"