<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.hostway.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AResetPassword</id>
		<title>Template:ResetPassword - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.hostway.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AResetPassword"/>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Template:ResetPassword&amp;action=history"/>
		<updated>2026-05-18T11:14:16Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Template:ResetPassword&amp;diff=1940&amp;oldid=prev</id>
		<title>Mike.robski: 1 revision: Release 101</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Template:ResetPassword&amp;diff=1940&amp;oldid=prev"/>
				<updated>2014-12-17T04:50:56Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision: Release 101&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:50, 17 December 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mike.robski</name></author>	</entry>

	<entry>
		<id>http://docs.hostway.com/index.php?title=Template:ResetPassword&amp;diff=1939&amp;oldid=prev</id>
		<title>Jerry.dimitrov at 14:13, 4 December 2014</title>
		<link rel="alternate" type="text/html" href="http://docs.hostway.com/index.php?title=Template:ResetPassword&amp;diff=1939&amp;oldid=prev"/>
				<updated>2014-12-04T14:13:39Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= POST {{{base}}}/email/{domain}/usernames/{mailboxName}/{{{resource}}}/action =&lt;br /&gt;
Apply an action on{{{2}}}{{{1}}} mailbox e.g. '''reset password'''&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Request ==&lt;br /&gt;
&amp;lt;code&amp;gt;POST {{{base}}}/email/{domain}/usernames/{mailboxName}/{{{resource}}}/action&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Request Parameters ====&lt;br /&gt;
; account - ''string''&lt;br /&gt;
: The user account owning the domain and the{{{1}}} mailboxes&lt;br /&gt;
; domain - ''string''&lt;br /&gt;
: The specific domain for which the call will retrieve the list&lt;br /&gt;
; maiboxName - ''string''&lt;br /&gt;
: The name of the{{{1}}} mailbox.&lt;br /&gt;
&lt;br /&gt;
=== Request Headers ===&lt;br /&gt;
; Content-Type&lt;br /&gt;
: Required. Set this header to &amp;lt;code&amp;gt;application/json; charset=UTF-8&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Request Body ===&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{ &lt;br /&gt;
  &amp;quot;action&amp;quot;: &amp;quot;resetPassword&amp;quot;, &lt;br /&gt;
  &amp;quot;actionData&amp;quot;: {&lt;br /&gt;
    &amp;quot;secretQuestionsAnswers&amp;quot;: {&amp;quot;{tk}&amp;quot;: &amp;quot;{answer}&amp;quot;},&lt;br /&gt;
    &amp;quot;password&amp;quot;: &amp;quot;{password}&amp;quot;&lt;br /&gt;
  } &lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; action - ''string''&lt;br /&gt;
: The action that should be performed. Allowed values are:&lt;br /&gt;
:: '''resetPassword''' - Reset the password of{{{2}}}{{{1}}} mailbox.&lt;br /&gt;
&lt;br /&gt;
; actionData - ''dictionary (Required)''&lt;br /&gt;
: Data to be send with the action.&lt;br /&gt;
&lt;br /&gt;
; secretQuestionsAnswers - ''dictionary (Required)''&lt;br /&gt;
: Dictionary of key/value pairs, each of which represents '''secret question text key/answer''' pair.&lt;br /&gt;
&lt;br /&gt;
; tk - ''string'' (Required)&lt;br /&gt;
: The text key for the secret question. There should be no duplicate text keys per{{{1}}} mailbox.&lt;br /&gt;
&lt;br /&gt;
; answer - ''string'' (Required)&lt;br /&gt;
: The answer in plain-text - must be at least two characters.&lt;br /&gt;
{{:Accounts-account-email-domain-usernames-mailboxName-mailbox:PUT}}&lt;br /&gt;
&lt;br /&gt;
== Response ==&lt;br /&gt;
&lt;br /&gt;
=== Expected Response Codes  ===&lt;br /&gt;
; 204 No Content&lt;br /&gt;
: Success&lt;br /&gt;
&lt;br /&gt;
; 400 Bad Request&lt;br /&gt;
: The supplied action or the supplied data is invalid.&lt;br /&gt;
&lt;br /&gt;
; 404 Not Found&lt;br /&gt;
: The resource does not exist.&lt;br /&gt;
&lt;br /&gt;
; 409 Conflict&lt;br /&gt;
: Validation of the secret answer failed.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== Request password reset of{{{2}}}{{{1}}} mailbox ===&lt;br /&gt;
'''Request'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST &amp;lt;/nowiki&amp;gt;{{{base_example}}}&amp;lt;nowiki&amp;gt;/email/test.com/usernames/mailbox123/&amp;lt;/nowiki&amp;gt;{{{resource}}}&amp;lt;nowiki&amp;gt;/action&lt;br /&gt;
Content-Type: application/json; Charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
{ &lt;br /&gt;
  &amp;quot;action&amp;quot;: &amp;quot;resetPassword&amp;quot;,&lt;br /&gt;
  &amp;quot;actionData&amp;quot;: {&lt;br /&gt;
    &amp;quot;secretQuestionsAnswers&amp;quot;: {&amp;quot;tk1&amp;quot;: &amp;quot;answer123&amp;quot;},&lt;br /&gt;
    &amp;quot;password&amp;quot;: &amp;quot;pWord123$&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Response'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
204 No Content&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Request password reset of{{{2}}}{{{1}}} mailbox with wrong answer ===&lt;br /&gt;
'''Request'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
POST &amp;lt;/nowiki&amp;gt;{{{base_example}}}&amp;lt;nowiki&amp;gt;/email/test.com/usernames/mailbox123/&amp;lt;/nowiki&amp;gt;{{{resource}}}&amp;lt;nowiki&amp;gt;/action&lt;br /&gt;
Content-Type: application/json; Charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
{ &lt;br /&gt;
  &amp;quot;action&amp;quot;: &amp;quot;resetPassword&amp;quot;,&lt;br /&gt;
  &amp;quot;actionData&amp;quot;: {&lt;br /&gt;
    &amp;quot;secretQuestionsAnswersList&amp;quot;: {&amp;quot;tk1&amp;quot;: &amp;quot;wrongAnswer&amp;quot;},&lt;br /&gt;
    &amp;quot;password&amp;quot;: &amp;quot;pWord123$&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Response'''&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
409 Conflict&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;conflict&amp;quot;: {&lt;br /&gt;
    &amp;quot;message&amp;quot;: &amp;quot;Invalid secret questions and answers provided&amp;quot;,&lt;br /&gt;
    &amp;quot;code&amp;quot;: 409, &lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Email API|Email API]]&lt;br /&gt;
&lt;br /&gt;
{{disqus}}&lt;br /&gt;
[[Category:Hostway API]]&lt;br /&gt;
[[Category:Email API]]&lt;/div&gt;</summary>
		<author><name>Jerry.dimitrov</name></author>	</entry>

	</feed>