Update a folder in the workspace.
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>" }
Default authentication mechanism
The ID of the folder to update.
The updated folder.
The response is of type object.
object
Was this page helpful?