Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten


1. Hole eine Benutzergruppe per ID

URL: https://123.123.123.123/usergroups/view/1.json

Methode: GET

Antwort: JSON


Antwort auf erfolgreiche API Abfrage
{
    "usergroup": {
        "Usergroup": {
            "id": "1",
            "name": "Administrator",
            "description": "Grant a user full administrator privileges",
            "created": "2015-08-19 14:57:42",
            "modified": "2015-12-09 11:31:32"
        },
        "User": [
            {
                "id": "1",
                "usergroup_id": "1",
                "status": "1",
                "email": "admin@local.lan",
                "password": "dfe5b29513c31beff314d5bc613cdc9b97dfb317",
                "firstname": "Admin",
                "lastname": "user",
                "position": null,
                "company": null,
                "phone": null,
                "linkedin_id": null,
                "timezone": "Europe\/Berlin",
                "dateformat": "%H:%M:%S - %d.%m.%Y",
                "image": null,
                "onetimetoken": null,
                "samaccountname": null,
                "showstatsinmenu": false,
                "dashboard_tab_rotation": "570",
                "created": null,
                "modified": "2015-09-28 17:54:32",
                "full_name": "Admin user"
            },
            {
                "id": "7",
                "usergroup_id": "1",
                "status": "1",
                "email": "api@openitcockpit.org",
                "password": "4822c51316e1ef33457b987cf29de4d885cfa136",
                "firstname": "api",
                "lastname": "api",
                "position": "",
                "company": "",
                "phone": "",
                "linkedin_id": "",
                "timezone": "Europe\/Berlin",
                "dateformat": "%H:%M:%S - %d.%m.%Y",
                "image": null,
                "onetimetoken": null,
                "samaccountname": null,
                "showstatsinmenu": false,
                "dashboard_tab_rotation": "0",
                "created": "2015-11-27 15:01:44",
                "modified": "2015-11-27 15:01:44",
                "full_name": "api api"
            }
        ]
    }
}


2. Hole alle existierenden Benutzergruppen

URL: https://123.123.123.123/usergroups.json

Methode: GET

Antwort: JSON


Antwort auf erfolgreiche API Abfrage
{
    "all_usergroups": [
        {
            "Usergroup": {
                "id": "1",
                "name": "Administrator",
                "description": "Grant a user full administrator privileges",
                "created": "2015-08-19 14:57:42",
                "modified": "2015-12-09 11:31:32"
            }
        },
        {
            "Usergroup": {
                "id": "2",
                "name": "Viewer",
                "description": "Users of this group can only see objects but not edit or reschedule",
                "created": "2015-08-19 15:00:36",
                "modified": "2015-12-09 11:32:20"
            }
        }
    ]
}
  • Keine Stichwörter