Overview
The /1/clients endpoint provides for the examination of already created clients.
Required Headers
- Authorization: Token token="<your session token here>"
- Content-Type: application/json
Arguments
Name | Type | Optional | Description |
---|---|---|---|
organization_id | Integer | Required | Always: 1 |
Example
curl -X GET \
-H 'Authorization: Token token="9319224d0002e7a32b26c0686c42a0bf"' \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
http://184.73.33.165/1/clients?organization_id=1
Response
{ "response": [ { "id": 1, "organization_id": 1, "code": "unique code 1", "date_of_birth": "2014-01-01", "diagnosis": null, "first_name": null, "gender": 1, "last_name": null, "created_at": "2014-11-26T05:21:17.000Z", "updated_at": "2014-11-26T05:21:17.000Z", "settings": "anything you want here" }, { "id": 2, "organization_id": 1, "code": "unique code 2", "date_of_birth": "2014-01-01", "diagnosis": null, "first_name": null, "gender": 1, "last_name": null, "created_at": "2014-11-26T06:12:38.000Z", "updated_at": "2014-11-26T06:12:38.000Z", "settings": "anything you want here" } ], "count": 2 }