POST api/Items/UpdateItemsCustomFields?CatalogID={CatalogID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CatalogID

integer

Required

Body Parameters

Collection of UpdateItemModel
NameDescriptionTypeAdditional information
Category

CategoryModel

None.

ItemCode

string

None.

Name

string

None.

Description

string

None.

Subtitle

string

None.

Price

decimal number

None.

DiscountPrice

decimal number

None.

IsActive

boolean

None.

DefaultCategoryID

integer

None.

Type

CatalogItemType

None.

Properties

Collection of PropertyModel

None.

ExtraCategories

Collection of CategoryModel

None.

ManageInventory

boolean

None.

InStock

boolean

None.

CustomFields

Collection of CustomFieldModel

None.

ExternalCode

string

None.

SEODetails

SEODetails

None.

Collections

Collection of CollectionModel

None.

DisplayOrder

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'SubCategory' with type 'MoodAPI.Models.CategoryModel'. Path '[0].Category'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'SubCategory' with type 'MoodAPI.Models.CategoryModel'. Path '[0].Category'.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'MoodAPI.Models.CategoryModel' contains cycles and cannot be serialized if reference tracking is disabled.

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 'List`1'.

Response Information

Resource Description

ResultModel
NameDescriptionTypeAdditional information
Message

string

None.

Success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "Success": true
}

text/xml

Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MoodAPI.Models">
  <Message>sample string 1</Message>
  <Success>true</Success>
</ResultModel>