PUT api/v1/users/{userId}
Updates the user details.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
The user identifier. |
globally unique identifier |
Required |
Body Parameters
The user details.
UserDetailsName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
ClubId | globally unique identifier |
Required |
|
FriendlyName | string |
Required String length: inclusive between 0 and 100 |
|
NotificationEmail | string |
Required String length: inclusive between 0 and 256 |
|
PersonId | globally unique identifier |
None. |
|
Remarks | string |
None. |
|
UserName | string |
Required String length: inclusive between 0 and 256 |
|
UserRoleIds | Collection of globally unique identifier |
None. |
|
AccountState | integer |
None. |
|
LastPasswordChangeOn | date |
None. |
|
ShowAllFlightFieldsInMobile | boolean |
None. |
|
ForcePasswordChangeNextLogon | boolean |
None. |
|
EmailConfirmed | boolean |
None. |
|
ShowFlightsFrom | integer |
None. |
|
FlightChangePeriod | integer |
None. |
|
Id | globally unique identifier |
None. |
|
Language | LanguageOverview |
None. |
|
CanUpdateRecord | boolean |
None. |
|
CanDeleteRecord | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserId": "f1908e03-b026-4ab4-a9f6-a337885459b6", "ClubId": "5fed404a-42a7-4927-9dd8-305299cd1fff", "FriendlyName": "sample string 3", "NotificationEmail": "sample string 4", "PersonId": "3c1d44f0-1b2d-4f97-80c1-bad92eb9beeb", "Remarks": "sample string 5", "UserName": "sample string 6", "UserRoleIds": [ "401840d5-90bc-4c90-92d4-ccbfb5d162a9", "fd0c44d0-5389-4e04-b779-8d25437be896" ], "AccountState": 7, "LastPasswordChangeOn": "2024-04-03T04:38:25.9130746+02:00", "ShowAllFlightFieldsInMobile": true, "ForcePasswordChangeNextLogon": true, "EmailConfirmed": true, "ShowFlightsFrom": 1, "FlightChangePeriod": 1, "Id": "f1908e03-b026-4ab4-a9f6-a337885459b6", "Language": { "LanguageId": 1, "LanguageKey": "sample string 2" }, "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"UserId":"f1908e03-b026-4ab4-a9f6-a337885459b6","ClubId":"5fed404a-42a7-4927-9dd8-305299cd1fff","FriendlyName":"sample string 3","NotificationEmail":"sample string 4","PersonId":"3c1d44f0-1b2d-4f97-80c1-bad92eb9beeb","Remarks":"sample string 5","UserName":"sample string 6","UserRoleIds":["401840d5-90bc-4c90-92d4-ccbfb5d162a9","fd0c44d0-5389-4e04-b779-8d25437be896"],"AccountState":7,"LastPasswordChangeOn":"2024-04-03T04:38:25.9130746+02:00","ShowAllFlightFieldsInMobile":true,"ForcePasswordChangeNextLogon":true,"EmailConfirmed":true,"ShowFlightsFrom":1,"FlightChangePeriod":1,"Id":"f1908e03-b026-4ab4-a9f6-a337885459b6","Language":{"LanguageId":1,"LanguageKey":"sample string 2"},"CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<UserDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.User"> <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord> <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord> <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">f1908e03-b026-4ab4-a9f6-a337885459b6</Id> <AccountState>7</AccountState> <ClubId>5fed404a-42a7-4927-9dd8-305299cd1fff</ClubId> <EmailConfirmed>true</EmailConfirmed> <FlightChangePeriod>1</FlightChangePeriod> <ForcePasswordChangeNextLogon>true</ForcePasswordChangeNextLogon> <FriendlyName>sample string 3</FriendlyName> <Language> <LanguageId>1</LanguageId> <LanguageKey>sample string 2</LanguageKey> </Language> <LastPasswordChangeOn>2024-04-03T04:38:25.9130746+02:00</LastPasswordChangeOn> <NotificationEmail>sample string 4</NotificationEmail> <PersonId>3c1d44f0-1b2d-4f97-80c1-bad92eb9beeb</PersonId> <Remarks>sample string 5</Remarks> <ShowAllFlightFieldsInMobile>true</ShowAllFlightFieldsInMobile> <ShowFlightsFrom>1</ShowFlightsFrom> <UserId>f1908e03-b026-4ab4-a9f6-a337885459b6</UserId> <UserName>sample string 6</UserName> <UserRoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>401840d5-90bc-4c90-92d4-ccbfb5d162a9</d2p1:guid> <d2p1:guid>fd0c44d0-5389-4e04-b779-8d25437be896</d2p1:guid> </UserRoleIds> </UserDetails>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UserDetailsName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
ClubId | globally unique identifier |
Required |
|
FriendlyName | string |
Required String length: inclusive between 0 and 100 |
|
NotificationEmail | string |
Required String length: inclusive between 0 and 256 |
|
PersonId | globally unique identifier |
None. |
|
Remarks | string |
None. |
|
UserName | string |
Required String length: inclusive between 0 and 256 |
|
UserRoleIds | Collection of globally unique identifier |
None. |
|
AccountState | integer |
None. |
|
LastPasswordChangeOn | date |
None. |
|
ShowAllFlightFieldsInMobile | boolean |
None. |
|
ForcePasswordChangeNextLogon | boolean |
None. |
|
EmailConfirmed | boolean |
None. |
|
ShowFlightsFrom | integer |
None. |
|
FlightChangePeriod | integer |
None. |
|
Id | globally unique identifier |
None. |
|
Language | LanguageOverview |
None. |
|
CanUpdateRecord | boolean |
None. |
|
CanDeleteRecord | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserId": "8bac9309-0843-47c5-b46b-fa367c1d4806", "ClubId": "5b45f721-5561-46f5-9ee9-129a761db720", "FriendlyName": "sample string 3", "NotificationEmail": "sample string 4", "PersonId": "cd7c88c9-f853-44fa-b4fc-39fb25f91921", "Remarks": "sample string 5", "UserName": "sample string 6", "UserRoleIds": [ "87224e26-c977-4d45-b44e-14914ca1efad", "f0a0862b-c2d5-4855-bb7b-0b38feb54cce" ], "AccountState": 7, "LastPasswordChangeOn": "2024-04-03T04:38:25.9140716+02:00", "ShowAllFlightFieldsInMobile": true, "ForcePasswordChangeNextLogon": true, "EmailConfirmed": true, "ShowFlightsFrom": 1, "FlightChangePeriod": 1, "Id": "8bac9309-0843-47c5-b46b-fa367c1d4806", "Language": { "LanguageId": 1, "LanguageKey": "sample string 2" }, "CanUpdateRecord": true, "CanDeleteRecord": true }
text/html
Sample:
{"UserId":"8bac9309-0843-47c5-b46b-fa367c1d4806","ClubId":"5b45f721-5561-46f5-9ee9-129a761db720","FriendlyName":"sample string 3","NotificationEmail":"sample string 4","PersonId":"cd7c88c9-f853-44fa-b4fc-39fb25f91921","Remarks":"sample string 5","UserName":"sample string 6","UserRoleIds":["87224e26-c977-4d45-b44e-14914ca1efad","f0a0862b-c2d5-4855-bb7b-0b38feb54cce"],"AccountState":7,"LastPasswordChangeOn":"2024-04-03T04:38:25.9140716+02:00","ShowAllFlightFieldsInMobile":true,"ForcePasswordChangeNextLogon":true,"EmailConfirmed":true,"ShowFlightsFrom":1,"FlightChangePeriod":1,"Id":"8bac9309-0843-47c5-b46b-fa367c1d4806","Language":{"LanguageId":1,"LanguageKey":"sample string 2"},"CanUpdateRecord":true,"CanDeleteRecord":true}
application/xml, text/xml
Sample:
<UserDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.User"> <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord> <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord> <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">8bac9309-0843-47c5-b46b-fa367c1d4806</Id> <AccountState>7</AccountState> <ClubId>5b45f721-5561-46f5-9ee9-129a761db720</ClubId> <EmailConfirmed>true</EmailConfirmed> <FlightChangePeriod>1</FlightChangePeriod> <ForcePasswordChangeNextLogon>true</ForcePasswordChangeNextLogon> <FriendlyName>sample string 3</FriendlyName> <Language> <LanguageId>1</LanguageId> <LanguageKey>sample string 2</LanguageKey> </Language> <LastPasswordChangeOn>2024-04-03T04:38:25.9140716+02:00</LastPasswordChangeOn> <NotificationEmail>sample string 4</NotificationEmail> <PersonId>cd7c88c9-f853-44fa-b4fc-39fb25f91921</PersonId> <Remarks>sample string 5</Remarks> <ShowAllFlightFieldsInMobile>true</ShowAllFlightFieldsInMobile> <ShowFlightsFrom>1</ShowFlightsFrom> <UserId>8bac9309-0843-47c5-b46b-fa367c1d4806</UserId> <UserName>sample string 6</UserName> <UserRoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>87224e26-c977-4d45-b44e-14914ca1efad</d2p1:guid> <d2p1:guid>f0a0862b-c2d5-4855-bb7b-0b38feb54cce</d2p1:guid> </UserRoleIds> </UserDetails>