PUT api/Accounts/Update/{id}

Update an account

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The ID for the user

globally unique identifier

Required

Body Parameters

Account data

AccountModel
NameDescriptionTypeAdditional 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": "a0d084e2-f0a0-4fe5-950e-4bf626e184f2",
  "ExternalID": "sample string 2",
  "Name": "sample string 3",
  "DOB": "2024-03-16T14:08:21.4567305+00:00",
  "Gender": "sample string 4",
  "Devices": "sample string 5",
  "Country": "sample string 6",
  "Age": 1,
  "Location": "sample string 8",
  "Created": "2024-03-16T14:08:21.4567305+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>2024-03-16T14:08:21.4567305+00:00</Created>
  <DOB>2024-03-16T14:08:21.4567305+00:00</DOB>
  <Devices>sample string 5</Devices>
  <ExternalID>sample string 2</ExternalID>
  <Gender>sample string 4</Gender>
  <HasDevices>true</HasDevices>
  <ID>a0d084e2-f0a0-4fe5-950e-4bf626e184f2</ID>
  <Location>sample string 8</Location>
  <Name>sample string 3</Name>
  <OrganisationID>b7413bb4-a7da-4197-9e7d-91b0138370dd</OrganisationID>
  <OrganisationName>sample string 9</OrganisationName>
</AccountModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.