Api event user set domain security policy: 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/set_domain_security_policy/ Description: Set the Domain security policy. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (Enumeration) | Two Factor Level | DOMAIN_ADMIN, EDITOR, HOST_SESSION, JOIN_ONLY, NONE or SUPER_USER |- | 1 | REQUIRED | (Integer number) | Min password length | |- | 2 | REQUIRED | (Integer number) | Login Key Expiration (in milliseconds) | |- | 3 | REQUIRED | (true, false) | Suppo..."
 
Server@tygron.com (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 47: Line 47:
===Example POST===
===Example POST===
Curl example POST
Curl example POST
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "NONE", 1, 46, true ]'
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "NONE", 1, 84, true ]'
</syntaxhighlight>
</syntaxhighlight>
Curl example multi item POST
Curl example multi item POST
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '[ "NONE", 1, 22, true ]'
<syntaxhighlight lang="text" copy>curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "NONE", 1, 51, true ]'
</syntaxhighlight>
</syntaxhighlight>
JavaScript example POST
JavaScript example POST
<syntaxhighlight lang="text" copy>var options = {
<syntaxhighlight lang="text" copy>var options = {
 method: "POST",
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
 body: '[ "NONE", 1, 46, true ]'
 body: '[ "NONE", 1, 84, true ]'
};
};
fetch("https://engine.tygron.com/api/event/user/set_domain_security_policy/", options)
fetch("https://engine.tygron.com/api/event/user/set_domain_security_policy/", options)

Latest revision as of 15:18, 20 November 2026

API Endpoint: api/event/user/set_domain_security_policy/

Description: Set the Domain security policy.

Index Importance Type Description Values
0 REQUIRED (Enumeration) Two Factor Level DOMAIN_ADMIN, EDITOR, HOST_SESSION, JOIN_ONLY, NONE or SUPER_USER
1 REQUIRED (Integer number) Min password length
2 REQUIRED (Integer number) Login Key Expiration (in milliseconds)
3 REQUIRED (true, false) Support access to GeoShare true or false

Response Codes

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

Example POST

Curl example POST

curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "NONE", 1, 84, true ]'

Curl example multi item POST

curl 'https://engine.tygron.com/api/event/user/set_domain_security_policy/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "NONE", 1, 51, true ]'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
 body: '[ "NONE", 1, 84, true ]'
};
fetch("https://engine.tygron.com/api/event/user/set_domain_security_policy/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

See also