Clarify PUT /accounts/self/emails/{addr} expects an object
Change-Id: I1b703bfb2db1bbaab1d6554a7876b62bd981ec2d
This commit is contained in:
@@ -500,12 +500,16 @@ If link:config-gerrit.html#sendemail.allowrcpt[sendemail.allowrcpt] is
|
||||
configured, the added email address must belong to a domain that is
|
||||
allowed, unless `no_confirmation` is set.
|
||||
|
||||
In the request body additional data for the email address can be
|
||||
provided as link:#email-input[EmailInput].
|
||||
The link:#email-input[EmailInput] object in the request body may
|
||||
contain additional options for the email address.
|
||||
|
||||
.Request
|
||||
----
|
||||
PUT /accounts/self/emails/john.doe@example.com HTTP/1.0
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Content-Length: 3
|
||||
|
||||
{}
|
||||
----
|
||||
|
||||
As response the new email address is returned as
|
||||
|
Reference in New Issue
Block a user