POST api/Contract/UpdateMultipleContracts
Updates multiple users.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
req |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "ContractIds": [ 1, 2, 3 ], "AccountID": 1, "StartDate": "2025-04-04T00:04:02.7703578+02:00", "EndDate": "2025-04-04T00:04:02.7713324+02:00", "NoOfUsers": 1, "NoOfUnits": 1, "MonthlyFee": 1.1, "IsActive": true, "Note": "sample string 1", "ContractTerm": "sample string 2", "Token": "sample string 3", "FreeText": "sample string 4", "GroupIds": [ 1, 2, 3 ], "FromIndex": 5, "ToIndex": 6, "IsWebCalling": true, "RequestMode": "sample string 8", "Client": "sample string 9", "AppVersion": "sample string 10", "AppOperatingSystem": "sample string 11", "AppName": "sample string 12", "MasterUserID": 13, "IsRecurringRequest": true }
text/html
Sample:
{"ContractIds":[1,2,3],"AccountID":1,"StartDate":"2025-04-04T00:04:02.7703578+02:00","EndDate":"2025-04-04T00:04:02.7713324+02:00","NoOfUsers":1,"NoOfUnits":1,"MonthlyFee":1.1,"IsActive":true,"Note":"sample string 1","ContractTerm":"sample string 2","Token":"sample string 3","FreeText":"sample string 4","GroupIds":[1,2,3],"FromIndex":5,"ToIndex":6,"IsWebCalling":true,"RequestMode":"sample string 8","Client":"sample string 9","AppVersion":"sample string 10","AppOperatingSystem":"sample string 11","AppName":"sample string 12","MasterUserID":13,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APIMultipleContractUpdateRequest 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 12</AppName> <AppOperatingSystem xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 11</AppOperatingSystem> <AppVersion xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 10</AppVersion> <Client xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 9</Client> <FreeText xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 4</FreeText> <FromIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">5</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">13</MasterUserID> <RequestMode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 8</RequestMode> <ToIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">6</ToIndex> <Token xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 3</Token> <AccountID>1</AccountID> <ContractIds 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> </ContractIds> <ContractTerm>sample string 2</ContractTerm> <EndDate>2025-04-04T00:04:02.7713324+02:00</EndDate> <IsActive>true</IsActive> <MonthlyFee>1.1</MonthlyFee> <NoOfUnits>1</NoOfUnits> <NoOfUsers>1</NoOfUsers> <Note>sample string 1</Note> <StartDate>2025-04-04T00:04:02.7703578+02:00</StartDate> </APIMultipleContractUpdateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "ContractData": [ { "ID": 1, "AccountID": 1, "ContractNo": "sample string 2", "AccountNo": "sample string 3", "StartDate": "2025-04-04T00:04:02.8035568+02:00", "EndDate": "2025-04-04T00:04:02.8035568+02:00", "NoOfUsers": 1, "NoOfUnits": 1, "MonthlyFee": 1.1, "IsActive": true, "Note": "sample string 4", "CreatedDate": "2025-04-04T00:04:02.8035568+02:00", "ContractTerm": "sample string 5", "RecurringRevenue": 1.1, "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } }, { "ID": 1, "AccountID": 1, "ContractNo": "sample string 2", "AccountNo": "sample string 3", "StartDate": "2025-04-04T00:04:02.8035568+02:00", "EndDate": "2025-04-04T00:04:02.8035568+02:00", "NoOfUsers": 1, "NoOfUnits": 1, "MonthlyFee": 1.1, "IsActive": true, "Note": "sample string 4", "CreatedDate": "2025-04-04T00:04:02.8035568+02:00", "ContractTerm": "sample string 5", "RecurringRevenue": 1.1, "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } }, { "ID": 1, "AccountID": 1, "ContractNo": "sample string 2", "AccountNo": "sample string 3", "StartDate": "2025-04-04T00:04:02.8035568+02:00", "EndDate": "2025-04-04T00:04:02.8035568+02:00", "NoOfUsers": 1, "NoOfUnits": 1, "MonthlyFee": 1.1, "IsActive": true, "Note": "sample string 4", "CreatedDate": "2025-04-04T00:04:02.8035568+02:00", "ContractTerm": "sample string 5", "RecurringRevenue": 1.1, "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true } } ], "SummaryData": { "TotalContracts": 1, "TotalUnits": 2, "RecurringRevenue": 3.1 }, "UpdateMessages": [ { "ID": 1, "Message": "sample string 2", "MessageType": 3 }, { "ID": 1, "Message": "sample string 2", "MessageType": 3 }, { "ID": 1, "Message": "sample string 2", "MessageType": 3 } ], "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:
{"ContractData":[{"ID":1,"AccountID":1,"ContractNo":"sample string 2","AccountNo":"sample string 3","StartDate":"2025-04-04T00:04:02.8035568+02:00","EndDate":"2025-04-04T00:04:02.8035568+02:00","NoOfUsers":1,"NoOfUnits":1,"MonthlyFee":1.1,"IsActive":true,"Note":"sample string 4","CreatedDate":"2025-04-04T00:04:02.8035568+02:00","ContractTerm":"sample string 5","RecurringRevenue":1.1,"AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}},{"ID":1,"AccountID":1,"ContractNo":"sample string 2","AccountNo":"sample string 3","StartDate":"2025-04-04T00:04:02.8035568+02:00","EndDate":"2025-04-04T00:04:02.8035568+02:00","NoOfUsers":1,"NoOfUnits":1,"MonthlyFee":1.1,"IsActive":true,"Note":"sample string 4","CreatedDate":"2025-04-04T00:04:02.8035568+02:00","ContractTerm":"sample string 5","RecurringRevenue":1.1,"AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}},{"ID":1,"AccountID":1,"ContractNo":"sample string 2","AccountNo":"sample string 3","StartDate":"2025-04-04T00:04:02.8035568+02:00","EndDate":"2025-04-04T00:04:02.8035568+02:00","NoOfUsers":1,"NoOfUnits":1,"MonthlyFee":1.1,"IsActive":true,"Note":"sample string 4","CreatedDate":"2025-04-04T00:04:02.8035568+02:00","ContractTerm":"sample string 5","RecurringRevenue":1.1,"AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true}}],"SummaryData":{"TotalContracts":1,"TotalUnits":2,"RecurringRevenue":3.1},"UpdateMessages":[{"ID":1,"Message":"sample string 2","MessageType":3},{"ID":1,"Message":"sample string 2","MessageType":3},{"ID":1,"Message":"sample string 2","MessageType":3}],"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:
<APIMultipleContractsUpdateResponse 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> <ContractData> <APIContractWithSummaryData> <AccessRights xmlns:d4p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <d4p1:HasCreateAccess>true</d4p1:HasCreateAccess> <d4p1:HasDeleteAccess>true</d4p1:HasDeleteAccess> <d4p1:HasRetrieveAccess>true</d4p1:HasRetrieveAccess> <d4p1:HasUpdateAccess>true</d4p1:HasUpdateAccess> </AccessRights> <AccountID>1</AccountID> <AccountNo>sample string 3</AccountNo> <ContractNo>sample string 2</ContractNo> <ContractTerm>sample string 5</ContractTerm> <CreatedDate>2025-04-04T00:04:02.8035568+02:00</CreatedDate> <EndDate>2025-04-04T00:04:02.8035568+02:00</EndDate> <ID>1</ID> <IsActive>true</IsActive> <MonthlyFee>1.1</MonthlyFee> <NoOfUnits>1</NoOfUnits> <NoOfUsers>1</NoOfUsers> <Note>sample string 4</Note> <RecurringRevenue>1.1</RecurringRevenue> <StartDate>2025-04-04T00:04:02.8035568+02:00</StartDate> </APIContractWithSummaryData> <APIContractWithSummaryData> <AccessRights xmlns:d4p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <d4p1:HasCreateAccess>true</d4p1:HasCreateAccess> <d4p1:HasDeleteAccess>true</d4p1:HasDeleteAccess> <d4p1:HasRetrieveAccess>true</d4p1:HasRetrieveAccess> <d4p1:HasUpdateAccess>true</d4p1:HasUpdateAccess> </AccessRights> <AccountID>1</AccountID> <AccountNo>sample string 3</AccountNo> <ContractNo>sample string 2</ContractNo> <ContractTerm>sample string 5</ContractTerm> <CreatedDate>2025-04-04T00:04:02.8035568+02:00</CreatedDate> <EndDate>2025-04-04T00:04:02.8035568+02:00</EndDate> <ID>1</ID> <IsActive>true</IsActive> <MonthlyFee>1.1</MonthlyFee> <NoOfUnits>1</NoOfUnits> <NoOfUsers>1</NoOfUsers> <Note>sample string 4</Note> <RecurringRevenue>1.1</RecurringRevenue> <StartDate>2025-04-04T00:04:02.8035568+02:00</StartDate> </APIContractWithSummaryData> <APIContractWithSummaryData> <AccessRights xmlns:d4p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels"> <d4p1:HasCreateAccess>true</d4p1:HasCreateAccess> <d4p1:HasDeleteAccess>true</d4p1:HasDeleteAccess> <d4p1:HasRetrieveAccess>true</d4p1:HasRetrieveAccess> <d4p1:HasUpdateAccess>true</d4p1:HasUpdateAccess> </AccessRights> <AccountID>1</AccountID> <AccountNo>sample string 3</AccountNo> <ContractNo>sample string 2</ContractNo> <ContractTerm>sample string 5</ContractTerm> <CreatedDate>2025-04-04T00:04:02.8035568+02:00</CreatedDate> <EndDate>2025-04-04T00:04:02.8035568+02:00</EndDate> <ID>1</ID> <IsActive>true</IsActive> <MonthlyFee>1.1</MonthlyFee> <NoOfUnits>1</NoOfUnits> <NoOfUsers>1</NoOfUsers> <Note>sample string 4</Note> <RecurringRevenue>1.1</RecurringRevenue> <StartDate>2025-04-04T00:04:02.8035568+02:00</StartDate> </APIContractWithSummaryData> </ContractData> <SummaryData> <RecurringRevenue>3.1</RecurringRevenue> <TotalContracts>1</TotalContracts> <TotalUnits>2</TotalUnits> </SummaryData> <UpdateMessages xmlns:d2p1="http://schemas.datacontract.org/2004/07/Accessor.Common.Model"> <d2p1:ContractUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:ContractUpdateMessage> <d2p1:ContractUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:ContractUpdateMessage> <d2p1:ContractUpdateMessage> <d2p1:ID>1</d2p1:ID> <d2p1:Message>sample string 2</d2p1:Message> <d2p1:MessageType>3</d2p1:MessageType> </d2p1:ContractUpdateMessage> </UpdateMessages> </APIMultipleContractsUpdateResponse>