PUT api/Accounts/Update/{id}
Update an account
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The ID for the user |
globally unique identifier |
Required |
Body Parameters
Account data
AccountModelName | Description | Type | Additional information |
---|---|---|---|
ID |
The ID for the user |
globally unique identifier |
None. |
ExternalID |
User's external ID |
string |
Required |
Name |
User's name |
string |
None. |
DOB |
User's date of birth |
date |
None. |
Gender |
User's gender |
string |
None. |
Devices |
User's devices |
string |
None. |
Country |
User's country |
string |
None. |
Age |
User's age |
integer |
None. |
Location |
User's location |
string |
None. |
Created |
Date user was added to the system |
date |
None. |
HasDevices |
Whether user has devices |
boolean |
None. |
OrganisationName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "8b9a0c3e-1679-4f99-8b9a-25484dce1b93", "ExternalID": "sample string 2", "Name": "sample string 3", "DOB": "2023-05-25T21:15:33.3259997+00:00", "Gender": "sample string 4", "Devices": "sample string 5", "Country": "sample string 6", "Age": 1, "Location": "sample string 8", "Created": "2023-05-25T21:15:33.3259997+00:00", "HasDevices": true, "OrganisationName": "sample string 9" }
application/xml, text/xml
Sample:
<AccountModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tekasco.HealthStream.Models.Accounts"> <Age>1</Age> <Country>sample string 6</Country> <Created>2023-05-25T21:15:33.3259997+00:00</Created> <DOB>2023-05-25T21:15:33.3259997+00:00</DOB> <Devices>sample string 5</Devices> <ExternalID>sample string 2</ExternalID> <Gender>sample string 4</Gender> <HasDevices>true</HasDevices> <ID>8b9a0c3e-1679-4f99-8b9a-25484dce1b93</ID> <Location>sample string 8</Location> <Name>sample string 3</Name> <OrganisationID>3188917b-9935-45b9-aca8-eaf9c4ef9448</OrganisationID> <OrganisationName>sample string 9</OrganisationName> </AccountModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.