PUT api/cfgAssetType/{id}

Update an existing record from the AssetTypes table.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

cfgAssetTypeDb
NameDescriptionTypeAdditional information
AssetTypeID

integer

None.

AssetTypeName

string

Required

Max length: 30

AssetTypeDescription

string

Max length: 360

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Request Formats

application/json, text/json

Sample:
{
  "results": null,
  "AssetTypeID": 1,
  "AssetTypeName": "sample string 1",
  "AssetTypeDescription": "sample string 2",
  "CreatedBy": 3,
  "CreatedDate": "2025-12-06T23:40:52.5206304+00:00",
  "UpdatedBy": 5,
  "UpdatedDate": "2025-12-06T23:40:52.5206304+00:00"
}

application/xml, text/xml

Sample:
<cfgAssetTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <AssetTypeDescription>sample string 2</AssetTypeDescription>
  <AssetTypeID>1</AssetTypeID>
  <AssetTypeName>sample string 1</AssetTypeName>
  <CreatedBy>3</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:52.5206304Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <UpdatedBy>5</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:52.5206304Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</cfgAssetTypeDb>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'cfgAssetTypeDb'.

Response Information

Resource Description

cfgAssetTypeDb
NameDescriptionTypeAdditional information
AssetTypeID

integer

None.

AssetTypeName

string

Required

Max length: 30

AssetTypeDescription

string

Max length: 360

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

results

Collection of ValidationResult

None.

Response Formats

application/json, text/json

Sample:
{
  "results": null,
  "AssetTypeID": 1,
  "AssetTypeName": "sample string 1",
  "AssetTypeDescription": "sample string 2",
  "CreatedBy": 3,
  "CreatedDate": "2025-12-06T23:40:52.5206304+00:00",
  "UpdatedBy": 5,
  "UpdatedDate": "2025-12-06T23:40:52.5206304+00:00"
}

application/xml, text/xml

Sample:
<cfgAssetTypeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
  <results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
  <AssetTypeDescription>sample string 2</AssetTypeDescription>
  <AssetTypeID>1</AssetTypeID>
  <AssetTypeName>sample string 1</AssetTypeName>
  <CreatedBy>3</CreatedBy>
  <CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:52.5206304Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </CreatedDate>
  <UpdatedBy>5</UpdatedBy>
  <UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-12-06T23:40:52.5206304Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
  </UpdatedDate>
</cfgAssetTypeDb>