POST api/Accounts/Fetch
Get a count of the number of accounts for the Organisation
Request Information
URI Parameters
None.
Body Parameters
Account data request
AccountDataRequestName | Description | Type | Additional information |
---|---|---|---|
Name |
Name of the user |
string |
None. |
DateCreatedFrom |
Date From |
string |
None. |
DateCreatedTo |
Date To |
string |
None. |
Country |
User's Country |
string |
None. |
ExternalID |
User's External ID |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "DateCreatedFrom": "sample string 2", "DateCreatedTo": "sample string 3", "Country": "sample string 4", "ExternalID": "sample string 5" }
application/xml, text/xml
Sample:
<AccountDataRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <Country>sample string 4</Country> <DateCreatedFrom>sample string 2</DateCreatedFrom> <DateCreatedTo>sample string 3</DateCreatedTo> <ExternalID>sample string 5</ExternalID> <Name>sample string 1</Name> </AccountDataRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of AccountDataResponseName | Description | Type | Additional information |
---|---|---|---|
ID |
The ID for the user |
globally unique identifier |
None. |
ExternalID |
User's External ID |
string |
None. |
Created |
Date user was added to the system |
date |
None. |
Country |
User's country |
string |
None. |
Name |
User's name |
string |
None. |
Age |
User's age |
string |
None. |
Location |
User's location |
string |
None. |
DateOfBirth |
User's date of birth |
string |
None. |
Gender |
User's gender |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "ID": "6bfb2615-100b-4557-91fa-dadb1c018ebe", "ExternalID": "sample string 2", "Created": "2023-05-27T20:00:53.1899082+00:00", "Country": "sample string 3", "Name": "sample string 4", "Age": "sample string 5", "Location": "sample string 6", "DateOfBirth": "sample string 7", "Gender": "sample string 8" }, { "ID": "6bfb2615-100b-4557-91fa-dadb1c018ebe", "ExternalID": "sample string 2", "Created": "2023-05-27T20:00:53.1899082+00:00", "Country": "sample string 3", "Name": "sample string 4", "Age": "sample string 5", "Location": "sample string 6", "DateOfBirth": "sample string 7", "Gender": "sample string 8" } ]
application/xml, text/xml
Sample:
<ArrayOfAccountDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <AccountDataResponse> <Age>sample string 5</Age> <Country>sample string 3</Country> <Created>2023-05-27T20:00:53.1899082+00:00</Created> <DateOfBirth>sample string 7</DateOfBirth> <ExternalID>sample string 2</ExternalID> <Gender>sample string 8</Gender> <ID>6bfb2615-100b-4557-91fa-dadb1c018ebe</ID> <Location>sample string 6</Location> <Name>sample string 4</Name> </AccountDataResponse> <AccountDataResponse> <Age>sample string 5</Age> <Country>sample string 3</Country> <Created>2023-05-27T20:00:53.1899082+00:00</Created> <DateOfBirth>sample string 7</DateOfBirth> <ExternalID>sample string 2</ExternalID> <Gender>sample string 8</Gender> <ID>6bfb2615-100b-4557-91fa-dadb1c018ebe</ID> <Location>sample string 6</Location> <Name>sample string 4</Name> </AccountDataResponse> </ArrayOfAccountDataResponse>