POST api/devicemodel/UpdateDeviceModel?ApplicationKey={ApplicationKey}&APIKey={APIKey}&DeviceID={DeviceID}
This method allows you to modify the device model for the existing device on the Traxia 6 system.
Request Information
URI Parameters
Name | Description | Type | Additional Information |
---|---|---|---|
ApplicationKey |
The application identity issued by an authorized publisher of Traxia services. This identity is unique and generated one-time during registration. |
string |
Required |
APIKey |
Secret key issued to be challenged as identity verification. |
string |
Required |
DeviceID |
Unique code to identify a device that connects to the Traxia system, such as IMEI. |
string |
None |
Body Parameters
Submit the devicemodel object information to be updated.
DeviceModelName | Description | Type | Additional Information |
---|---|---|---|
DeviceModelID |
Unique code which identify a device model that connects to the Traxia system. |
integer |
Required |
DeviceModelName |
Refers to the model device used in the Traxia system (filled only when updating). |
string |
Required |
QueueContainer |
Refers to type of container adapter. |
string |
None |
SubscriberID | integer |
None |
|
GUID | string |
None |
|
CreatedBy |
The person who responded to register the data (filled in only when registering). |
string |
None |
CreatedTimeStamp |
The time when a data record was created. |
date |
None |
LastUpdateBy |
The last person who modified the data (filled only when updating). |
string |
None |
LastUpdateTimeStamp |
The time when a data record was modified (filled only when updating). |
date |
None |
Discard |
Status of enabling or disabling data visibility to the system. (filled in only when disabling or enabling). |
boolean |
None |
DiscardBy |
The last person who discarded the data. (filled in only when disabling). |
string |
None |
DiscardTimeStamp |
Information about the time when the last discard data happened (filled in only when disabling). |
date |
None |
Request Formats
application/json, text/json
// parameter to update the device model { "DeviceModelID": 11,// mandatory, your device model id, integer "DeviceModelName": "AGG012", // mandatory, your device model name, string "UpdateBy": care@dit.co.id // mandatory, the responsible email, string }
application/xml, text/xml
<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Traxia.Credential.DeviceModels"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 6</CreatedBy> <CreatedTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</CreatedTimeStamp> <Discard xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">true</Discard> <DiscardBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 9</DiscardBy> <DiscardTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</DiscardTimeStamp> <GUID xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 5</GUID> <LastUpdateBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 7</LastUpdateBy> <LastUpdateTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</LastUpdateTimeStamp> <SubscriberID xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">4</SubscriberID> <DeviceModelID>1</DeviceModelID> <DeviceModelName>sample string 2</DeviceModelName> <QueueContainer>sample string 3</QueueContainer> </DeviceModel>
multipart/form-data
<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Traxia.Credential.DeviceModels"><CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 6</CreatedBy><CreatedTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</CreatedTimeStamp><Discard xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">true</Discard><DiscardBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 9</DiscardBy><DiscardTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</DiscardTimeStamp><GUID xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 5</GUID><LastUpdateBy xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">sample string 7</LastUpdateBy><LastUpdateTimeStamp xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">2024-12-18T16:06:42.4626426+07:00</LastUpdateTimeStamp><SubscriberID xmlns="http://schemas.datacontract.org/2004/07/Traxia.Common">4</SubscriberID><DeviceModelID>1</DeviceModelID><DeviceModelName>sample string 2</DeviceModelName><QueueContainer>sample string 3</QueueContainer></DeviceModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
BaseResponseName | Description | Type | Additional Information |
---|---|---|---|
Acknowledge |
Acknowledgement of API request format, whether you are submitting the requested parameter in a proper format. |
Acknowledge |
None |
ResponseCode |
Indicates the result of your API service process. Negative results may have different code indicators depending on their failure type. |
ResponseCode |
None |
ResponseMessage |
Negative API process results may have additional information in text to explain the failure reasons. |
string |
None |
Data |
Data provide a universal object response model transformed into JSON compatible format. You will need to recognize the type of returned object model of each of your request. For more information about object class model, please consult our object class library documentation. |
Object |
None |
Latency | integer |
None |
Response Formats
application/json, text/json
// Succesful result of update device model { "Acknowledge": 1, "ResponseCode": 200, "ResponseMessage": "Request was succesfully performed.", "Data": "AGG012" }