POST api/Assets/Inventory

Request Information

URI Parameters

None.

Body Parameters

AssetDto
NameDescriptionTypeAdditional information
barCode

string

None.

InventoryResults

boolean

None.

InventoryDesc

string

None.

InventoryQty

integer

None.

InventoryDate

string

None.

InventoryMan

string

None.

Request Formats

application/json, text/json

Sample:
{
  "barCode": "sample string 1",
  "InventoryResults": true,
  "InventoryDesc": "sample string 3",
  "InventoryQty": 4,
  "InventoryDate": "sample string 5",
  "InventoryMan": "sample string 6"
}

application/xml, text/xml

Sample:
<AssetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI.Models">
  <InventoryDate>sample string 5</InventoryDate>
  <InventoryDesc>sample string 3</InventoryDesc>
  <InventoryMan>sample string 6</InventoryMan>
  <InventoryQty>4</InventoryQty>
  <InventoryResults>true</InventoryResults>
  <barCode>sample string 1</barCode>
</AssetDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfbsAssetModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

ResultList

Collection of bsAssetModel

None.

Result

bsAssetModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "ResultList": [
    {
      "ID": 1,
      "bsAccountId": 2,
      "AccountName": "sample string 3",
      "Code": "sample string 4",
      "AssetCode": "sample string 5",
      "LongName": "sample string 6",
      "Caption": "sample string 7",
      "isvalid": true,
      "Spec": "sample string 9",
      "Model": "sample string 10",
      "SubjectDept": "sample string 11",
      "UserDept": "sample string 12",
      "Position": "sample string 13",
      "UseDate": "2020-10-30T21:16:25.3392887+08:00",
      "LastInventoryDate": "2020-10-30T21:16:25.3392887+08:00",
      "InventoryResults": "sample string 16",
      "InventoryDesc": "sample string 17",
      "InventoryMan": "sample string 18",
      "InventoryDate": "2020-10-30T21:16:25.3392887+08:00",
      "InventoryQty": 20,
      "tpNomatchTypeid": 21
    },
    {
      "ID": 1,
      "bsAccountId": 2,
      "AccountName": "sample string 3",
      "Code": "sample string 4",
      "AssetCode": "sample string 5",
      "LongName": "sample string 6",
      "Caption": "sample string 7",
      "isvalid": true,
      "Spec": "sample string 9",
      "Model": "sample string 10",
      "SubjectDept": "sample string 11",
      "UserDept": "sample string 12",
      "Position": "sample string 13",
      "UseDate": "2020-10-30T21:16:25.3392887+08:00",
      "LastInventoryDate": "2020-10-30T21:16:25.3392887+08:00",
      "InventoryResults": "sample string 16",
      "InventoryDesc": "sample string 17",
      "InventoryMan": "sample string 18",
      "InventoryDate": "2020-10-30T21:16:25.3392887+08:00",
      "InventoryQty": 20,
      "tpNomatchTypeid": 21
    }
  ],
  "Result": {
    "ID": 1,
    "bsAccountId": 2,
    "AccountName": "sample string 3",
    "Code": "sample string 4",
    "AssetCode": "sample string 5",
    "LongName": "sample string 6",
    "Caption": "sample string 7",
    "isvalid": true,
    "Spec": "sample string 9",
    "Model": "sample string 10",
    "SubjectDept": "sample string 11",
    "UserDept": "sample string 12",
    "Position": "sample string 13",
    "UseDate": "2020-10-30T21:16:25.3392887+08:00",
    "LastInventoryDate": "2020-10-30T21:16:25.3392887+08:00",
    "InventoryResults": "sample string 16",
    "InventoryDesc": "sample string 17",
    "InventoryMan": "sample string 18",
    "InventoryDate": "2020-10-30T21:16:25.3392887+08:00",
    "InventoryQty": 20,
    "tpNomatchTypeid": 21
  }
}

application/xml, text/xml

