# Dotfiles ## GetDotfilesConfiguration `client.Users.Dotfiles.Get(ctx, body) (*UserDotfileGetResponse, error)` **post** `/gitpod.v1.UserService/GetDotfilesConfiguration` Gets the dotfiles for a user. Use this method to: - Retrieve user dotfiles ### Examples - Get dotfiles: Retrieves the dotfiles for the current user. ```yaml {} ``` ### Parameters - `body UserDotfileGetParams` - `Empty param.Field[bool]` ### Returns - `type UserDotfileGetResponse struct{…}` - `DotfilesConfiguration DotfilesConfiguration` - `Repository string` The URL of a dotfiles repository. ### Example ```go package main import ( "context" "fmt" "github.com/gitpod-io/gitpod-sdk-go" "github.com/gitpod-io/gitpod-sdk-go/option" ) func main() { client := gitpod.NewClient( option.WithBearerToken("My Bearer Token"), ) dotfile, err := client.Users.Dotfiles.Get(context.TODO(), gitpod.UserDotfileGetParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", dotfile.DotfilesConfiguration) } ``` #### Response ```json { "dotfilesConfiguration": { "repository": "https://example.com" } } ``` ## SetDotfilesConfiguration `client.Users.Dotfiles.Set(ctx, body) (*UserDotfileSetResponse, error)` **post** `/gitpod.v1.UserService/SetDotfilesConfiguration` Sets the dotfiles configuration for a user. Use this method to: - Configure user dotfiles - Update dotfiles settings ### Examples - Set dotfiles configuration: Sets the dotfiles configuration for the current user. ```yaml { "repository": "https://github.com/gitpod-io/dotfiles", } ``` - Remove dotfiles: Removes the dotfiles for the current user. ```yaml {} ``` ### Parameters - `body UserDotfileSetParams` - `Repository param.Field[string]` ### Returns - `type UserDotfileSetResponse interface{…}` ### Example ```go package main import ( "context" "fmt" "github.com/gitpod-io/gitpod-sdk-go" "github.com/gitpod-io/gitpod-sdk-go/option" ) func main() { client := gitpod.NewClient( option.WithBearerToken("My Bearer Token"), ) response, err := client.Users.Dotfiles.Set(context.TODO(), gitpod.UserDotfileSetParams{ }) if err != nil { panic(err.Error()) } fmt.Printf("%+v\n", response) } ``` #### Response ```json {} ``` ## Domain Types ### Dotfiles Configuration - `type DotfilesConfiguration struct{…}` - `Repository string` The URL of a dotfiles repository.