POST
/
folders
from dub import Dub


with Dub(
    token="DUB_API_KEY",
) as d_client:

    res = d_client.folders.create()

    assert res is not None

    # Handle response
    print(res)
{
  "id": "<string>",
  "name": "<string>",
  "type": "default",
  "accessLevel": null,
  "linkCount": 0,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
name
string
required

The name of the folder.

Maximum length: 190
accessLevel
enum<string> | null

The access level of the folder within the workspace.

Available options:
write,
read

Response

201
application/json
The created folder
id
string
required

The unique ID of the folder.

name
string
required

The name of the folder.

type
enum<string>
required
Available options:
default,
mega
accessLevel
enum<string> | null
required

The access level of the folder within the workspace.

Available options:
write,
read

The number of links in the folder.

createdAt
string
required

The date the folder was created.

updatedAt
string
required

The date the folder was updated.