PATCH
/
folders
/
{id}
PHP
declare(strict_types=1);

require 'vendor/autoload.php';

use Dub;

$sdk = Dub\Dub::builder()
    ->setSecurity(
        'DUB_API_KEY'
    )
    ->build();



$response = $sdk->folders->update(
    id: '<id>',
    requestBody: $requestBody

);

if ($response->folderSchema !== null) {
    // handle response
}
{
  "id": "<string>",
  "name": "<string>",
  "type": "default",
  "accessLevel": null,
  "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.