Skip to main content
POST
/
api
/
folders
Create folder
curl --request POST \
  --url https://api.mymarky.ai/api/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "business_id": "<string>",
  "name": "<string>",
  "parent_id": "<string>"
}
'
{
  "id": "<string>",
  "business_id": "<string>",
  "name": "<string>",
  "path": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "parent_id": "<string>",
  "updated_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mymarky.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
business_id
string
required

Business this folder belongs to

name
string
required

Folder name

parent_id
string | null

Parent folder ID (for nesting)

Response

Successful Response

id
string
required

Folder ID

business_id
string
required

Business this folder belongs to

name
string
required

Folder name

path
string
required

Full folder path

created_at
string<date-time>
required

When the folder was created

parent_id
string | null

Parent folder ID

updated_at
string<date-time> | null

Last update time