POST api/Setting/SaveGeneralSettings
Saves General Settings for a user.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
request |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "ComponentId": 1, "SubComponentId": 1, "SecurableId": "sample string 2", "DefualtLanguageCode": "sample string 3", "DisplayViewId": 4, "EntityId": 1, "GroupId": 1, "TimeZoneValue": 5, "MapPreferenceMode": 1, "DefaultGroupIds": [ 1, 2, 3 ], "CountryCodeId": 1, "DashboardID": 1, "MapFlagTypeId": 1, "showUnitsOnMap": 1, "ShowFlagAtZoomLevel": 1, "ShowFlagWhenUnitCount": 1, "DisableClusteringAtZoomLevel": 1, "MapTileProviderId": 6, "UnitOfMeasureID": 1, "Token": "sample string 7", "FreeText": "sample string 8", "GroupIds": [ 1, 2, 3 ], "FromIndex": 9, "ToIndex": 10, "IsWebCalling": true, "RequestMode": "sample string 12", "Client": "sample string 13", "AppVersion": "sample string 14", "AppOperatingSystem": "sample string 15", "AppName": "sample string 16", "MasterUserID": 17, "IsRecurringRequest": true }
text/html
Sample:
{"ComponentId":1,"SubComponentId":1,"SecurableId":"sample string 2","DefualtLanguageCode":"sample string 3","DisplayViewId":4,"EntityId":1,"GroupId":1,"TimeZoneValue":5,"MapPreferenceMode":1,"DefaultGroupIds":[1,2,3],"CountryCodeId":1,"DashboardID":1,"MapFlagTypeId":1,"showUnitsOnMap":1,"ShowFlagAtZoomLevel":1,"ShowFlagWhenUnitCount":1,"DisableClusteringAtZoomLevel":1,"MapTileProviderId":6,"UnitOfMeasureID":1,"Token":"sample string 7","FreeText":"sample string 8","GroupIds":[1,2,3],"FromIndex":9,"ToIndex":10,"IsWebCalling":true,"RequestMode":"sample string 12","Client":"sample string 13","AppVersion":"sample string 14","AppOperatingSystem":"sample string 15","AppName":"sample string 16","MasterUserID":17,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APIGeneralSettingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <AppName>sample string 16</AppName> <AppOperatingSystem>sample string 15</AppOperatingSystem> <AppVersion>sample string 14</AppVersion> <Client>sample string 13</Client> <FreeText>sample string 8</FreeText> <FromIndex>9</FromIndex> <GroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </GroupIds> <IsRecurringRequest>true</IsRecurringRequest> <IsWebCalling>true</IsWebCalling> <MasterUserID>17</MasterUserID> <RequestMode>sample string 12</RequestMode> <ToIndex>10</ToIndex> <Token>sample string 7</Token> <ComponentId>1</ComponentId> <CountryCodeId>1</CountryCodeId> <DashboardID>1</DashboardID> <DefaultGroupIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </DefaultGroupIds> <DefualtLanguageCode>sample string 3</DefualtLanguageCode> <DisableClusteringAtZoomLevel>1</DisableClusteringAtZoomLevel> <DisplayViewId>4</DisplayViewId> <EntityId>1</EntityId> <GroupId>1</GroupId> <MapFlagTypeId>1</MapFlagTypeId> <MapPreferenceMode>1</MapPreferenceMode> <MapTileProviderId>6</MapTileProviderId> <SecurableId>sample string 2</SecurableId> <ShowFlagAtZoomLevel>1</ShowFlagAtZoomLevel> <ShowFlagWhenUnitCount>1</ShowFlagWhenUnitCount> <SubComponentId>1</SubComponentId> <TimeZoneValue>5</TimeZoneValue> <UnitOfMeasureID>1</UnitOfMeasureID> <showUnitsOnMap>1</showUnitsOnMap> </APIGeneralSettingsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "UserDetailData": { "ID": 1, "UserID": 2, "ComponentID": 3, "DefaultLanguageCode": "sample string 4", "IsBoxViewDefault": true, "DisplayViewID": 6, "TriggerID": 1, "GroupID": 1, "TimeZoneValue": 7, "CountryCodeId": 1, "SecurableID": "fffb4043-214e-4c4b-a9d5-b6769645df60", "SubComponentID": 1, "EntityID": 1, "MapPerferenceMode": 1, "ShowUnitsOnMap": 1, "Latitude": 1.1, "Longitude": 1.1, "MapFlagTypeId": 8, "DefaultPage": "sample string 9", "GMTOffset": 10, "UserCountryCode": "sample string 11" }, "Success": true, "ErrorMessage": "sample string 2", "MenuAccessData": { "HasAccessToMap": true, "HasAccessToVehicle": true, "HasAccessToVehicleAdministration": true, "HasAccessToDriver": true, "HasAccessToPOI": true, "HasAccessToReports": true, "HasAccessToSettings": true, "HasAccessToTrips": true, "HasAccessToTranslations": true, "HasAccessToDashboard": true, "HasAccessToLogBook": true, "HasAccessToGroup": true, "HasAccessToTemplate": true, "HasAccessToUnit": true, "HasAccessToUser": true, "HasAccessToTicket": true, "HasAccessToContract": true, "HasAccessToSIM": true, "HasAccessToCommand": true, "HasAccessToUnitProfile": true, "HasAccessToProfileTrigger": true, "HasAccessToScript": true, "HasAccessToTriggerSchedule": true }, "StatusCode": 3, "ComponentFilterIds": [ 1, 2, 3 ] }
text/html
Sample:
{"UserDetailData":{"ID":1,"UserID":2,"ComponentID":3,"DefaultLanguageCode":"sample string 4","IsBoxViewDefault":true,"DisplayViewID":6,"TriggerID":1,"GroupID":1,"TimeZoneValue":7,"CountryCodeId":1,"SecurableID":"fffb4043-214e-4c4b-a9d5-b6769645df60","SubComponentID":1,"EntityID":1,"MapPerferenceMode":1,"ShowUnitsOnMap":1,"Latitude":1.1,"Longitude":1.1,"MapFlagTypeId":8,"DefaultPage":"sample string 9","GMTOffset":10,"UserCountryCode":"sample string 11"},"Success":true,"ErrorMessage":"sample string 2","MenuAccessData":{"HasAccessToMap":true,"HasAccessToVehicle":true,"HasAccessToVehicleAdministration":true,"HasAccessToDriver":true,"HasAccessToPOI":true,"HasAccessToReports":true,"HasAccessToSettings":true,"HasAccessToTrips":true,"HasAccessToTranslations":true,"HasAccessToDashboard":true,"HasAccessToLogBook":true,"HasAccessToGroup":true,"HasAccessToTemplate":true,"HasAccessToUnit":true,"HasAccessToUser":true,"HasAccessToTicket":true,"HasAccessToContract":true,"HasAccessToSIM":true,"HasAccessToCommand":true,"HasAccessToUnitProfile":true,"HasAccessToProfileTrigger":true,"HasAccessToScript":true,"HasAccessToTriggerSchedule":true},"StatusCode":3,"ComponentFilterIds":[1,2,3]}
application/xml, text/xml
Sample:
<APIUserSettingDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.APIModels"> <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.Transport">Success</ResponseCode> <ComponentFilterIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </ComponentFilterIds> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 2</ErrorMessage> <MenuAccessData xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <HasAccessToCommand>true</HasAccessToCommand> <HasAccessToContract>true</HasAccessToContract> <HasAccessToDashboard>true</HasAccessToDashboard> <HasAccessToDriver>true</HasAccessToDriver> <HasAccessToGroup>true</HasAccessToGroup> <HasAccessToLogBook>true</HasAccessToLogBook> <HasAccessToMap>true</HasAccessToMap> <HasAccessToPOI>true</HasAccessToPOI> <HasAccessToProfileTrigger>true</HasAccessToProfileTrigger> <HasAccessToReports>true</HasAccessToReports> <HasAccessToSIM>true</HasAccessToSIM> <HasAccessToScript>true</HasAccessToScript> <HasAccessToSettings>true</HasAccessToSettings> <HasAccessToTemplate>true</HasAccessToTemplate> <HasAccessToTicket>true</HasAccessToTicket> <HasAccessToTranslations>true</HasAccessToTranslations> <HasAccessToTriggerSchedule>true</HasAccessToTriggerSchedule> <HasAccessToTrips>true</HasAccessToTrips> <HasAccessToUnit>true</HasAccessToUnit> <HasAccessToUnitProfile>true</HasAccessToUnitProfile> <HasAccessToUser>true</HasAccessToUser> <HasAccessToVehicle>true</HasAccessToVehicle> <HasAccessToVehicleAdministration>true</HasAccessToVehicleAdministration> </MenuAccessData> <StatusCode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">3</StatusCode> <Success xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</Success> <UserDetailData> <ComponentID>3</ComponentID> <CountryCodeId>1</CountryCodeId> <DefaultLanguageCode>sample string 4</DefaultLanguageCode> <DefaultPage>sample string 9</DefaultPage> <DisplayViewID>6</DisplayViewID> <EntityID>1</EntityID> <GMTOffset>10</GMTOffset> <GroupID>1</GroupID> <ID>1</ID> <IsBoxViewDefault>true</IsBoxViewDefault> <Latitude>1.1</Latitude> <Longitude>1.1</Longitude> <MapFlagTypeId>8</MapFlagTypeId> <MapPerferenceMode>1</MapPerferenceMode> <SecurableID>fffb4043-214e-4c4b-a9d5-b6769645df60</SecurableID> <ShowUnitsOnMap>1</ShowUnitsOnMap> <SubComponentID>1</SubComponentID> <TimeZoneValue>7</TimeZoneValue> <TriggerID>1</TriggerID> <UserCountryCode>sample string 11</UserCountryCode> <UserID>2</UserID> </UserDetailData> </APIUserSettingDetailResponse>