Class ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString

All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyMePasswordPostString>, ClientRequestCommand<Customer>, CreateHttpRequestCommand, HttpRequestCommand<Customer>, RequestCommand<Customer>

Changing the password of the Customer produces the CustomerPasswordUpdated Message with reset=false. Returns a 200 OK status if successful.

A ResourceNotFound error is returned in the following scenarios:

  • If no Customer exists with the id specified in the customer:{id} scope.
  • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.


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