Skip to main content
POST
Move 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).

folderId
string<uuid>
required

Id of the folder (a UUID).

Body

application/json

Holds the new parent of a folder.

parentId
string<uuid>
required

The new parent, a folder of the same source.

Response

OK

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).