Skip to main content
POST
/
public
/
v1
/
drive
/
folders
cURL
curl -X POST "https://api.copera.app/public/v1/drive/folders" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"My Folder"}'
{
  "_id": "<string>",
  "name": "<string>",
  "type": "<string>",
  "owner": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "mimeType": "<string>",
  "size": 123,
  "parent": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://developer.copera.ai/llms.txt

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

Overview

Creates a new folder in the drive. The authenticated user becomes the owner of the folder.

Request Body

  • name (required): The name of the folder.
  • parentId (optional): The ID of a parent folder to create this folder inside. Omit to create at the root level.

Response

Returns the newly created folder object with generated ID and timestamps.

Authorizations

Authorization
string
header
required

Bearer token

Body

application/json
name
string
required

Folder name

parentId
string

Parent folder ID

Pattern: ^[0-9a-fA-F]{24}$

Response

Default Response

_id
string
required
name
string
required
type
string
required

"file" or "folder"

owner
string
required
createdAt
string
required
updatedAt
string
required
mimeType
string
size
number
parent
string