Add API to allow self service user to change their password

This commit is contained in:
Adi Narayana Raju
2016-10-25 14:08:22 +05:30
parent 525e8becb4
commit b3c4f75f11
2 changed files with 114 additions and 0 deletions
+40
View File
@@ -3360,6 +3360,14 @@
<td></td>
<td></td>
</tr>
<tr>
<td><a href="#selfuser">Update User</a></td>
<td>self/user</td>
<td></td>
<td></td>
<td><a href="#selfuser">Update User</a></td>
<td></td>
</tr>
<tr>
<td><a href="#selflistclients">Clients</a></td>
<td>self/clients</td>
@@ -42919,6 +42927,38 @@ No Request Body
</div>
</div>
<a id="selfuser" name="selfuser" class="old-syle-anchor">&nbsp;</a>
<div class="method-section">
<div class="method-description">
<h4>Update User</h4>
<p>This API can be used by Self Service user to update their own user information. Currently, "password" and "repeatPassword" are the only parameters accepted.</p>
</div>
<div class="method-example">
<code class="method-declaration">
PUT https://DomainName/api/v1/self/user
</code>
<code class="method-request">
PUT self/user
Content-Type: application/json
{
"password":"Abcd1234",
"repeatPassword":"Abcd1234"
}
</code>
<p>Example response</p>
<code class="method-response">
{
"officeId": 1,
"resourceId": 6,
"changes": {
"passwordEncoded": "6a72a630795be86fe926ce540fc45b6b922fe5ba130f185fe806a26b5e5efcdd"
}
}
</code>
</div>
</div>
<a id="selflistclients" name="selflistclients" class="old-syle-anchor">&nbsp;</a>
<div class="method-section">
<div class="method-description">