POST AssetsAPI/UpdateAsset

Request Information

URI Parameters

None.

Body Parameters

Assets
NameDescriptionTypeAdditional information
AssetID

integer

None.

AssetDescription

string

None.

AssetTitle

string

None.

Barcode

string

None.

AssetTypeID

integer

None.

DateAdded

date

None.

DateAddedStr

string

None.

InStock

integer

None.

LoanFee

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "AssetID": 1,
  "AssetDescription": "sample string 2",
  "AssetTitle": "sample string 3",
  "Barcode": "sample string 4",
  "AssetTypeID": 5,
  "DateAdded": "2021-01-22T17:13:35.2113372+00:00",
  "DateAddedStr": "sample string 7",
  "InStock": 8,
  "LoanFee": 9.0
}

application/xml, text/xml

Sample:
<Assets xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QMA2020.Models">
  <AssetDescription>sample string 2</AssetDescription>
  <AssetID>1</AssetID>
  <AssetTitle>sample string 3</AssetTitle>
  <AssetTypeID>5</AssetTypeID>
  <Barcode>sample string 4</Barcode>
  <DateAdded>2021-01-22T17:13:35.2113372+00:00</DateAdded>
  <DateAddedStr>sample string 7</DateAddedStr>
  <InStock>8</InStock>
  <LoanFee>9</LoanFee>
</Assets>

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 'Assets'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>