v1

latestOpenAPI 3.0.02026-07-24115101.2 MB
Folder

Create a folder

Use this endpoint to create a folder in the given workspace.

post/folders

Headers

x-oneflow-api-tokenstring required

The API key of your Oneflow account.

x-oneflow-user-emailstring email

The email address of a registered Oneflow user.

Request body

workspace_idinteger required

The unique ID of the workspace.

namestring required

The folder's name.

parent_idinteger nullable

The id of the parent folder.

Response

Returned the created folder.

idinteger required

Folder ID

namestring required

Folder name.

parent_idinteger nullable required

If exist any parent folder, its ID.

pathinteger[] required

An array of folder IDs representing the path from the top of the hierarchy to the current folder.

workspace_idinteger required

workspace ID