Class ByProjectKeyMePasswordPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyMePasswordPost,Customer,MyCustomerChangePassword>
com.commercetools.api.client.ByProjectKeyMePasswordPost
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyMePasswordPost>, ErrorableTrait<ByProjectKeyMePasswordPost>, io.vrap.rmf.base.client.ClientRequestCommand<Customer>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Customer>, io.vrap.rmf.base.client.RequestCommand<Customer>

public class ByProjectKeyMePasswordPost extends io.vrap.rmf.base.client.TypeBodyApiMethod<ByProjectKeyMePasswordPost,Customer,MyCustomerChangePassword> implements ConflictingTrait<ByProjectKeyMePasswordPost>, ErrorableTrait<ByProjectKeyMePasswordPost>

Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false.

If the current password does not match, an InvalidCurrentPassword error is returned.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.Customer>> result = apiRoot
            .withProjectKey("{projectKey}")
            .me()
            .password()
            .post(null)
            .execute()