POST api/UnitConfig/AddMessage
Adds a Contract.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
req |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{ "UnitProfileID": 1, "ConfigMessageID": 2, "Name": "sample string 3", "Description": "sample string 4", "Message": "sample string 5", "DeviceVendorID": 6, "SortOrder": 7, "IsHex": true, "IsCommand": true, "VPEventMessageIdWithSortOrderData": [ { "VehicleProfileEventMessageId": 1, "SortOrder": 2 }, { "VehicleProfileEventMessageId": 1, "SortOrder": 2 }, { "VehicleProfileEventMessageId": 1, "SortOrder": 2 } ], "ConfigEventID": 10, "Token": "sample string 11", "FreeText": "sample string 12", "GroupIds": [ 1, 2, 3 ], "FromIndex": 13, "ToIndex": 14, "IsWebCalling": true, "RequestMode": "sample string 16", "Client": "sample string 17", "AppVersion": "sample string 18", "AppOperatingSystem": "sample string 19", "AppName": "sample string 20", "MasterUserID": 21, "IsRecurringRequest": true }
text/html
Sample:
{"UnitProfileID":1,"ConfigMessageID":2,"Name":"sample string 3","Description":"sample string 4","Message":"sample string 5","DeviceVendorID":6,"SortOrder":7,"IsHex":true,"IsCommand":true,"VPEventMessageIdWithSortOrderData":[{"VehicleProfileEventMessageId":1,"SortOrder":2},{"VehicleProfileEventMessageId":1,"SortOrder":2},{"VehicleProfileEventMessageId":1,"SortOrder":2}],"ConfigEventID":10,"Token":"sample string 11","FreeText":"sample string 12","GroupIds":[1,2,3],"FromIndex":13,"ToIndex":14,"IsWebCalling":true,"RequestMode":"sample string 16","Client":"sample string 17","AppVersion":"sample string 18","AppOperatingSystem":"sample string 19","AppName":"sample string 20","MasterUserID":21,"IsRecurringRequest":true}
application/xml, text/xml
Sample:
<APIConfigMessageAddUpdateRequest 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 20</AppName> <AppOperatingSystem xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 19</AppOperatingSystem> <AppVersion xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 18</AppVersion> <Client xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 17</Client> <FreeText xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 12</FreeText> <FromIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">13</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">21</MasterUserID> <RequestMode xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 16</RequestMode> <ToIndex xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">14</ToIndex> <Token xmlns="http://schemas.datacontract.org/2004/07/Accessor.Common.Models.APIModels">sample string 11</Token> <ConfigEventID>10</ConfigEventID> <ConfigMessageID>2</ConfigMessageID> <Description>sample string 4</Description> <DeviceVendorID>6</DeviceVendorID> <IsCommand>true</IsCommand> <IsHex>true</IsHex> <Message>sample string 5</Message> <Name>sample string 3</Name> <SortOrder>7</SortOrder> <UnitProfileID>1</UnitProfileID> <VPEventMessageIdWithSortOrderData> <VPEventMessageIdWithSortOrder> <SortOrder>2</SortOrder> <VehicleProfileEventMessageId>1</VehicleProfileEventMessageId> </VPEventMessageIdWithSortOrder> <VPEventMessageIdWithSortOrder> <SortOrder>2</SortOrder> <VehicleProfileEventMessageId>1</VehicleProfileEventMessageId> </VPEventMessageIdWithSortOrder> <VPEventMessageIdWithSortOrder> <SortOrder>2</SortOrder> <VehicleProfileEventMessageId>1</VehicleProfileEventMessageId> </VPEventMessageIdWithSortOrder> </VPEventMessageIdWithSortOrderData> </APIConfigMessageAddUpdateRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Response body formats
application/json, text/json
Sample:
{ "MessageData": [ { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "Message": "sample string 4", "DeviceVendor": "sample string 5", "DeviceVendorID": 6, "IsHex": true, "IsCommand": true, "CreatedDate": "2025-04-03T23:46:35.2476978+02:00", "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true }, "SortOrder": 10 }, { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "Message": "sample string 4", "DeviceVendor": "sample string 5", "DeviceVendorID": 6, "IsHex": true, "IsCommand": true, "CreatedDate": "2025-04-03T23:46:35.2476978+02:00", "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true }, "SortOrder": 10 }, { "ID": 1, "Name": "sample string 2", "Description": "sample string 3", "Message": "sample string 4", "DeviceVendor": "sample string 5", "DeviceVendorID": 6, "IsHex": true, "IsCommand": true, "CreatedDate": "2025-04-03T23:46:35.2476978+02:00", "AccessRights": { "HasRetrieveAccess": true, "HasUpdateAccess": true, "HasDeleteAccess": true, "HasCreateAccess": true }, "SortOrder": 10 } ], "ScriptID": 1, "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:
{"MessageData":[{"ID":1,"Name":"sample string 2","Description":"sample string 3","Message":"sample string 4","DeviceVendor":"sample string 5","DeviceVendorID":6,"IsHex":true,"IsCommand":true,"CreatedDate":"2025-04-03T23:46:35.2476978+02:00","AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true},"SortOrder":10},{"ID":1,"Name":"sample string 2","Description":"sample string 3","Message":"sample string 4","DeviceVendor":"sample string 5","DeviceVendorID":6,"IsHex":true,"IsCommand":true,"CreatedDate":"2025-04-03T23:46:35.2476978+02:00","AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true},"SortOrder":10},{"ID":1,"Name":"sample string 2","Description":"sample string 3","Message":"sample string 4","DeviceVendor":"sample string 5","DeviceVendorID":6,"IsHex":true,"IsCommand":true,"CreatedDate":"2025-04-03T23:46:35.2476978+02:00","AccessRights":{"HasRetrieveAccess":true,"HasUpdateAccess":true,"HasDeleteAccess":true,"HasCreateAccess":true},"SortOrder":10}],"ScriptID":1,"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:
<APIConfigMessageResponse 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> <MessageData> <APIConfigMessageData> <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> <CreatedDate>2025-04-03T23:46:35.2476978+02:00</CreatedDate> <Description>sample string 3</Description> <DeviceVendor>sample string 5</DeviceVendor> <DeviceVendorID>6</DeviceVendorID> <ID>1</ID> <IsCommand>true</IsCommand> <IsHex>true</IsHex> <Message>sample string 4</Message> <Name>sample string 2</Name> <SortOrder>10</SortOrder> </APIConfigMessageData> <APIConfigMessageData> <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> <CreatedDate>2025-04-03T23:46:35.2476978+02:00</CreatedDate> <Description>sample string 3</Description> <DeviceVendor>sample string 5</DeviceVendor> <DeviceVendorID>6</DeviceVendorID> <ID>1</ID> <IsCommand>true</IsCommand> <IsHex>true</IsHex> <Message>sample string 4</Message> <Name>sample string 2</Name> <SortOrder>10</SortOrder> </APIConfigMessageData> <APIConfigMessageData> <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> <CreatedDate>2025-04-03T23:46:35.2476978+02:00</CreatedDate> <Description>sample string 3</Description> <DeviceVendor>sample string 5</DeviceVendor> <DeviceVendorID>6</DeviceVendorID> <ID>1</ID> <IsCommand>true</IsCommand> <IsHex>true</IsHex> <Message>sample string 4</Message> <Name>sample string 2</Name> <SortOrder>10</SortOrder> </APIConfigMessageData> </MessageData> <ScriptID>1</ScriptID> </APIConfigMessageResponse>