API: allow setting password when creating customer (#2758)

Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
Michael Stapelberg
2022-08-16 14:40:24 +02:00
committed by GitHub
co-authored by Raphael Michel
parent 9199d24df2
commit 5a8c567d02
4 changed files with 14 additions and 4 deletions
+7
View File
@@ -26,10 +26,16 @@ date_joined datetime Date and time o
locale string Preferred language of the customer
last_modified datetime Date and time of modification of the record
notes string Internal notes and comments (or ``null``)
password string Can only be set during creation of a new customer, will
not be included in any responses.
===================================== ========================== =======================================================
.. versionadded:: 4.0
.. versionchanged:: 4.3
Passwords can now be set through the API during customer creation.
Endpoints
---------
@@ -146,6 +152,7 @@ Endpoints
{
"email": "test@example.org",
"password": "verysecret",
"send_email": true
}