POST V2/odata/Item

Inserts Item entity

Request Information

URI Parameters

None.

Body Parameters

QicsUnity.Api.Areas.V2.Models.Item
NameDescriptionTypeAdditional information
AllowPriceModifications

Gets or sets a value indicating whether to allow price modifications

boolean

None.

AllowTimeEntry

Gets or sets a value indicating whether this item can be used in time entry

boolean

None.

GLAccountRevenue

Gets or sets GLAccountRevenue

string

None.

GLAccountCost

Gets or sets GLAccountCost

string

None.

GLAccountWIP

Gets or sets GLAccountWIP

string

None.

GLAccountCoverage

Gets or sets GLAccountCoverage

string

None.

GLAccountAddition

Gets or sets GLAccountAddition

string

None.

GLAccountDeduction

Gets or sets GLAccountDeduction

string

None.

IsActive

Gets or sets a value indicating whether this item is active

boolean

None.

ItemCode

Gets or sets item code

string

None.

ItemGroupId

Gets or sets a reference to item group where this item belongs

integer

None.

ItemHyperlinkCountsId

Gets or sets the ItemHyperlinkCountsId

integer

None.

ItemId

Gets or sets ItemId

integer

None.

ItemCompanyId

Gets or sets the PK

integer

None.

CompanyId

Gets or sets CompanyId

integer

None.

ItemType

Gets or sets item type

QicsUnity.Api.Areas.V2.Models.ItemType

None.

LongDescription

Gets or sets long description of item

string

None.

Name

Gets or sets the name of the item

string

None.

SurchargeItemCompanyId

Gets or sets a reference to surcharge item company

integer

None.

SurchargePercentage

Gets or sets surcharge percentage

decimal number

None.

UseItemCustomers

Gets or sets a value indicating whether all or only linked customers should be used

boolean

None.

VatCodeId

Gets or sets VatCodeId

integer

None.

WillBeInvoiced

Gets or sets a value indicating whether the item will be invoiced

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "AllowPriceModifications": true,
  "AllowTimeEntry": true,
  "GLAccountRevenue": "sample 3",
  "GLAccountCost": "sample 4",
  "GLAccountWIP": "sample 5",
  "GLAccountCoverage": "sample 6",
  "GLAccountAddition": "sample 7",
  "GLAccountDeduction": "sample 8",
  "IsActive": true,
  "ItemCode": "sample 10",
  "ItemGroupId": 1,
  "ItemHyperlinkCountsId": 11,
  "ItemId": 1,
  "ItemCompanyId": 12,
  "CompanyId": 1,
  "ItemType": 0,
  "LongDescription": "sample 13",
  "Name": "sample 14",
  "SurchargeItemCompanyId": 1,
  "SurchargePercentage": 1.0,
  "UseItemCustomers": true,
  "VatCodeId": 1,
  "WillBeInvoiced": true
}

application/xml, text/xml

Sample:
<Item xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QicsUnity.Api.Areas.V2.Models">
  <AllowPriceModifications>true</AllowPriceModifications>
  <AllowTimeEntry>true</AllowTimeEntry>
  <CompanyId>1</CompanyId>
  <GLAccountAddition>sample 7</GLAccountAddition>
  <GLAccountCost>sample 4</GLAccountCost>
  <GLAccountCoverage>sample 6</GLAccountCoverage>
  <GLAccountDeduction>sample 8</GLAccountDeduction>
  <GLAccountRevenue>sample 3</GLAccountRevenue>
  <GLAccountWIP>sample 5</GLAccountWIP>
  <IsActive>true</IsActive>
  <ItemCode>sample 10</ItemCode>
  <ItemCompanyId>12</ItemCompanyId>
  <ItemGroupId>1</ItemGroupId>
  <ItemHyperlinkCountsId>11</ItemHyperlinkCountsId>
  <ItemId>1</ItemId>
  <ItemType>Hours</ItemType>
  <LongDescription>sample 13</LongDescription>
  <Name>sample 14</Name>
  <SurchargeItemCompanyId>1</SurchargeItemCompanyId>
  <SurchargePercentage>1</SurchargePercentage>
  <UseItemCustomers>true</UseItemCustomers>
  <VatCodeId>1</VatCodeId>
  <WillBeInvoiced>true</WillBeInvoiced>
</Item>

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.