PATCH
/
folders
/
{id}
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.folders.update("<id>");

  // Handle the result
  console.log(result);
}

run();
{
  "id": "<string>",
  "name": "<string>",
  "type": "default",
  "accessLevel": null,
  "linkCount": 0,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

The ID of the folder to update.

Body

application/json

Response

200
application/json
The updated folder.

The response is of type object.