Api event user set domain security policy
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));