Person API
Go Up to API Reference
This part of the Team Server API allows you to work with People.
Contents
GET v1/people
Obtains a list of people.
If successful, the response from the server provides a list of People with details about each one of them.
GET v1/people/<id>
Obtains information about the People with the specified ID.
PUT v1/people/<id>
Updates the information about the Person with the specified ID. Your request can provide any combination of the following fields:
- firstname
 - title
 - jobDescription
 - aliases
 - phoneNumber
 - isStreamPosteable
 - isStreamCommentable
 - isCurrentUserFollowing
 
Person Fields
Person resources may provide the following fields:
| Item | Example | Description | 
|---|---|---|
| 
 
  | 
 
  | 
 An integer that uniquely identifies the person.  | 
| 
 
  | 
 The email address of this person.  | |
| 
 
  | 
 
  | 
 States if the stream may be commented.  | 
| 
 
  | 
 
  | 
 The date when the person was created, in Unix time (seconds since 1970).  | 
| 
 
  | 
 
  | 
 The user is verified as ok to use the system.  | 
| 
 
  | 
 
  | 
 Path relative to the Team Server root URL that points to the person.  | 
| 
 
  | 
 
  | 
 Person Username.  | 
| 
 
  | 
 
  | 
 States if users can post on the stream.  | 
| 
 
  | 
 
  | 
 The given name (first name) of this person.  | 
| 
 
  | 
 
  | 
 The type of the resource. Its value is always "person" for person resources.  | 
| 
 
  | 
 
  | 
 Path relative to the Team Server root API URL that points to the entry of the person resource. For example, if the Team Server root API URL is http://teamserver.example.com/api , the example value here determines that you can access the person resource at http://teamserver.example.com/api/v1/people/1 .  | 
Example Response
This is an example response from a GET v1/people call:
{
  "metadata_": {
    "limit": 25,
    "totalCount": 2,
    "offset": 0
  },
"people":
   [
       {
           "id": 1,
           "isStreamCommentable": true,
           "email": "[email protected]",
           "verified": true,
           "createdAt": 1401981576,
           "link": "/viewUser.ext?id=2",
           "userName": "admin",
           "isStreamPosteable": true,
           "type": "Person",
           "firstName": "admin",
           "url": "/v1/people/1"
       },
       {
           "id": 2,
           "isCurrentUserFollowing": false,
           "isStreamCommentable": true,
           "email": "[email protected]",
           "verified": true,
           "createdAt": 1408532694,
           "link": "/viewUser.ext?id=4",
           "userName": "myusername",
           "isStreamPosteable": true,
           "type": "Person",
           "firstName": "myusername",
           "url": "/v1/people/2"
       }
   ]
This is an example response from a GET v1/people/<id> call:
{
  "person": {
    "id": 1,
    "email": "[email protected]",
    "isStreamCommentable": true,
    "createdAt": 1401981576,
    "verified": true,
    "link": "/viewUser.ext?id\u003d2",
    "userName": "admin",
    "isStreamPosteable": true,
    "firstName": "admin",
    "type": "Person",
    "url": "/v1/people/1"
  }
}