PUT api/v1/Users/{id}
Updates a single User that is already in the system. Returns Success/Error code.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
User Id |
globally unique identifier |
Required |
Body Parameters
UpdateUserViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
Required: The PK of the existing User that you want to update. |
globally unique identifier |
None. |
| UserUpdatingOptions |
Optional flags for the UpdateUser call |
UserUpdatingOptions |
None. |
| FirstName |
Required: The User's first/given name. Max Length = 60 |
string |
Required Max length: 60 |
| LastName |
Required: The User's last name / surname. Max Length = 60 |
string |
Required Max length: 60 |
| MiddleInitial |
Optional: The User's middle initial. Max Length = 2 |
string |
Max length: 2 |
| Nickname |
Represents the User's nickname |
string |
None. |
| sGenderId |
Optional: 1=Female, 2=Male, 3=Unspecified |
integer |
None. |
| DefaultFloorId |
Optional: Usually the Floor that the person's desk/primary workplace is on. |
globally unique identifier |
None. |
| DefaultFloorStopId |
Optional: Default Floor Stop in elevator that the person will go to when using Destination elevator systems. |
integer |
None. |
| FacilityId |
Required: PK of the facility that the User is located in. Retrieve possible values by calling /Facility/GetAllFacilities |
globally unique identifier |
Required |
| CompanyInstanceType |
Required: The type of company instance that the User belongs to - 1 = Occupancy, 2 = Vendor, 3 = System Owner, 4 = Integrator |
integer |
Required |
| CompanyInstanceId |
Required: The PK of the company instance the User will be assigned to. Retrieve this by calling /Occupancy/GetAllOccupancies, /Vendor/GetAllVendors, /SystemOwner/GetAllOwners, or Integrator/GetAllIntegrators based on the CompanyInstanceType. |
globally unique identifier |
Required |
| ACSystemId |
Required: The PK of the Access Control System the User will be assigned to. Retrieve this by calling /ACSystem/GetAllSystems |
globally unique identifier |
Required |
| StartDatetime |
Optional: The DateTime when the record will start to be valid. If null, the record will be active immediately. |
date |
None. |
| EndDatetime |
Optional: The DateTime when the record will stop being valid. If null, the record will be active indefinitely. |
date |
None. |
| AccessRightsSuspended |
Required: Whether or not the User's Access Rights are suspended |
boolean |
None. |
| AccessRightsSuspendedStart |
Optional: The DateTime when the User's Access Rights will become suspended. If null and AccessRightsSuspended is true, all access will be suspended immediately. |
date |
None. |
| AccessRightsSuspendedEnd |
Optional: The DateTime when the User's Access Rights will stop being suspended. If null and AccessRightsSuspended is true, access will be suspended indefinitely. |
date |
None. |
| WebSiteRightsSuspended |
Required: Whether or not the User's BluSKY login is suspended |
boolean |
None. |
| WebSiteRightsSuspendedStart |
Optional: The DateTime when the User's BluSKY login will become suspended. If null and WebSiteRightsSuspended is true, all BluSKY access will be suspended immediately. |
date |
None. |
| WebSiteRightsSuspendedEnd |
Optional: The DateTime when the User's BluSKY login will become suspended. If null and WebSiteRightsSuspended is true, all BluSKY access will be suspended immediately. |
date |
None. |
| BadgeTemplateId |
Optional: The PK of the Badge Template assinged to the User. Retrieve this by calling /Badges/GetAllBadges |
globally unique identifier |
None. |
| EmployeeNumber |
Optional: The employee number assigned to the User (typically by their HR department) |
string |
None. |
| HasLoginRights |
Required: Whether or not the User should have a login and password |
boolean |
None. |
| Login |
Conditional: Required if HasLoginRights is true |
string |
None. |
| Password |
Conditional: Required if HasLoginRights is true |
string |
None. |
| GenerateWelcomeMessage |
Optional: True to send a welcome email message |
boolean |
None. |
| Deleted |
Optional: True to create/update User as deleted |
boolean |
None. |
| JobTitle |
Optional: Job Title |
string |
None. |
| OccupancyName |
Represents an Occupancy a User belongs to. If specified, ACSystemId and FacilityId can be omited as well as a CompanyInstanceId when CompanyInstanceType = 1 |
string |
None. |
| UserUDFValueViewModels |
Optional : User Defined Values while creating a new user in BluSky |
Collection of UserUDFValueViewModel |
None. |
| DepartmentName |
Optional : The name of the department the person belgons to |
string |
None. |
| DepartmentCode |
Optional : The Code of the department the person belgons to |
string |
None. |
| PronounId |
Optional : The pronoun the person needs to be called as. Example : He/Him/His Or They/Them/Theirs She/Her/Hers Or They/Them/Theirs She/Her/Hers He/Him/His They/Them/Theirs To Fetch Pronouns : api/v1/Pronouns |
globally unique identifier |
None. |
| WorkEnvironmentTypeId |
Optional : Determines the Employment Type of the person, Example : Full time Remote, Hybrid etc. To Fetch WorkEnvironmentType : api/v1/WorkEnvironmentTypes |
globally unique identifier |
None. |
| EmploymentTermId |
Optional : Determines whether the employment is Permenent or temporary |
EmploymentTerm |
None. |
| WorkerTypeId |
Optional : Determines the type of work the person is going to be doing, example : Consultant, Contractor etc.. |
WorkerType |
None. |
| OfficeDeskLocation |
Determines the location of the office desk |
string |
None. |
| EmergencyContactName |
Determines the Name of the Person, whose contact is given as Emergency Contact. |
string |
None. |
| EmergencyContactRelationship |
Determines the Relationship of the Person with user, whose contact is given as Emergency Contact. |
string |
None. |
| EmergencyContactHomePhone |
Determines the Emergency Contact(Home) for a given user |
string |
None. |
| EmergencyContactWorkPhone |
Determines the Emergency Contact(Work) for a given user |
string |
None. |
| EmergencyContactMobilePhone |
Determines the Emergency Contact(Mobile) for a given user |
string |
None. |
| AllowBluID | boolean |
None. |
|
| AllowHIDMobile | boolean |
None. |
|
| AllowAppleWallet | boolean |
None. |
|
| AllowGoogleWallet | boolean |
None. |
Request Formats
application/json, text/json
{
"UserId": "3e9cd50e-3842-4038-bef9-952a520fb3e4",
"UserUpdatingOptions": 0,
"FirstName": "sample string 2",
"LastName": "sample string 3",
"MiddleInitial": "sample string 4",
"Nickname": "sample string 5",
"sGenderId": 1,
"DefaultFloorId": "0f3b401a-5db3-4213-b6aa-9d8f5a1d02fa",
"DefaultFloorStopId": 1,
"FacilityId": "7ecbb8b1-2124-42a9-9cf6-33b08072fa31",
"CompanyInstanceType": 6,
"CompanyInstanceId": "7e067eb0-2142-404e-835c-fda39e26ea34",
"ACSystemId": "4a62901a-3ef3-4a2e-835b-a46ffb269241",
"StartDatetime": "2025-10-11T21:56:24.574757+00:00",
"EndDatetime": "2025-10-11T21:56:24.574757+00:00",
"AccessRightsSuspended": true,
"AccessRightsSuspendedStart": "2025-10-11T21:56:24.574757+00:00",
"AccessRightsSuspendedEnd": "2025-10-11T21:56:24.574757+00:00",
"WebSiteRightsSuspended": true,
"WebSiteRightsSuspendedStart": "2025-10-11T21:56:24.574757+00:00",
"WebSiteRightsSuspendedEnd": "2025-10-11T21:56:24.574757+00:00",
"BadgeTemplateId": "9978ba81-fe85-40f7-a88c-a48fc3876051",
"EmployeeNumber": "sample string 10",
"HasLoginRights": true,
"Login": "sample string 12",
"Password": "sample string 13",
"GenerateWelcomeMessage": true,
"Deleted": true,
"JobTitle": "sample string 16",
"OccupancyName": "sample string 17",
"UserUDFValueViewModels": [
{
"UDFId": "3ec87bb6-c7ca-4c41-9d10-f817b31c6ad9",
"UDFValue": "sample string 2"
},
{
"UDFId": "3ec87bb6-c7ca-4c41-9d10-f817b31c6ad9",
"UDFValue": "sample string 2"
}
],
"DepartmentName": "sample string 18",
"DepartmentCode": "sample string 19",
"PronounId": "9fbc5b34-4311-4769-baf2-aaeb2ea690c4",
"WorkEnvironmentTypeId": "be1968c4-3648-45d5-804e-6266c311c713",
"EmploymentTermId": 0,
"WorkerTypeId": 0,
"OfficeDeskLocation": "sample string 20",
"EmergencyContactName": "sample string 21",
"EmergencyContactRelationship": "sample string 22",
"EmergencyContactHomePhone": "sample string 23",
"EmergencyContactWorkPhone": "sample string 24",
"EmergencyContactMobilePhone": "sample string 25",
"AllowBluID": true,
"AllowHIDMobile": true,
"AllowAppleWallet": true,
"AllowGoogleWallet": true
}
application/xml, text/xml
<UpdateUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
<ACSystemId>4a62901a-3ef3-4a2e-835b-a46ffb269241</ACSystemId>
<AccessRightsSuspended>true</AccessRightsSuspended>
<AccessRightsSuspendedEnd>2025-10-11T21:56:24.574757+00:00</AccessRightsSuspendedEnd>
<AccessRightsSuspendedStart>2025-10-11T21:56:24.574757+00:00</AccessRightsSuspendedStart>
<AllowAppleWallet>true</AllowAppleWallet>
<AllowBluID>true</AllowBluID>
<AllowGoogleWallet>true</AllowGoogleWallet>
<AllowHIDMobile>true</AllowHIDMobile>
<BadgeTemplateId>9978ba81-fe85-40f7-a88c-a48fc3876051</BadgeTemplateId>
<CompanyInstanceId>7e067eb0-2142-404e-835c-fda39e26ea34</CompanyInstanceId>
<CompanyInstanceType>6</CompanyInstanceType>
<DefaultFloorId>0f3b401a-5db3-4213-b6aa-9d8f5a1d02fa</DefaultFloorId>
<DefaultFloorStopId>1</DefaultFloorStopId>
<Deleted>true</Deleted>
<DepartmentCode>sample string 19</DepartmentCode>
<DepartmentName>sample string 18</DepartmentName>
<EmergencyContactHomePhone>sample string 23</EmergencyContactHomePhone>
<EmergencyContactMobilePhone>sample string 25</EmergencyContactMobilePhone>
<EmergencyContactName>sample string 21</EmergencyContactName>
<EmergencyContactRelationship>sample string 22</EmergencyContactRelationship>
<EmergencyContactWorkPhone>sample string 24</EmergencyContactWorkPhone>
<EmployeeNumber>sample string 10</EmployeeNumber>
<EmploymentTermId>Permanent</EmploymentTermId>
<EndDatetime>2025-10-11T21:56:24.574757+00:00</EndDatetime>
<FacilityId>7ecbb8b1-2124-42a9-9cf6-33b08072fa31</FacilityId>
<FirstName>sample string 2</FirstName>
<GenerateWelcomeMessage>true</GenerateWelcomeMessage>
<HasLoginRights>true</HasLoginRights>
<JobTitle>sample string 16</JobTitle>
<LastName>sample string 3</LastName>
<Login>sample string 12</Login>
<MiddleInitial>sample string 4</MiddleInitial>
<Nickname>sample string 5</Nickname>
<OccupancyName>sample string 17</OccupancyName>
<OfficeDeskLocation>sample string 20</OfficeDeskLocation>
<Password>sample string 13</Password>
<PronounId>9fbc5b34-4311-4769-baf2-aaeb2ea690c4</PronounId>
<StartDatetime>2025-10-11T21:56:24.574757+00:00</StartDatetime>
<UserUDFValueViewModels>
<UserUDFValueViewModel>
<UDFId>3ec87bb6-c7ca-4c41-9d10-f817b31c6ad9</UDFId>
<UDFValue>sample string 2</UDFValue>
</UserUDFValueViewModel>
<UserUDFValueViewModel>
<UDFId>3ec87bb6-c7ca-4c41-9d10-f817b31c6ad9</UDFId>
<UDFValue>sample string 2</UDFValue>
</UserUDFValueViewModel>
</UserUDFValueViewModels>
<WebSiteRightsSuspended>true</WebSiteRightsSuspended>
<WebSiteRightsSuspendedEnd>2025-10-11T21:56:24.574757+00:00</WebSiteRightsSuspendedEnd>
<WebSiteRightsSuspendedStart>2025-10-11T21:56:24.574757+00:00</WebSiteRightsSuspendedStart>
<WorkEnvironmentTypeId>be1968c4-3648-45d5-804e-6266c311c713</WorkEnvironmentTypeId>
<WorkerTypeId>Employee</WorkerTypeId>
<sGenderId>1</sGenderId>
<UserId>3e9cd50e-3842-4038-bef9-952a520fb3e4</UserId>
<UserUpdatingOptions>Unspecified</UserUpdatingOptions>
</UpdateUserViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode |
Represents the result code |
integer |
None. |
| Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
{
"ResultCode": 1,
"Description": "sample string 2"
}
application/xml, text/xml
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <Description>sample string 2</Description> <HttpStatusCode>Continue</HttpStatusCode> <ResultCode>1</ResultCode> </Result>