Documentation is still being updated. Some content maybe unfinished.
curl --request POST \
--url {protocol}://{host}/wp-json/cocart/preview/my-account \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"account_first_name": "<string>",
"account_last_name": "<string>",
"account_display_name": "<string>",
"account_email": "jsmith@example.com",
"password_current": "<string>",
"password_1": "<string>",
"password_2": "<string>"
}
'{
"success": true,
"message": "Account details updated successfully"
}Update customer account information including name, email, and password
A valid request URL is required to generate request examples{
"success": true,
"message": "Account details updated successfully"
}WordPress username and password
Account data to update
First name
Last name
Display name
Email address
Current password (required if changing password)
New password
Confirm new password (must match password_1)
Was this page helpful?