Api event user reset passwd: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
Server@tygron.com (talk | contribs)
Created page with "API Endpoint: api/event/user/reset_passwd/ Description: Reset the password for the specified user. The user will receive a new temporary password in their email. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (String) | Username | |} ===Response Codes=== {|class=wikitable !Response Code: !Description |- | 200 | Boolean (Content was updated) |- | 300-600 | Codes Overview |} ===Example POST=== Curl example POST <syntaxhighlight lang=..."
 
Server@tygron.com (talk | contribs)
No edit summary
Line 28: Line 28:
|}
|}
===Example POST===
===Example POST===
Curl example POST
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/reset_passwd/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '"Username"'
</syntaxhighlight>
JavaScript example POST
<syntaxhighlight lang="text" copy>var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
 body: '"Username"'
};
fetch("https://engine.tygron.com/api/event/user/reset_passwd/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));
</syntaxhighlight>
{{article end|seealso=*[[Api event user]]
{{article end|seealso=*[[Api event user]]
}}
}}


[[Category:API]]
[[Category:API]]

Revision as of 15:10, 20 November 2026

API Endpoint: api/event/user/reset_passwd/

Description: Reset the password for the specified user. The user will receive a new temporary password in their email.

Index Importance Type Description Values
0 REQUIRED (String) Username

Response Codes

Response Code: Description
200 Boolean (Content was updated)
300-600 Codes Overview

Example POST

See also