POST
/
folders
Ruby
require 'dub'

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

req = ::OpenApiSDK::Operations::CreateFolderRequestBody.new(
  name: "<value>",
)

res = s.folders.create(req)

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

Body

application/json

Response

201
application/json

The created folder

The response is of type object.