GET

/:site_number/individuals/:individual_id/comments

Returns a list of comments the user can view based on their personal user security.

Example

https://secure.accessacs.com/api_accessacs_mobile/v2/12345/individuals/76/comments? &pageIndex=0&pageSize=50

Notes

pageIndex and pageSize are not required for the API to work properly. These fields allow you to limit the number of records returned at one time and the point when you begin pulling information. If you do not enter this information, the index default is 0 and the size default is 50.  

For example, you are looking for all the individuals with the first name John. 300 records match your criteria. If you leave the defaults, the first 50 matches display. If you change the pageIndex to 2, the next 50 matches are returned.

Required Permissions

The user must fall into one of the categories below:

Request Header

Basic Authorization is used to determine security rights for the user credentials supplied using the following parameters.

u sername : "jadams"

password : "password231"

URL Parameters

site_number – The site number to gather data for.

individual_id  – The individual requesting comments for.   Values from   Individual Search API.

pageIndex  –  (Optional) Page number for the search results; begins with the 0 value entered for the first set of results.

pageSize  –  (Optional) Number of results to return per page.  

Return Data

{
  "Page": [
    {
      "CommentTypeID": 1,
      "CommentType": "Crisis Date",
      "LastCommentDate": "05/29/2007",
      "CommentCount": 1,
      "CommentColor": "fabe28"
    },
    {
      "CommentTypeID": 3,
      "CommentType": "Employer or Business",
      "LastCommentDate": "03/16/1998",
      "CommentCount": 1,
      "CommentColor": "ff003c"
    }
  ],
  "PageCount": 1,
  "PageIndex": 0,
  "PageSize": 50
}