NAV Navbar
Shell HTTP JavaScript Node.JS Ruby Python Java Go
  • hawthorne v0.7.1
  • Authentication
  • User
  • Group
  • Role
  • Server
  • System
  • Steam
  • Capabilities
  • Mainframe
  • Schemas
  • hawthorne v0.7.1

    Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

    The hawthorne API is the main way to interact with the management server.

    Base URLs:

    Email: Support

    Authentication

    User

    API module for users

    GET /users

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description
    has_panel_access query boolean false No description
    role query string(uuid) false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /users

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/users \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/users HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "steamid": null,
      "id": "2a46a00c-66d6-47e1-a7c6-3bf3b8e6b0f3",
      "username": "string",
      "ip": "181.64.166.45",
      "country": null,
      "server": "806e02c6-b20b-4d0b-a095-c58eadd3ed75",
      "connected": null,
      "internal": false,
      "permissions": [
        "log.delete_serverchat",
        "social_django.add_partial",
        "core.change_server",
        "automated_logging.add_field",
        "automated_logging.change_unspecified"
      ],
      "groups": [
        0
      ],
      "local": true,
      "email": "daniellegarza@soto-wilson.com"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/users',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/users', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/users", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/users

    Body parameter

    {
      "steamid": null,
      "id": "2a46a00c-66d6-47e1-a7c6-3bf3b8e6b0f3",
      "username": "string",
      "ip": "181.64.166.45",
      "country": null,
      "server": "806e02c6-b20b-4d0b-a095-c58eadd3ed75",
      "connected": null,
      "internal": false,
      "permissions": [
        "log.delete_serverchat",
        "social_django.add_partial",
        "core.change_server",
        "automated_logging.add_field",
        "automated_logging.change_unspecified"
      ],
      "groups": [
        0
      ],
      "local": true,
      "email": "daniellegarza@soto-wilson.com"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <steamid/>
      <id>2a46a00c-66d6-47e1-a7c6-3bf3b8e6b0f3</id>
      <username>string</username>
      <ip>181.64.166.45</ip>
      <country/>
      <server>806e02c6-b20b-4d0b-a095-c58eadd3ed75</server>
      <connected/>
      <internal>false</internal>
      <permissions>log.delete_serverchat</permissions>
      <permissions>social_django.add_partial</permissions>
      <permissions>core.change_server</permissions>
      <permissions>automated_logging.add_field</permissions>
      <permissions>automated_logging.change_unspecified</permissions>
      <groups>0</groups>
      <local>true</local>
      <email>daniellegarza@soto-wilson.com</email>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » steamid body integer false No description
    » id body string(uuid) false No description
    » username body string false No description
    » ip body string(ip) false No description
    » country body string false No description
    » server body string(uuid) false No description
    » connected body boolean false No description
    » internal body boolean false No description
    » permissions body [string] false No description
    » groups body [integer] false No description
    » local body boolean false No description
    » email body string(email) false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /users/{uuid}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users/{uuid}

    Parameters

    Parameter In Type Required Description
    server query string(uuid) false No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /users/{uuid}

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/users/{uuid} \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/users/{uuid} HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "promotion": false,
      "force": false,
      "role": "4990e75c-f246-4bd4-983d-36e47bfa4dd3",
      "group": "3d966307-13a6-4d5c-b502-80e0ab216b5a"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/users/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/users/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/users/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/users/{uuid}

    Body parameter

    {
      "promotion": false,
      "force": false,
      "role": "4990e75c-f246-4bd4-983d-36e47bfa4dd3",
      "group": "3d966307-13a6-4d5c-b502-80e0ab216b5a"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <promotion>false</promotion>
      <force>false</force>
      <role>4990e75c-f246-4bd4-983d-36e47bfa4dd3</role>
      <group>3d966307-13a6-4d5c-b502-80e0ab216b5a</group>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » promotion body boolean false No description
    » force body boolean false No description
    » role body string(uuid) false No description
    » group body string(uuid) false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /users/{uuid}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/users/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/users/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/users/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/users/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/users/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/users/{uuid}

    Parameters

    Parameter In Type Required Description
    purge query boolean false No description
    reset query boolean false No description
    role query string(uuid) false No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /users/{steamid}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users/{steamid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users/{steamid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{steamid}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{steamid}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users/{steamid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users/{steamid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{steamid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users/{steamid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users/{steamid}

    Parameters

    Parameter In Type Required Description
    server query string(uuid) false No description
    steamid path string(steamid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /users/{steamid}

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/users/{steamid} \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/users/{steamid} HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{steamid}',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "promotion": false,
      "force": false,
      "role": "0ce7ca7f-0c39-48e8-8d59-e45f368bbff8",
      "group": "9b80e035-f19d-4331-9711-5276f137a43f"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{steamid}',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/users/{steamid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/users/{steamid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{steamid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/users/{steamid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/users/{steamid}

    Body parameter

    {
      "promotion": false,
      "force": false,
      "role": "0ce7ca7f-0c39-48e8-8d59-e45f368bbff8",
      "group": "9b80e035-f19d-4331-9711-5276f137a43f"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <promotion>false</promotion>
      <force>false</force>
      <role>0ce7ca7f-0c39-48e8-8d59-e45f368bbff8</role>
      <group>9b80e035-f19d-4331-9711-5276f137a43f</group>
    </root>
    

    Parameters

    Parameter In Type Required Description
    steamid path string(steamid) true No description
    body body object true No description
    » promotion body boolean false No description
    » force body boolean false No description
    » role body string(uuid) false No description
    » group body string(uuid) false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /users/{steamid}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/users/{steamid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/users/{steamid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{steamid}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{steamid}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/users/{steamid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/users/{steamid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{steamid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/users/{steamid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/users/{steamid}

    Parameters

    Parameter In Type Required Description
    purge query boolean false No description
    reset query boolean false No description
    role query string(uuid) false No description
    steamid path string(steamid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /users/{uuid}/auth

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users/{uuid}/auth?password=string \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users/{uuid}/auth?password=string HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/auth',
      method: 'get',
      data: '?password=string',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/auth?password=string',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users/{uuid}/auth',
      params: {
      'password' => 'string'
    }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users/{uuid}/auth', params={
      'password': 'string'
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/auth?password=string");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users/{uuid}/auth", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users/{uuid}/auth

    Parameters

    Parameter In Type Required Description
    password query string true No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /users/{uuid}/ban

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users/{uuid}/ban \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users/{uuid}/ban HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/ban',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users/{uuid}/ban', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/ban");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users/{uuid}/ban", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users/{uuid}/ban

    Parameters

    Parameter In Type Required Description
    server query string(uuid) false No description
    resolved query boolean false No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /users/{uuid}/ban

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/users/{uuid}/ban \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/users/{uuid}/ban HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "server": "13e69eed-cd5d-4452-a67c-b21d8b502983",
      "resolved": null,
      "reason": null,
      "length": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/ban',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/users/{uuid}/ban', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/ban");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/users/{uuid}/ban", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/users/{uuid}/ban

    Body parameter

    {
      "server": "13e69eed-cd5d-4452-a67c-b21d8b502983",
      "resolved": null,
      "reason": null,
      "length": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <server>13e69eed-cd5d-4452-a67c-b21d8b502983</server>
      <resolved/>
      <reason/>
      <length/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » server body string(uuid) true No description
    » resolved body boolean false No description
    » reason body string false No description
    » length body integer false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /users/{uuid}/ban

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/users/{uuid}/ban \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/users/{uuid}/ban HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "server": "fc7eb476-e837-4d9a-a649-ad68cd6e95a9",
      "reason": "string",
      "length": 0,
      "issuer": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/ban',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/users/{uuid}/ban', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/ban");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/users/{uuid}/ban", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/users/{uuid}/ban

    Body parameter

    {
      "server": "fc7eb476-e837-4d9a-a649-ad68cd6e95a9",
      "reason": "string",
      "length": 0,
      "issuer": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <server>fc7eb476-e837-4d9a-a649-ad68cd6e95a9</server>
      <reason>string</reason>
      <length>0</length>
      <issuer/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » server body string(uuid) false No description
    » reason body string true No description
    » length body integer true No description
    » issuer body integer false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /users/{uuid}/ban

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/users/{uuid}/ban?server=e0c6a038-96ff-4289-8015-4a4acb6d2ab2 \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/users/{uuid}/ban?server=e0c6a038-96ff-4289-8015-4a4acb6d2ab2 HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      method: 'delete',
      data: '?server=e0c6a038-96ff-4289-8015-4a4acb6d2ab2',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/ban?server=e0c6a038-96ff-4289-8015-4a4acb6d2ab2',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/users/{uuid}/ban',
      params: {
      'server' => 'string(uuid)'
    }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/users/{uuid}/ban', params={
      'server': 'e0c6a038-96ff-4289-8015-4a4acb6d2ab2'
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/ban?server=e0c6a038-96ff-4289-8015-4a4acb6d2ab2");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/users/{uuid}/ban", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/users/{uuid}/ban

    Parameters

    Parameter In Type Required Description
    server query string(uuid) true No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /users/{uuid}/kick

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/users/{uuid}/kick \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/users/{uuid}/kick HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/kick',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "server": "9cddbebe-4858-440f-b0ea-56fc4d5c7fbe"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/kick',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/users/{uuid}/kick',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/users/{uuid}/kick', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/kick");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/users/{uuid}/kick", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/users/{uuid}/kick

    Body parameter

    {
      "server": "9cddbebe-4858-440f-b0ea-56fc4d5c7fbe"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <server>9cddbebe-4858-440f-b0ea-56fc4d5c7fbe</server>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » server body string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /users/{uuid}/mutegag

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/users/{uuid}/mutegag \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/users/{uuid}/mutegag HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/users/{uuid}/mutegag', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/mutegag");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/users/{uuid}/mutegag", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/users/{uuid}/mutegag

    Parameters

    Parameter In Type Required Description
    server query string(uuid) false No description
    resolved query boolean false No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /users/{uuid}/mutegag

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/users/{uuid}/mutegag \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/users/{uuid}/mutegag HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "server": "f1aef666-18f0-4800-b5c9-8fe97b0708b1",
      "resolved": null,
      "type": "mute",
      "reason": null,
      "length": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/users/{uuid}/mutegag', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/mutegag");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/users/{uuid}/mutegag", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/users/{uuid}/mutegag

    Body parameter

    {
      "server": "f1aef666-18f0-4800-b5c9-8fe97b0708b1",
      "resolved": null,
      "type": "mute",
      "reason": null,
      "length": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <server>f1aef666-18f0-4800-b5c9-8fe97b0708b1</server>
      <resolved/>
      <type>mute</type>
      <reason/>
      <length/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » server body string(uuid) false No description
    » resolved body boolean false No description
    » type body string false No description
    » reason body string false No description
    » length body integer false No description

    Enumerated Values

    Parameter Value
    » type mute
    » type gag
    » type both

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /users/{uuid}/mutegag

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/users/{uuid}/mutegag \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/users/{uuid}/mutegag HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "server": "435a9c73-15b5-438f-80f6-a4200a3ffb77",
      "reason": "string",
      "type": "mute",
      "length": 0
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/users/{uuid}/mutegag', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/mutegag");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/users/{uuid}/mutegag", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/users/{uuid}/mutegag

    Body parameter

    {
      "server": "435a9c73-15b5-438f-80f6-a4200a3ffb77",
      "reason": "string",
      "type": "mute",
      "length": 0
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <server>435a9c73-15b5-438f-80f6-a4200a3ffb77</server>
      <reason>string</reason>
      <type>mute</type>
      <length>0</length>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » server body string(uuid) false No description
    » reason body string true No description
    » type body string false No description
    » length body integer true No description

    Enumerated Values

    Parameter Value
    » type mute
    » type gag
    » type both

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /users/{uuid}/mutegag

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/users/{uuid}/mutegag?server=d1f2d06c-e31d-44b3-a967-8534a66a63a7 \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/users/{uuid}/mutegag?server=d1f2d06c-e31d-44b3-a967-8534a66a63a7 HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      method: 'delete',
      data: '?server=d1f2d06c-e31d-44b3-a967-8534a66a63a7',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/users/{uuid}/mutegag?server=d1f2d06c-e31d-44b3-a967-8534a66a63a7',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/users/{uuid}/mutegag',
      params: {
      'server' => 'string(uuid)'
    }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/users/{uuid}/mutegag', params={
      'server': 'd1f2d06c-e31d-44b3-a967-8534a66a63a7'
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/users/{uuid}/mutegag?server=d1f2d06c-e31d-44b3-a967-8534a66a63a7");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/users/{uuid}/mutegag", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/users/{uuid}/mutegag

    Parameters

    Parameter In Type Required Description
    server query string(uuid) true No description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Group

    API interface for internal groups

    GET /groups

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/groups \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/groups HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/groups',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/groups',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/groups',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/groups', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/groups", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/groups

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /groups

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/groups \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/groups HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/groups',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "permissions": [
        "social_django.delete_association",
        "log.change_serverchat",
        "core.add_mutegag_mute",
        "log.change_serveraction"
      ],
      "members": [
        "497036ba-c13b-4f42-84b0-de370c16040b",
        "908796fc-c1b4-4321-bc74-2440a1ddcf15",
        "83f757f3-016b-496a-bf95-d2a6228ea2d9",
        "ebe7a306-2f56-4af6-b653-fd2cf99f48b5",
        "86b37845-de02-4f1b-84c9-f8f89918e418"
      ]
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/groups',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/groups',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/groups', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/groups");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/groups", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/groups

    Body parameter

    {
      "name": "string",
      "permissions": [
        "social_django.delete_association",
        "log.change_serverchat",
        "core.add_mutegag_mute",
        "log.change_serveraction"
      ],
      "members": [
        "497036ba-c13b-4f42-84b0-de370c16040b",
        "908796fc-c1b4-4321-bc74-2440a1ddcf15",
        "83f757f3-016b-496a-bf95-d2a6228ea2d9",
        "ebe7a306-2f56-4af6-b653-fd2cf99f48b5",
        "86b37845-de02-4f1b-84c9-f8f89918e418"
      ]
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name>string</name>
      <permissions>social_django.delete_association</permissions>
      <permissions>log.change_serverchat</permissions>
      <permissions>core.add_mutegag_mute</permissions>
      <permissions>log.change_serveraction</permissions>
      <members>497036ba-c13b-4f42-84b0-de370c16040b</members>
      <members>908796fc-c1b4-4321-bc74-2440a1ddcf15</members>
      <members>83f757f3-016b-496a-bf95-d2a6228ea2d9</members>
      <members>ebe7a306-2f56-4af6-b653-fd2cf99f48b5</members>
      <members>86b37845-de02-4f1b-84c9-f8f89918e418</members>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » name body string true No description
    » permissions body [string] false No description
    » members body [string] false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /groups/{int}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/groups/{int} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/groups/{int} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/groups/{int}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/groups/{int}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/groups/{int}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/groups/{int}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/groups/{int}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/groups/{int}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/groups/{int}

    Parameters

    Parameter In Type Required Description
    int path string(int64) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /groups/{int}

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/groups/{int} \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/groups/{int} HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/groups/{int}',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": null,
      "permissions": [
        "automated_logging.change_field",
        "core.change_server",
        "social_django.add_association",
        "auth.add_group",
        "core.add_server"
      ],
      "members": [
        "f5480d1b-d379-480a-b347-6892efa491c3",
        "09c8503b-9c79-40c4-9184-b3398df70a79",
        "c83fb744-4ab2-400b-afc1-b9a0fe1528fd",
        "7bb45d44-f582-4fc4-bcf3-ddd4783e30e0",
        "1865087c-bffa-4fde-8add-9531d412d8a5"
      ]
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/groups/{int}',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/groups/{int}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/groups/{int}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/groups/{int}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/groups/{int}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/groups/{int}

    Body parameter

    {
      "name": null,
      "permissions": [
        "automated_logging.change_field",
        "core.change_server",
        "social_django.add_association",
        "auth.add_group",
        "core.add_server"
      ],
      "members": [
        "f5480d1b-d379-480a-b347-6892efa491c3",
        "09c8503b-9c79-40c4-9184-b3398df70a79",
        "c83fb744-4ab2-400b-afc1-b9a0fe1528fd",
        "7bb45d44-f582-4fc4-bcf3-ddd4783e30e0",
        "1865087c-bffa-4fde-8add-9531d412d8a5"
      ]
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name/>
      <permissions>automated_logging.change_field</permissions>
      <permissions>core.change_server</permissions>
      <permissions>social_django.add_association</permissions>
      <permissions>auth.add_group</permissions>
      <permissions>core.add_server</permissions>
      <members>f5480d1b-d379-480a-b347-6892efa491c3</members>
      <members>09c8503b-9c79-40c4-9184-b3398df70a79</members>
      <members>c83fb744-4ab2-400b-afc1-b9a0fe1528fd</members>
      <members>7bb45d44-f582-4fc4-bcf3-ddd4783e30e0</members>
      <members>1865087c-bffa-4fde-8add-9531d412d8a5</members>
    </root>
    

    Parameters

    Parameter In Type Required Description
    int path string(int64) true No description
    body body object true No description
    » name body string false No description
    » permissions body [string] false No description
    » members body [string] false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /groups/{int}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/groups/{int} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/groups/{int} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/groups/{int}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/groups/{int}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/groups/{int}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/groups/{int}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/groups/{int}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/groups/{int}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/groups/{int}

    Parameters

    Parameter In Type Required Description
    int path string(int64) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Role

    API interface for server roles

    GET /roles

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/roles \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/roles HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/roles',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/roles',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/roles',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/roles', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/roles", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/roles

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /roles

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/roles \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/roles HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/roles',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "immunity": 0,
      "server": "1804d828-7737-4b98-9dbd-92e6cb886cfd",
      "usetime": null,
      "flags": null,
      "members": [
        "0b9839e9-cf3f-48cb-bfa1-e5c6c7e3d800",
        "53f97625-2d47-4fdc-9799-58452296881b",
        "cdf22040-9fb0-4d73-b0f1-272b98defe74",
        "450f65b1-bcb8-4212-b63c-7e455eab5d68",
        "5b051cd2-e529-494d-beca-eda69a81cb6b"
      ]
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/roles',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/roles',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/roles', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/roles");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/roles", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/roles

    Body parameter

    {
      "name": "string",
      "immunity": 0,
      "server": "1804d828-7737-4b98-9dbd-92e6cb886cfd",
      "usetime": null,
      "flags": null,
      "members": [
        "0b9839e9-cf3f-48cb-bfa1-e5c6c7e3d800",
        "53f97625-2d47-4fdc-9799-58452296881b",
        "cdf22040-9fb0-4d73-b0f1-272b98defe74",
        "450f65b1-bcb8-4212-b63c-7e455eab5d68",
        "5b051cd2-e529-494d-beca-eda69a81cb6b"
      ]
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name>string</name>
      <immunity>0</immunity>
      <server>1804d828-7737-4b98-9dbd-92e6cb886cfd</server>
      <usetime/>
      <flags/>
      <members>0b9839e9-cf3f-48cb-bfa1-e5c6c7e3d800</members>
      <members>53f97625-2d47-4fdc-9799-58452296881b</members>
      <members>cdf22040-9fb0-4d73-b0f1-272b98defe74</members>
      <members>450f65b1-bcb8-4212-b63c-7e455eab5d68</members>
      <members>5b051cd2-e529-494d-beca-eda69a81cb6b</members>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » name body string true No description
    » immunity body integer true No description
    » server body string(uuid) false No description
    » usetime body integer false No description
    » flags body string false No description
    » members body [string] false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /roles/{uuid}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/roles/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/roles/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/roles/{uuid}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/roles/{uuid}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/roles/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/roles/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/roles/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/roles/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/roles/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /roles/{uuid}

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/roles/{uuid} \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/roles/{uuid} HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/roles/{uuid}',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": null,
      "immunity": null,
      "usetime": null,
      "server": "0610e63f-d917-4ef1-a704-6759c606a614",
      "flags": null,
      "members": [
        "b17ebc25-3066-42c1-94c5-3b57e6ebf50d",
        "bb77e747-42d7-4a45-9848-270f4070807a",
        "52438c6a-affb-4977-a4b9-ef4c2bb6ebbe"
      ]
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/roles/{uuid}',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/roles/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/roles/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/roles/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/roles/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/roles/{uuid}

    Body parameter

    {
      "name": null,
      "immunity": null,
      "usetime": null,
      "server": "0610e63f-d917-4ef1-a704-6759c606a614",
      "flags": null,
      "members": [
        "b17ebc25-3066-42c1-94c5-3b57e6ebf50d",
        "bb77e747-42d7-4a45-9848-270f4070807a",
        "52438c6a-affb-4977-a4b9-ef4c2bb6ebbe"
      ]
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name/>
      <immunity/>
      <usetime/>
      <server>0610e63f-d917-4ef1-a704-6759c606a614</server>
      <flags/>
      <members>b17ebc25-3066-42c1-94c5-3b57e6ebf50d</members>
      <members>bb77e747-42d7-4a45-9848-270f4070807a</members>
      <members>52438c6a-affb-4977-a4b9-ef4c2bb6ebbe</members>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » name body string false No description
    » immunity body integer false No description
    » usetime body integer false No description
    » server body string(uuid) false No description
    » flags body string false No description
    » members body [string] false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /roles/{uuid}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/roles/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/roles/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/roles/{uuid}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/roles/{uuid}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/roles/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/roles/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/roles/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/roles/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/roles/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Server

    API interface for servers

    GET /servers

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/servers \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/servers HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/servers',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/servers', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/servers", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/servers

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description
    ip query string(ip) false No description
    port query integer false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /servers

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/servers \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/servers HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": "string",
      "ip": "110.172.174.69",
      "verify": true,
      "port": 0,
      "password": "string",
      "game": "string",
      "mode": "string"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/servers',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/servers', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/servers", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/servers

    Body parameter

    {
      "name": "string",
      "ip": "110.172.174.69",
      "verify": true,
      "port": 0,
      "password": "string",
      "game": "string",
      "mode": "string"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name>string</name>
      <ip>110.172.174.69</ip>
      <verify>true</verify>
      <port>0</port>
      <password>string</password>
      <game>string</game>
      <mode>string</mode>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » name body string true No description
    » ip body string(ip) true No description
    » verify body boolean false No description
    » port body integer true No description
    » password body string true No description
    » game body string true No description
    » mode body string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /servers/{uuid}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/servers/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/servers/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers/{uuid}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers/{uuid}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/servers/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/servers/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/servers/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/servers/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    POST /servers/{uuid}

    Code samples

    # You can also use wget
    curl -X POST demo.hawthorne.in/api/v1/servers/{uuid} \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    POST demo.hawthorne.in/api/v1/servers/{uuid} HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers/{uuid}',
      method: 'post',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "name": null,
      "verify": true,
      "ip": "10.255.211.148",
      "port": null,
      "password": null,
      "game": null,
      "gamemode": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers/{uuid}',
    {
      method: 'POST',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.post 'demo.hawthorne.in/api/v1/servers/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.post('demo.hawthorne.in/api/v1/servers/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("POST");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("POST", "demo.hawthorne.in/api/v1/servers/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    POST demo.hawthorne.in/api/v1/servers/{uuid}

    Body parameter

    {
      "name": null,
      "verify": true,
      "ip": "10.255.211.148",
      "port": null,
      "password": null,
      "game": null,
      "gamemode": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <name/>
      <verify>true</verify>
      <ip>10.255.211.148</ip>
      <port/>
      <password/>
      <game/>
      <gamemode/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » name body string false No description
    » verify body boolean false No description
    » ip body string(ip) false No description
    » port body integer false No description
    » password body string false No description
    » game body string false No description
    » gamemode body string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /servers/{uuid}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/servers/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/servers/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers/{uuid}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers/{uuid}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/servers/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/servers/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/servers/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/servers/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /servers/{uuid}/execute

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/servers/{uuid}/execute \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/servers/{uuid}/execute HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/servers/{uuid}/execute',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "command": "string"
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/servers/{uuid}/execute',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/servers/{uuid}/execute',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/servers/{uuid}/execute', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/servers/{uuid}/execute");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/servers/{uuid}/execute", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/servers/{uuid}/execute

    Body parameter

    {
      "command": "string"
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <command>string</command>
    </root>
    

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description
    body body object true No description
    » command body string true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    System

    API interface for system specific actions

    GET /system/chat

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/system/chat \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/system/chat HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/chat',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/chat',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/system/chat',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/system/chat', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/chat");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/system/chat", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/system/chat

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /system/chat

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/system/chat \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/system/chat HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/chat',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "user": "40f3191d-f19f-4937-9b9f-232585ae8482",
      "server": "68cfd694-59a7-4ab1-95ed-bc767946eb7e",
      "ip": "142.63.219.92",
      "message": "string",
      "command": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/chat',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/system/chat',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/system/chat', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/chat");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/system/chat", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/system/chat

    Body parameter

    {
      "user": "40f3191d-f19f-4937-9b9f-232585ae8482",
      "server": "68cfd694-59a7-4ab1-95ed-bc767946eb7e",
      "ip": "142.63.219.92",
      "message": "string",
      "command": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <user>40f3191d-f19f-4937-9b9f-232585ae8482</user>
      <server>68cfd694-59a7-4ab1-95ed-bc767946eb7e</server>
      <ip>142.63.219.92</ip>
      <message>string</message>
      <command/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » user body string(uuid) true No description
    » server body string(uuid) true No description
    » ip body string(ip) true No description
    » message body string true No description
    » command body boolean false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /system/tokens

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/system/tokens \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/system/tokens HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/tokens',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/tokens',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/system/tokens',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/system/tokens', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/tokens");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/system/tokens", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/system/tokens

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    active query boolean false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /system/tokens

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/system/tokens \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/system/tokens HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/tokens',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "permissions": [
        "core.delete_ban",
        "automated_logging.change_unspecified",
        "social_django.change_usersocialauth",
        "core.view_token"
      ],
      "due": null,
      "active": true
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/tokens',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/system/tokens',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/system/tokens', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/tokens");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/system/tokens", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/system/tokens

    Body parameter

    {
      "permissions": [
        "core.delete_ban",
        "automated_logging.change_unspecified",
        "social_django.change_usersocialauth",
        "core.view_token"
      ],
      "due": null,
      "active": true
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <permissions>core.delete_ban</permissions>
      <permissions>automated_logging.change_unspecified</permissions>
      <permissions>social_django.change_usersocialauth</permissions>
      <permissions>core.view_token</permissions>
      <due/>
      <active>true</active>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » permissions body [string] true No description
    » due body integer false No description
    » active body boolean false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /system/tokens/{uuid}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/system/tokens/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/system/tokens/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/tokens/{uuid}',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/tokens/{uuid}',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/system/tokens/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/system/tokens/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/tokens/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/system/tokens/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/system/tokens/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    DELETE /system/tokens/{uuid}

    Code samples

    # You can also use wget
    curl -X DELETE demo.hawthorne.in/api/v1/system/tokens/{uuid} \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    DELETE demo.hawthorne.in/api/v1/system/tokens/{uuid} HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/system/tokens/{uuid}',
      method: 'delete',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/system/tokens/{uuid}',
    {
      method: 'DELETE',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.delete 'demo.hawthorne.in/api/v1/system/tokens/{uuid}',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.delete('demo.hawthorne.in/api/v1/system/tokens/{uuid}', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/system/tokens/{uuid}");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("DELETE");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("DELETE", "demo.hawthorne.in/api/v1/system/tokens/{uuid}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    DELETE demo.hawthorne.in/api/v1/system/tokens/{uuid}

    Parameters

    Parameter In Type Required Description
    uuid path string(uuid) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Steam

    API interface for the (unofficial) steam api

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/steam/search?query=string \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/steam/search?query=string HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/steam/search',
      method: 'get',
      data: '?query=string',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/steam/search?query=string',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/steam/search',
      params: {
      'query' => 'string'
    }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/steam/search', params={
      'query': 'string'
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/steam/search?query=string");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/steam/search", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/steam/search

    Parameters

    Parameter In Type Required Description
    scope query string false No description
    query query string true No description
    mode query string false No description
    _ts query integer false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    GET /steam/search/{int}

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/steam/search/{int}?query=string \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/steam/search/{int}?query=string HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/steam/search/{int}',
      method: 'get',
      data: '?query=string',
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/steam/search/{int}?query=string',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/steam/search/{int}',
      params: {
      'query' => 'string'
    }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/steam/search/{int}', params={
      'query': 'string'
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/steam/search/{int}?query=string");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/steam/search/{int}", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/steam/search/{int}

    Parameters

    Parameter In Type Required Description
    scope query string false No description
    query query string true No description
    mode query string false No description
    _ts query integer false No description
    int path string(int64) true No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Capabilities

    API interface current capabilities

    GET /capabilities/games

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/capabilities/games \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/capabilities/games HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/capabilities/games',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/capabilities/games',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/capabilities/games',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/capabilities/games', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/capabilities/games");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/capabilities/games", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/capabilities/games

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Mainframe

    API interface interactions to the mainframe

    GET /mainframe/connect

    Code samples

    # You can also use wget
    curl -X GET demo.hawthorne.in/api/v1/mainframe/connect \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    GET demo.hawthorne.in/api/v1/mainframe/connect HTTP/1.1
    Host: null
    
    Accept: application/json
    
    
    var headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/mainframe/connect',
      method: 'get',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    
    const headers = {
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/mainframe/connect',
    {
      method: 'GET',
    
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.get 'demo.hawthorne.in/api/v1/mainframe/connect',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.get('demo.hawthorne.in/api/v1/mainframe/connect', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/mainframe/connect");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("GET");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("GET", "demo.hawthorne.in/api/v1/mainframe/connect", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    GET demo.hawthorne.in/api/v1/mainframe/connect

    Parameters

    Parameter In Type Required Description
    offset query integer false No description
    limit query integer false No description
    match query string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    PUT /mainframe/connect

    Code samples

    # You can also use wget
    curl -X PUT demo.hawthorne.in/api/v1/mainframe/connect \
      -H 'Content-Type: application/json' \
      -H 'Accept: application/json' \
      -H 'X-TOKEN: API_KEY'
    
    
    PUT demo.hawthorne.in/api/v1/mainframe/connect HTTP/1.1
    Host: null
    Content-Type: application/json
    Accept: application/json
    
    
    var headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    $.ajax({
      url: 'demo.hawthorne.in/api/v1/mainframe/connect',
      method: 'put',
    
      headers: headers,
      success: function(data) {
        console.log(JSON.stringify(data));
      }
    })
    
    
    const request = require('node-fetch');
    const inputBody = '{
      "mainframe": null
    }';
    const headers = {
      'Content-Type':'application/json',
      'Accept':'application/json',
      'X-TOKEN':'API_KEY'
    
    };
    
    fetch('demo.hawthorne.in/api/v1/mainframe/connect',
    {
      method: 'PUT',
      body: inputBody,
      headers: headers
    })
    .then(function(res) {
        return res.json();
    }).then(function(body) {
        console.log(body);
    });
    
    
    require 'rest-client'
    require 'json'
    
    headers = {
      'Content-Type' => 'application/json',
      'Accept' => 'application/json',
      'X-TOKEN' => 'API_KEY'
    }
    
    result = RestClient.put 'demo.hawthorne.in/api/v1/mainframe/connect',
      params: {
      }, headers: headers
    
    p JSON.parse(result)
    
    
    import requests
    headers = {
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-TOKEN': 'API_KEY'
    }
    
    r = requests.put('demo.hawthorne.in/api/v1/mainframe/connect', params={
    
    }, headers = headers)
    
    print r.json()
    
    
    URL obj = new URL("demo.hawthorne.in/api/v1/mainframe/connect");
    HttpURLConnection con = (HttpURLConnection) obj.openConnection();
    con.setRequestMethod("PUT");
    int responseCode = con.getResponseCode();
    BufferedReader in = new BufferedReader(
        new InputStreamReader(con.getInputStream()));
    String inputLine;
    StringBuffer response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
    in.close();
    System.out.println(response.toString());
    
    
    package main
    
    import (
           "bytes"
           "net/http"
    )
    
    func main() {
    
        headers := map[string][]string{
            "Content-Type": []string{"application/json"},
            "Accept": []string{"application/json"},
            "X-TOKEN": []string{"API_KEY"},
    
        }
    
        data := bytes.NewBuffer([]byte{jsonReq})
        req, err := http.NewRequest("PUT", "demo.hawthorne.in/api/v1/mainframe/connect", data)
        req.Header = headers
    
        client := &http.Client{}
        resp, err := client.Do(req)
        // ...
    }
    
    

    PUT demo.hawthorne.in/api/v1/mainframe/connect

    Body parameter

    {
      "mainframe": null
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <mainframe/>
    </root>
    

    Parameters

    Parameter In Type Required Description
    body body object true No description
    » mainframe body string false No description

    Example responses

    {
      "success": true,
      "result": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    
    {
      "success": false,
      "reason": {}
    }
    

    Responses

    Status Description Schema
    200 Success Successful
    403 No Query Found Failed
    428 Invalid Parameters Failed
    500 Fatal Internal Error Failed
    512 Failed Parsing Payload Failed

    Schemas

    Successful

    {
      "success": true,
      "result": {}
    }
    

    Properties

    Name Type Required Description
    success boolean false No description
    result object false No description

    Failed

    {
      "success": false,
      "reason": {}
    }
    

    Properties

    Name Type Required Description
    success boolean false No description
    reason object false No description

    945dd496-29e2-4a08-897d-51152ed79d9f

    {
      "steamid": null,
      "id": "2a46a00c-66d6-47e1-a7c6-3bf3b8e6b0f3",
      "username": "string",
      "ip": "181.64.166.45",
      "country": null,
      "server": "806e02c6-b20b-4d0b-a095-c58eadd3ed75",
      "connected": null,
      "internal": false,
      "permissions": [
        "log.delete_serverchat",
        "social_django.add_partial",
        "core.change_server",
        "automated_logging.add_field",
        "automated_logging.change_unspecified"
      ],
      "groups": [
        0
      ],
      "local": true,
      "email": "daniellegarza@soto-wilson.com"
    }
    

    Properties

    Name Type Required Description
    steamid integer false No description
    id string(uuid) false No description
    username string false No description
    ip string(ip) false No description
    country string false No description
    server string(uuid) false No description
    connected boolean false No description
    internal boolean false No description
    permissions [string] false No description
    groups [integer] false No description
    local boolean false No description
    email string(email) false No description

    20bc5c42-881c-457e-b082-2338031a8c55

    {
      "promotion": false,
      "force": false,
      "role": "4990e75c-f246-4bd4-983d-36e47bfa4dd3",
      "group": "3d966307-13a6-4d5c-b502-80e0ab216b5a"
    }
    

    Properties

    Name Type Required Description
    promotion boolean false No description
    force boolean false No description
    role string(uuid) false No description
    group string(uuid) false No description

    84bac96d-470b-4f95-835a-b8ed67bada66

    {
      "promotion": false,
      "force": false,
      "role": "0ce7ca7f-0c39-48e8-8d59-e45f368bbff8",
      "group": "9b80e035-f19d-4331-9711-5276f137a43f"
    }
    

    Properties

    Name Type Required Description
    promotion boolean false No description
    force boolean false No description
    role string(uuid) false No description
    group string(uuid) false No description

    5ac90ff5-f552-48a1-ba6e-fffd1cfc971f

    {
      "server": "13e69eed-cd5d-4452-a67c-b21d8b502983",
      "resolved": null,
      "reason": null,
      "length": null
    }
    

    Properties

    Name Type Required Description
    server string(uuid) true No description
    resolved boolean false No description
    reason string false No description
    length integer false No description

    6d0ab015-24e2-4a6d-ac32-1133151c3969

    {
      "server": "fc7eb476-e837-4d9a-a649-ad68cd6e95a9",
      "reason": "string",
      "length": 0,
      "issuer": null
    }
    

    Properties

    Name Type Required Description
    server string(uuid) false No description
    reason string true No description
    length integer true No description
    issuer integer false No description

    b2f0d0ee-9a6e-49ae-81b9-dca650ef30b6

    {
      "server": "9cddbebe-4858-440f-b0ea-56fc4d5c7fbe"
    }
    

    Properties

    Name Type Required Description
    server string(uuid) true No description

    61f5f98e-5b23-4a9e-8215-fcf9420774c8

    {
      "server": "f1aef666-18f0-4800-b5c9-8fe97b0708b1",
      "resolved": null,
      "type": "mute",
      "reason": null,
      "length": null
    }
    

    Properties

    Name Type Required Description
    server string(uuid) false No description
    resolved boolean false No description
    type string false No description
    reason string false No description
    length integer false No description

    Enumerated Values

    Property Value
    type mute
    type gag
    type both

    bfdeed70-f90c-4188-812a-95fe912b52cf

    {
      "server": "435a9c73-15b5-438f-80f6-a4200a3ffb77",
      "reason": "string",
      "type": "mute",
      "length": 0
    }
    

    Properties

    Name Type Required Description
    server string(uuid) false No description
    reason string true No description
    type string false No description
    length integer true No description

    Enumerated Values

    Property Value
    type mute
    type gag
    type both

    92f86c3e-8293-4659-859b-640c4371f6f2

    {
      "name": "string",
      "permissions": [
        "social_django.delete_association",
        "log.change_serverchat",
        "core.add_mutegag_mute",
        "log.change_serveraction"
      ],
      "members": [
        "497036ba-c13b-4f42-84b0-de370c16040b",
        "908796fc-c1b4-4321-bc74-2440a1ddcf15",
        "83f757f3-016b-496a-bf95-d2a6228ea2d9",
        "ebe7a306-2f56-4af6-b653-fd2cf99f48b5",
        "86b37845-de02-4f1b-84c9-f8f89918e418"
      ]
    }
    

    Properties

    Name Type Required Description
    name string true No description
    permissions [string] false No description
    members [string] false No description

    930fe8bf-f32b-431d-a0a1-b5ce8375c68e

    {
      "name": null,
      "permissions": [
        "automated_logging.change_field",
        "core.change_server",
        "social_django.add_association",
        "auth.add_group",
        "core.add_server"
      ],
      "members": [
        "f5480d1b-d379-480a-b347-6892efa491c3",
        "09c8503b-9c79-40c4-9184-b3398df70a79",
        "c83fb744-4ab2-400b-afc1-b9a0fe1528fd",
        "7bb45d44-f582-4fc4-bcf3-ddd4783e30e0",
        "1865087c-bffa-4fde-8add-9531d412d8a5"
      ]
    }
    

    Properties

    Name Type Required Description
    name string false No description
    permissions [string] false No description
    members [string] false No description

    7ebc0aa1-61ea-45b5-bf64-47ddb5f191a4

    {
      "name": "string",
      "immunity": 0,
      "server": "1804d828-7737-4b98-9dbd-92e6cb886cfd",
      "usetime": null,
      "flags": null,
      "members": [
        "0b9839e9-cf3f-48cb-bfa1-e5c6c7e3d800",
        "53f97625-2d47-4fdc-9799-58452296881b",
        "cdf22040-9fb0-4d73-b0f1-272b98defe74",
        "450f65b1-bcb8-4212-b63c-7e455eab5d68",
        "5b051cd2-e529-494d-beca-eda69a81cb6b"
      ]
    }
    

    Properties

    Name Type Required Description
    name string true No description
    immunity integer true No description
    server string(uuid) false No description
    usetime integer false No description
    flags string false No description
    members [string] false No description

    1bb9d4a2-89d5-4f8e-9713-f0b38a920d5b

    {
      "name": null,
      "immunity": null,
      "usetime": null,
      "server": "0610e63f-d917-4ef1-a704-6759c606a614",
      "flags": null,
      "members": [
        "b17ebc25-3066-42c1-94c5-3b57e6ebf50d",
        "bb77e747-42d7-4a45-9848-270f4070807a",
        "52438c6a-affb-4977-a4b9-ef4c2bb6ebbe"
      ]
    }
    

    Properties

    Name Type Required Description
    name string false No description
    immunity integer false No description
    usetime integer false No description
    server string(uuid) false No description
    flags string false No description
    members [string] false No description

    7b88d5ee-be82-4ef0-82fb-d87cf52c7905

    {
      "name": "string",
      "ip": "110.172.174.69",
      "verify": true,
      "port": 0,
      "password": "string",
      "game": "string",
      "mode": "string"
    }
    

    Properties

    Name Type Required Description
    name string true No description
    ip string(ip) true No description
    verify boolean false No description
    port integer true No description
    password string true No description
    game string true No description
    mode string false No description

    f2e0c5bd-9b65-473c-862b-d8ccc59ea900

    {
      "name": null,
      "verify": true,
      "ip": "10.255.211.148",
      "port": null,
      "password": null,
      "game": null,
      "gamemode": null
    }
    

    Properties

    Name Type Required Description
    name string false No description
    verify boolean false No description
    ip string(ip) false No description
    port integer false No description
    password string false No description
    game string false No description
    gamemode string false No description

    a5e7b9e7-8204-45e8-a680-6d19793d0135

    {
      "command": "string"
    }
    

    Properties

    Name Type Required Description
    command string true No description

    0dcaa5a0-4547-430e-bab4-804af3acd619

    {
      "user": "40f3191d-f19f-4937-9b9f-232585ae8482",
      "server": "68cfd694-59a7-4ab1-95ed-bc767946eb7e",
      "ip": "142.63.219.92",
      "message": "string",
      "command": null
    }
    

    Properties

    Name Type Required Description
    user string(uuid) true No description
    server string(uuid) true No description
    ip string(ip) true No description
    message string true No description
    command boolean false No description

    6112435c-9e24-4611-bda2-e776b6d9b17b

    {
      "permissions": [
        "core.delete_ban",
        "automated_logging.change_unspecified",
        "social_django.change_usersocialauth",
        "core.view_token"
      ],
      "due": null,
      "active": true
    }
    

    Properties

    Name Type Required Description
    permissions [string] true No description
    due integer false No description
    active boolean false No description

    de2367be-7573-46b4-b370-22f8e9fc646a

    {
      "mainframe": null
    }
    

    Properties

    Name Type Required Description
    mainframe string false No description