Sample:
<ResponseOfbsAssetw2wUNamf xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI">
  <Message>sample string 2</Message>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Strong.ESB.SERP.Model">
    <d2p1:AccountName>sample string 3</d2p1:AccountName>
    <d2p1:AssetCode>sample string 5</d2p1:AssetCode>
    <d2p1:Caption>sample string 7</d2p1:Caption>
    <d2p1:Code>sample string 4</d2p1:Code>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:InventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:InventoryDate>
    <d2p1:InventoryDesc>sample string 17</d2p1:InventoryDesc>
    <d2p1:InventoryMan>sample string 18</d2p1:InventoryMan>
    <d2p1:InventoryQty>20</d2p1:InventoryQty>
    <d2p1:InventoryResults>sample string 16</d2p1:InventoryResults>
    <d2p1:LastInventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:LastInventoryDate>
    <d2p1:LongName>sample string 6</d2p1:LongName>
    <d2p1:Model>sample string 10</d2p1:Model>
    <d2p1:Position>sample string 13</d2p1:Position>
    <d2p1:Spec>sample string 9</d2p1:Spec>
    <d2p1:SubjectDept>sample string 11</d2p1:SubjectDept>
    <d2p1:UseDate>2020-10-30T21:16:25.3392887+08:00</d2p1:UseDate>
    <d2p1:UserDept>sample string 12</d2p1:UserDept>
    <d2p1:bsAccountId>2</d2p1:bsAccountId>
    <d2p1:isvalid>true</d2p1:isvalid>
    <d2p1:tpNomatchTypeid>21</d2p1:tpNomatchTypeid>
  </Result>
  <ResultList xmlns:d2p1="http://schemas.datacontract.org/2004/07/Strong.ESB.SERP.Model">
    <d2p1:bsAsset>
      <d2p1:AccountName>sample string 3</d2p1:AccountName>
      <d2p1:AssetCode>sample string 5</d2p1:AssetCode>
      <d2p1:Caption>sample string 7</d2p1:Caption>
      <d2p1:Code>sample string 4</d2p1:Code>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:InventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:InventoryDate>
      <d2p1:InventoryDesc>sample string 17</d2p1:InventoryDesc>
      <d2p1:InventoryMan>sample string 18</d2p1:InventoryMan>
      <d2p1:InventoryQty>20</d2p1:InventoryQty>
      <d2p1:InventoryResults>sample string 16</d2p1:InventoryResults>
      <d2p1:LastInventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:LastInventoryDate>
      <d2p1:LongName>sample string 6</d2p1:LongName>
      <d2p1:Model>sample string 10</d2p1:Model>
      <d2p1:Position>sample string 13</d2p1:Position>
      <d2p1:Spec>sample string 9</d2p1:Spec>
      <d2p1:SubjectDept>sample string 11</d2p1:SubjectDept>
      <d2p1:UseDate>2020-10-30T21:16:25.3392887+08:00</d2p1:UseDate>
      <d2p1:UserDept>sample string 12</d2p1:UserDept>
      <d2p1:bsAccountId>2</d2p1:bsAccountId>
      <d2p1:isvalid>true</d2p1:isvalid>
      <d2p1:tpNomatchTypeid>21</d2p1:tpNomatchTypeid>
    </d2p1:bsAsset>
    <d2p1:bsAsset>
      <d2p1:AccountName>sample string 3</d2p1:AccountName>
      <d2p1:AssetCode>sample string 5</d2p1:AssetCode>
      <d2p1:Caption>sample string 7</d2p1:Caption>
      <d2p1:Code>sample string 4</d2p1:Code>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:InventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:InventoryDate>
      <d2p1:InventoryDesc>sample string 17</d2p1:InventoryDesc>
      <d2p1:InventoryMan>sample string 18</d2p1:InventoryMan>
      <d2p1:InventoryQty>20</d2p1:InventoryQty>
      <d2p1:InventoryResults>sample string 16</d2p1:InventoryResults>
      <d2p1:LastInventoryDate>2020-10-30T21:16:25.3392887+08:00</d2p1:LastInventoryDate>
      <d2p1:LongName>sample string 6</d2p1:LongName>
      <d2p1:Model>sample string 10</d2p1:Model>
      <d2p1:Position>sample string 13</d2p1:Position>
      <d2p1:Spec>sample string 9</d2p1:Spec>
      <d2p1:SubjectDept>sample string 11</d2p1:SubjectDept>
      <d2p1:UseDate>2020-10-30T21:16:25.3392887+08:00</d2p1:UseDate>
      <d2p1:UserDept>sample string 12</d2p1:UserDept>
      <d2p1:bsAccountId>2</d2p1:bsAccountId>
      <d2p1:isvalid>true</d2p1:isvalid>
      <d2p1:tpNomatchTypeid>21</d2p1:tpNomatchTypeid>
    </d2p1:bsAsset>
  </ResultList>
  <Success>true</Success>
</ResponseOfbsAssetw2wUNamf>