Update a customer password reset
PATCH https://{{subdomain}}.commercelayer.io/api/customer_password_resets/{{customer_password_reset_id}}
Request Body
{"data"=>{"type"=>"customer_password_resets", "id"=>"{{customer_password_reset_id}}", "attributes"=>{"customer_password"=>"{{customer_password_reset_customer_password}}", "_reset_password_token"=>"{{customer_password_reset__reset_password_token}}", "metadata"=>"{{customer_password_reset_metadata}}"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"data":{"id":"xYZkjABcde","type":"customer_password_resets","links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde"},"attributes":{"customer_email":"john@example.com","reset_password_token":"xhFfkmfybsLxzaAP6xcs","reset_password_at":"2018-01-01T12:00:00.000Z","created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"}},"relationships":{"customer":{"links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/relationships/customer","related":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/customer"}},"events":{"links":{"self":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/relationships/events","related":"https://yourdomain.commercelayer.io/api/customer_password_resets/xYZkjABcde/events"}}},"meta":{"mode":"test"}}}