Create a folder for the authenticated workspace.
Go
package main import( "context" dubgo "github.com/dubinc/dub-go" "log" ) func main() { ctx := context.Background() s := dubgo.New( dubgo.WithSecurity("DUB_API_KEY"), ) res, err := s.Folders.Create(ctx, nil) if err != nil { log.Fatal(err) } if res != nil { // handle response } }
{ "id": "<string>", "name": "<string>", "type": "default", "accessLevel": null, "createdAt": "<string>", "updatedAt": "<string>" }
Default authentication mechanism
The created folder
The response is of type object.
object
Was this page helpful?