Clarify PUT /accounts/self/emails/{addr} expects an object

Change-Id: I1b703bfb2db1bbaab1d6554a7876b62bd981ec2d
This commit is contained in:
Shawn Pearce
2016-06-03 18:37:28 -07:00
parent 66b972fdeb
commit 384a4a6586

View File

@@ -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