Skip to main content

Workspaces API

Version: 1.0

Ensure the existence of all folders in a path

POST
/workspace/orgs/{org_id}/workspaces/{workspace_id}/folders/path/*

Ensures that all folders in the specified path exist. If a folder does not exist, it will be created.

Request

Path parameters
workspace_iduuid
Required
org_iduuid
Required

Responses

201

Successful Response

created_atdate-time
emailstring | null
iduuid
namestring | null
deletedboolean
folder_iduuid
namestring
parent_folder_iduuid | null
pathpath
updated_atdate-time
emailstring | null
iduuid
namestring | null
workspace_iduuid
{
"folders": [
{
"created_at": "2024-07-29T15:51:28.071Z",
"created_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"deleted": true,
"folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"parent_folder_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"path": "string",
"updated_at": "2024-07-29T15:51:28.071Z",
"updated_by": {
"email": "string",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"workspace_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]
}

401

No permission -- see authorization schemes

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

403

Request forbidden -- authorization will not help

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

404

Resource not found or user lacks access

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

405

Specified method is invalid for this resource

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

410

Resource is gone

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}

422

Unprocessable Content

detailstring | null
invalid-paramsobject[] | null
statusinteger
titlestring
typestring
{
"detail": "string",
"invalid-params": [
{
"name": "string",
"reason": "string"
}
],
"status": 0,
"title": "string",
"type": "string"
}