From OpenDCIM Wiki
Jump to: navigation, search
(Created page with "=== People === Any query along the /people tree of the API will return a collection or single entity in the following format: <nowiki> { "error": false, "errorcode"...")
 
Line 1: Line 1:
=== People ===
+
= People =
  
 
Any query along the /people tree of the API will return a collection or single entity in the following format:
 
Any query along the /people tree of the API will return a collection or single entity in the following format:

Revision as of 10:55, 23 December 2015

People

Any query along the /people tree of the API will return a collection or single entity in the following format:

{
    "error": false,
    "errorcode": 200,
    "people": [
        {
            "PersonID": 1,
            "UserID": "dcim",
            "LastName": "Admin",
            "FirstName": "DCIM",
            "Phone1": "",
            "Phone2": "",
            "Phone3": "",
            "Email": "scott@opendcim.org",
            "AdminOwnDevices": 1,
            "ReadAccess": 1,
            "WriteAccess": 1,
            "DeleteAccess": 1,
            "ContactAdmin": 1,
            "RackRequest": 1,
            "RackAdmin": 1,
            "SiteAdmin": 1,
            "Disabled": 0
        }
    ]
}

/people
Method GET
Parameters none
Specific Permission Required Contact Administrator

This URI will return a collection of all people defined within openDCIM. There is a corresponding Entity URL for retrieving a single entity.


/people/bydepartment/:departmentid
Method GET
Parameters departmentid
Specific Permission Required Contact Administrator

This URI will return a collection of all people (if any) that are members of the given department. Note that people can be members of multiple departments.