Skip to content

Latest commit

 

History

History
71 lines (44 loc) · 1.83 KB

MeChangepasswordApi.md

File metadata and controls

71 lines (44 loc) · 1.83 KB

\MeChangepasswordApi

All URIs are relative to https://ocis.ocis.rolling.owncloud.works/graph

Method HTTP request Description
ChangeOwnPassword Post /v1.0/me/changePassword Change your own password

ChangeOwnPassword

ChangeOwnPassword(ctx).PasswordChange(passwordChange).Execute()

Change your own password

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/owncloud/libre-graph-api-go"
)

func main() {
	passwordChange := *openapiclient.NewPasswordChange("CurrentPassword_example", "NewPassword_example") // PasswordChange | Password change request

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	r, err := apiClient.MeChangepasswordApi.ChangeOwnPassword(context.Background()).PasswordChange(passwordChange).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `MeChangepasswordApi.ChangeOwnPassword``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiChangeOwnPasswordRequest struct via the builder pattern

Name Type Description Notes
passwordChange PasswordChange Password change request

Return type

(empty response body)

Authorization

openId, basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]