Skip to main content
POST
Create a source folder

Authorizations

Authorization
string
header
required

Sign in with the existing Occtoo Studio identity and selected organization.

Path Parameters

sourceId
string
required

Raw id of the source (e.g. products).

Body

application/json

Holds a new folder of a source.

parentId
string<uuid>
required

Folder to create under. The root folder is the one whose own parentId is null.

displayName
string
required

Name of the folder, shown in Studio.

safeName
string
required

Alphanumeric; the last segment of the folder path.

Response

Created

Groups the entries of a source into a tree. Every source has one root folder, which all other folders descend from.

id
string<uuid>
required

Id of the folder (a UUID). Use with /v1/sources/{sourceId}/folders/{folderId}.

parentId
null | string<uuid>
required

Id of the parent folder. Null only for the root folder.

displayName
string
required

Name of the folder, shown in Studio. The root folder carries the source's name.

safeName
string
required

Name of the folder in its path: letters and digits only.

path
string
required

Path of the folder: the safeNames from the root folder down, joined by /. The root folder's path is the source's raw id. Unique within the source.

isSystem
boolean
required

True for the source's root folder, which every other folder descends from. It can't be renamed, moved or deleted.

createdAt
string<date-time>
required

When the folder was created (UTC).

updatedAt
string<date-time>
required

When the folder last changed (UTC).