Skip to main content
POST
Create Subdirectory

Authorizations

Authorization
string
header
required

Aspect API key (sk_...) in Authorization header. 'Bearer ' optional.

Path Parameters

directory_id
string<uuid>
required

Body

application/json

API request schema for creating a directory

name
string
required

Name of the directory

auto_rename
enum<string> | null

How to rename the directory when its name is taken. parenthesized adds the lowest free number in parentheses, starting at 1: Photos (1). numeric adds the lowest free number after a space, starting at 2: Photos 2. Without it, a name clash returns 409.

Available options:
parenthesized,
numeric

Response

Successful Response

API response schema for creating a directory

id
string<uuid>
required

Directory ID

name
string
required

Directory name

project_id
string<uuid>
required

ID of the project this directory belongs to

parent_id
string<uuid>
required

ID of the parent resource (directory or project)

created_by_user_id
string<uuid>
required

ID of the user that created the directory

created
string<date-time>
required

Creation timestamp

updated
string<date-time>
required

Last update timestamp

content_modified_at
string<date-time>
required

When the directory's contents last changed: a direct child was created, deleted, renamed, or moved in or out

Set only on symlinks: items, made by the desktop app or local drive, that point to another asset or directory. Pass a symlink's id in symlink_ids to move, trash, restore, or copy it; use symlink.target_id for everything else.