POST Api/Item

Request Information

URI Parameters

None.

Body Parameters

ItemParameter
NameDescriptionTypeAdditional information
ClientID

globally unique identifier

None.

ItemCategoryID

globally unique identifier

None.

ItemClassificationID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientID": "7fc26cc6-c80b-4c9e-a424-d68ff85762b5",
  "ItemCategoryID": "b7a1ede3-9282-4da3-895c-4be949bcf81f",
  "ItemClassificationID": "6a3be913-275b-4759-8530-573f6a9b859e"
}

application/xml, text/xml

Sample:
<ItemParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity.Tasks">
  <ClientID>7fc26cc6-c80b-4c9e-a424-d68ff85762b5</ClientID>
  <ItemCategoryID>b7a1ede3-9282-4da3-895c-4be949bcf81f</ItemCategoryID>
  <ItemClassificationID>6a3be913-275b-4759-8530-573f6a9b859e</ItemClassificationID>
</ItemParameter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of Item
NameDescriptionTypeAdditional information
ClientID

globally unique identifier

None.

ItemID

globally unique identifier

None.

Name

string

None.

Price

decimal number

None.

ItemCategory

ItemCategory

None.

ItemClassification

ItemClassification

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ClientID": "69450a58-bf40-462a-b6da-1f950b1aa73f",
    "ItemID": "0bb39fb3-e0fb-4e24-8ccc-f2c9a015bd03",
    "Name": "sample string 3",
    "Price": 4.1,
    "ItemCategory": {
      "ItemCategoryID": "c3293520-bf5d-4a9b-85ab-042ad6fab0ba",
      "ClientID": "9374a192-953b-4f7f-ba6e-df527ce61c4d",
      "Name": "sample string 3"
    },
    "ItemClassification": {
      "ItemClassificationID": "6529e524-df9f-44ca-af92-00b5ee9b582a",
      "ClientID": "427c5c95-26fe-41c0-b777-114d28b726c2",
      "Name": "sample string 3"
    }
  },
  {
    "ClientID": "69450a58-bf40-462a-b6da-1f950b1aa73f",
    "ItemID": "0bb39fb3-e0fb-4e24-8ccc-f2c9a015bd03",
    "Name": "sample string 3",
    "Price": 4.1,
    "ItemCategory": {
      "ItemCategoryID": "c3293520-bf5d-4a9b-85ab-042ad6fab0ba",
      "ClientID": "9374a192-953b-4f7f-ba6e-df527ce61c4d",
      "Name": "sample string 3"
    },
    "ItemClassification": {
      "ItemClassificationID": "6529e524-df9f-44ca-af92-00b5ee9b582a",
      "ClientID": "427c5c95-26fe-41c0-b777-114d28b726c2",
      "Name": "sample string 3"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fleetroot.Entity.Tasks">
  <Item>
    <ClientID>69450a58-bf40-462a-b6da-1f950b1aa73f</ClientID>
    <ItemCategory>
      <ClientID>9374a192-953b-4f7f-ba6e-df527ce61c4d</ClientID>
      <ItemCategoryID>c3293520-bf5d-4a9b-85ab-042ad6fab0ba</ItemCategoryID>
      <Name>sample string 3</Name>
    </ItemCategory>
    <ItemClassification>
      <ClientID>427c5c95-26fe-41c0-b777-114d28b726c2</ClientID>
      <ItemClassificationID>6529e524-df9f-44ca-af92-00b5ee9b582a</ItemClassificationID>
      <Name>sample string 3</Name>
    </ItemClassification>
    <ItemID>0bb39fb3-e0fb-4e24-8ccc-f2c9a015bd03</ItemID>
    <Name>sample string 3</Name>
    <Price>4.1</Price>
  </Item>
  <Item>
    <ClientID>69450a58-bf40-462a-b6da-1f950b1aa73f</ClientID>
    <ItemCategory>
      <ClientID>9374a192-953b-4f7f-ba6e-df527ce61c4d</ClientID>
      <ItemCategoryID>c3293520-bf5d-4a9b-85ab-042ad6fab0ba</ItemCategoryID>
      <Name>sample string 3</Name>
    </ItemCategory>
    <ItemClassification>
      <ClientID>427c5c95-26fe-41c0-b777-114d28b726c2</ClientID>
      <ItemClassificationID>6529e524-df9f-44ca-af92-00b5ee9b582a</ItemClassificationID>
      <Name>sample string 3</Name>
    </ItemClassification>
    <ItemID>0bb39fb3-e0fb-4e24-8ccc-f2c9a015bd03</ItemID>
    <Name>sample string 3</Name>
    <Price>4.1</Price>
  </Item>
</ArrayOfItem>