PUT api/AssetType

Update AssetType

Request Information

URI Parameters

None.

Body Parameters

AssetTypeUpdateRequestModel
NameDescriptionTypeAdditional information
AssetTypeID

integer

None.

Code

string

None.

Name

string

None.

Description

string

None.

CompanyID

integer

None.

IsActive

integer

None.

ModifiedBy

integer

None.

IsDigitalasset

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "assetTypeID": 1,
  "code": "sample string 2",
  "name": "sample string 3",
  "description": "sample string 4",
  "companyID": 1,
  "isActive": 1,
  "modifiedBy": 1,
  "isDigitalasset": 1
}

application/xml, text/xml

Sample:
<AssetTypeUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <AssetTypeID>1</AssetTypeID>
  <Code>sample string 2</Code>
  <CompanyID>1</CompanyID>
  <Description>sample string 4</Description>
  <IsActive>1</IsActive>
  <IsDigitalasset>1</IsDigitalasset>
  <ModifiedBy>1</ModifiedBy>
  <Name>sample string 3</Name>
</AssetTypeUpdateRequestModel>

multipart/form-data

Sample:
<AssetTypeUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><AssetTypeID>1</AssetTypeID><Code>sample string 2</Code><CompanyID>1</CompanyID><Description>sample string 4</Description><IsActive>1</IsActive><IsDigitalasset>1</IsDigitalasset><ModifiedBy>1</ModifiedBy><Name>sample string 3</Name></AssetTypeUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AssetTypeUpdateDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<AssetTypeUpdateDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</AssetTypeUpdateDataModel>

multipart/form-data

Sample:
<AssetTypeUpdateDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></AssetTypeUpdateDataModel>