PUT apioauth/v4/asset/{assetId}
Update an asset
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| assetId |
The id of the asset to update |
integer |
Required |
Body Parameters
The OAuthCreateEditAssetRequestModel
OAuthCreateEditAssetRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TagId |
The identifier of the asset |
string |
None. |
| AssetType |
The type of the asset |
MobileAssetType |
None. |
| AssetName |
The asset name |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TagId": "sample string 1",
"AssetType": 1,
"AssetName": "sample string 2"
}
application/xml, text/xml
Sample:
<OAuthCreateEditAssetRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TagId>sample string 1</TagId> <AssetType>Driver</AssetType> <AssetName>sample string 2</AssetName> </OAuthCreateEditAssetRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OAuthCreateAssetResponseModel
OAuthAssetResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TagId |
The asst tag id |
string |
None. |
| AssetName |
The asset name |
string |
None. |
| AssetType |
The type of the asset |
MobileAssetType |
None. |
| AssetId |
The unique id of the asset generated by the system |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"TagId": "sample string 1",
"AssetName": "sample string 2",
"AssetType": 1,
"AssetId": 3
}
application/xml, text/xml
Sample:
<OAuthAssetResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <TagId>sample string 1</TagId> <AssetName>sample string 2</AssetName> <AssetType>Driver</AssetType> <AssetId>3</AssetId> </OAuthAssetResponseModel>