POST api/Template/UpdateTemplate
Creates a new template
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
req |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "Data": { "ID": 1, "AccessRights": [ 1, 2, 3 ], "Components": [ 1, 2, 3 ], "Reports": [ 1, 2, 3 ], "AppRights": [ 1, 2, 3 ], "ModuleIDs": [ 1, 2, 3 ], "GroupAccessCode": "sample string 2", "Description": "sample string 3", "Name": "sample string 4", "IsShared": true, "AccessRightIdsCSV": "sample string 5", "FilterIdsCSV": "sample string 6", "ReportIdsCSV": "sample string 7", "AppIdsCSV": "sample string 8", "TriggerTypeIdsCSV": "sample string 9", "CommunicationModesCSV": "sample string 10", "DashboardsCSV": "sample string 11" }, "ConflictOptionID": 1, "Token": "sample string 2", "FreeText": "sample string 3", "GroupIds": [ 1, 2, 3 ], "FromIndex": 4, "ToIndex": 5, "IsWebCalling": true, "RequestMode": "sample string 7", "Client": "sample string 8", "AppVersion": "sample string 9", "AppOperatingSystem": "sample string 10", "AppName": "sample string 11", "MasterUserID": 12, "IsRecurringRequest": true }
text/html
Sample:
{"Data":{"ID":1,"AccessRights":[1,2,3],"Components":[1,2,3],"Reports":[1,2,3],"AppRights":[1,2,3],"ModuleIDs":[1,2,3],"GroupAccessCode":"sample string 2","Description":"sample string 3","Name":"sample string 4","IsShared":true,"AccessRightIdsCSV":"sample string 5","FilterIdsCSV":"sample string 6","ReportIdsCSV":"sample string 7","AppIdsCSV":"sample string 8","TriggerTypeIdsCSV":"sample string 9","CommunicationModesCSV":"sample string 10","DashboardsCSV":"sample string 11"},"ConflictOptionID":1,"Token":"sample string 2","FreeText":"sample string 3","GroupIds":[1,2,3],"FromIndex":4,"ToIndex":5,"IsWebCalling":true,"RequestMode":"sample string 7","Client":"sample string 8","AppVersion":"sample string 9","AppOperatingSystem":"sample string 10","AppName":"sample string 11","MasterUserID":12,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APICreateTemplateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Model.APIModels"> <AppName xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 11</AppName> <AppOperatingSystem xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 10</AppOperatingSystem> <AppVersion xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 9</AppVersion> <Client xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 8</Client> <FreeText xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 3</FreeText> <FromIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">4</FromIndex> <GroupIds 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> </GroupIds> <IsRecurringRequest xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</IsRecurringRequest> <IsWebCalling xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">true</IsWebCalling> <MasterUserID xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">12</MasterUserID> <RequestMode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 7</RequestMode> <ToIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">5</ToIndex> <Token xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 2</Token> <ConflictOptionID>1</ConflictOptionID> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Model"> <d2p1:AccessRightIdsCSV>sample string 5</d2p1:AccessRightIdsCSV> <d2p1:AccessRights xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> <d3p1:int>3</d3p1:int> </d2p1:AccessRights> <d2p1:AppIdsCSV>sample string 8</d2p1:AppIdsCSV> <d2p1:AppRights xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> <d3p1:int>3</d3p1:int> </d2p1:AppRights> <d2p1:CommunicationModesCSV>sample string 10</d2p1:CommunicationModesCSV> <d2p1:Components xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> <d3p1:int>3</d3p1:int> </d2p1:Components> <d2p1:DashboardsCSV>sample string 11</d2p1:DashboardsCSV> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:FilterIdsCSV>sample string 6</d2p1:FilterIdsCSV> <d2p1:GroupAccessCode>sample string 2</d2p1:GroupAccessCode> <d2p1:ID>1</d2p1:ID> <d2p1:IsShared>true</d2p1:IsShared> <d2p1:ModuleIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> <d3p1:int>3</d3p1:int> </d2p1:ModuleIDs> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:ReportIdsCSV>sample string 7</d2p1:ReportIdsCSV> <d2p1:Reports xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> <d3p1:int>3</d3p1:int> </d2p1:Reports> <d2p1:TriggerTypeIdsCSV>sample string 9</d2p1:TriggerTypeIdsCSV> </Data> </APICreateTemplateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "TemplateDataList": [ { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "CreateDate": "2025-04-03T10:35:11.3830283+02:00", "GroupAccessCode": "sample string 5", "AccountCount": 6, "UnitCount": 7, "IsShared": true, "AccessRightsCSV": "sample string 8", "ComponentsCSV": "sample string 9", "GroupsCSV": "sample string 10", "ReportsCSV": "sample string 11", "AppRightsCSV": "sample string 12", "TriggerTypeCSV": "sample string 13", "CommunicationModesCSV": "sample string 14", "DashboardsCSV": "sample string 15", "Modules": [ { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" } ] }, { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "CreateDate": "2025-04-03T10:35:11.3830283+02:00", "GroupAccessCode": "sample string 5", "AccountCount": 6, "UnitCount": 7, "IsShared": true, "AccessRightsCSV": "sample string 8", "ComponentsCSV": "sample string 9", "GroupsCSV": "sample string 10", "ReportsCSV": "sample string 11", "AppRightsCSV": "sample string 12", "TriggerTypeCSV": "sample string 13", "CommunicationModesCSV": "sample string 14", "DashboardsCSV": "sample string 15", "Modules": [ { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" } ] }, { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "CreateDate": "2025-04-03T10:35:11.3830283+02:00", "GroupAccessCode": "sample string 5", "AccountCount": 6, "UnitCount": 7, "IsShared": true, "AccessRightsCSV": "sample string 8", "ComponentsCSV": "sample string 9", "GroupsCSV": "sample string 10", "ReportsCSV": "sample string 11", "AppRightsCSV": "sample string 12", "TriggerTypeCSV": "sample string 13", "CommunicationModesCSV": "sample string 14", "DashboardsCSV": "sample string 15", "Modules": [ { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" }, { "ID": 1, "Name": "sample string 2" } ] } ], "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:
{"TemplateDataList":[{"ID":1,"Name":"sample string 2","Description":"sample string 3","CreateDate":"2025-04-03T10:35:11.3830283+02:00","GroupAccessCode":"sample string 5","AccountCount":6,"UnitCount":7,"IsShared":true,"AccessRightsCSV":"sample string 8","ComponentsCSV":"sample string 9","GroupsCSV":"sample string 10","ReportsCSV":"sample string 11","AppRightsCSV":"sample string 12","TriggerTypeCSV":"sample string 13","CommunicationModesCSV":"sample string 14","DashboardsCSV":"sample string 15","Modules":[{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"}]},{"ID":1,"Name":"sample string 2","Description":"sample string 3","CreateDate":"2025-04-03T10:35:11.3830283+02:00","GroupAccessCode":"sample string 5","AccountCount":6,"UnitCount":7,"IsShared":true,"AccessRightsCSV":"sample string 8","ComponentsCSV":"sample string 9","GroupsCSV":"sample string 10","ReportsCSV":"sample string 11","AppRightsCSV":"sample string 12","TriggerTypeCSV":"sample string 13","CommunicationModesCSV":"sample string 14","DashboardsCSV":"sample string 15","Modules":[{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"}]},{"ID":1,"Name":"sample string 2","Description":"sample string 3","CreateDate":"2025-04-03T10:35:11.3830283+02:00","GroupAccessCode":"sample string 5","AccountCount":6,"UnitCount":7,"IsShared":true,"AccessRightsCSV":"sample string 8","ComponentsCSV":"sample string 9","GroupsCSV":"sample string 10","ReportsCSV":"sample string 11","AppRightsCSV":"sample string 12","TriggerTypeCSV":"sample string 13","CommunicationModesCSV":"sample string 14","DashboardsCSV":"sample string 15","Modules":[{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"},{"ID":1,"Name":"sample string 2"}]}],"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:
<APITemplateWithSummaryResponse 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> <TemplateDataList> <APITemplateDataWithSummary> <AccessRightsCSV>sample string 8</AccessRightsCSV> <AccountCount>6</AccountCount> <AppRightsCSV>sample string 12</AppRightsCSV> <CommunicationModesCSV>sample string 14</CommunicationModesCSV> <ComponentsCSV>sample string 9</ComponentsCSV> <CreateDate>2025-04-03T10:35:11.3830283+02:00</CreateDate> <DashboardsCSV>sample string 15</DashboardsCSV> <Description>sample string 3</Description> <GroupAccessCode>sample string 5</GroupAccessCode> <GroupsCSV>sample string 10</GroupsCSV> <ID>1</ID> <IsShared>true</IsShared> <Modules> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> </Modules> <Name>sample string 2</Name> <ReportsCSV>sample string 11</ReportsCSV> <TriggerTypeCSV>sample string 13</TriggerTypeCSV> <UnitCount>7</UnitCount> </APITemplateDataWithSummary> <APITemplateDataWithSummary> <AccessRightsCSV>sample string 8</AccessRightsCSV> <AccountCount>6</AccountCount> <AppRightsCSV>sample string 12</AppRightsCSV> <CommunicationModesCSV>sample string 14</CommunicationModesCSV> <ComponentsCSV>sample string 9</ComponentsCSV> <CreateDate>2025-04-03T10:35:11.3830283+02:00</CreateDate> <DashboardsCSV>sample string 15</DashboardsCSV> <Description>sample string 3</Description> <GroupAccessCode>sample string 5</GroupAccessCode> <GroupsCSV>sample string 10</GroupsCSV> <ID>1</ID> <IsShared>true</IsShared> <Modules> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> </Modules> <Name>sample string 2</Name> <ReportsCSV>sample string 11</ReportsCSV> <TriggerTypeCSV>sample string 13</TriggerTypeCSV> <UnitCount>7</UnitCount> </APITemplateDataWithSummary> <APITemplateDataWithSummary> <AccessRightsCSV>sample string 8</AccessRightsCSV> <AccountCount>6</AccountCount> <AppRightsCSV>sample string 12</AppRightsCSV> <CommunicationModesCSV>sample string 14</CommunicationModesCSV> <ComponentsCSV>sample string 9</ComponentsCSV> <CreateDate>2025-04-03T10:35:11.3830283+02:00</CreateDate> <DashboardsCSV>sample string 15</DashboardsCSV> <Description>sample string 3</Description> <GroupAccessCode>sample string 5</GroupAccessCode> <GroupsCSV>sample string 10</GroupsCSV> <ID>1</ID> <IsShared>true</IsShared> <Modules> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> <APIModuleLinkData> <ID>1</ID> <Name>sample string 2</Name> </APIModuleLinkData> </Modules> <Name>sample string 2</Name> <ReportsCSV>sample string 11</ReportsCSV> <TriggerTypeCSV>sample string 13</TriggerTypeCSV> <UnitCount>7</UnitCount> </APITemplateDataWithSummary> </TemplateDataList> </APITemplateWithSummaryResponse>