Overview
The /1/clients endpoint provides for the examination of already created clients.
Required Headers
- Authorization: Token token="<your session token here>"
- User-Agent: rest-api
- Content-Type: application/json
Arguments
Name | Type | Optional | Description |
---|---|---|---|
organization_id | Integer | Required | The organization identifier |
Example
curl -X GET \
-H 'Authorization: Token token="9319224d0002e7a32b26c0686c42a0bf"' \
-H "Accept: application/json" \
-H "User-Agent: rest-api" \
-H "Content-Type: application/json" \
https://data-sandbox.vbmappapp.com/1/clients?organization_id=1
Response
{ "response": [ { "id": 1, "organization_id": 1, "code": null, "date_of_birth": "2015-04-30", "diagnosis": null, "first_name": null, "gender": 1, "last_name": null, "created_at": "2015-04-30T14:15:19.000Z", "updated_at": "2015-04-30T14:15:19.000Z", "settings": null, "color": null }, { "id": 2, "organization_id": 1, "code": null, "date_of_birth": "2015-04-30", "diagnosis": null, "first_name": null, "gender": 2, "last_name": null, "created_at": "2015-04-30T14:15:19.000Z", "updated_at": "2015-04-30T14:15:19.000Z", "settings": null, "color": null },
...
], "count": 56 }