PATCH
/
folders
/
{id}
Ruby
require 'dub'

s = ::OpenApiSDK::Dub.new(
      security: ::OpenApiSDK::Shared::Security.new(
        token: "DUB_API_KEY",
      ),
    )

res = s.folders.update(id="<id>", request_body=::OpenApiSDK::Operations::UpdateFolderRequestBody.new())

if ! res.folder_schema.nil?
  # handle response
end
{
  "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.