PUT api/Inventory/InventoryRelationship

Create of Inventory Relationship.

Request Information

URI Parameters

None.

Body Parameters

InventoryRelationshipViewModel
NameDescriptionTypeAdditional information
InventoryRelationshipID

The ID for the Inventory/Group relationship combination.

integer

None.

ProductID

This is the Product ID or item number

string

None.

RelationshipGroupID

Inventory Relationship GroupID

integer

None.

SortOrder

Sort Order

integer

None.

InventoryCollectionTypeID

Sort Order

integer

None.

Description

InventoryRelationship Description

string

Max length: 50

ImagePath

InventoryRelationship Description

string

Max length: 200

Request Formats

application/xml, text/xml

Sample:
<InventoryRelationshipViewModel>
  <InventoryRelationshipID>1</InventoryRelationshipID>
  <ProductID>sample string 1</ProductID>
  <RelationshipGroupID>2</RelationshipGroupID>
  <SortOrder>3</SortOrder>
  <InventoryCollectionTypeID>4</InventoryCollectionTypeID>
  <Description>sample string 5</Description>
  <ImagePath>sample string 6</ImagePath>
</InventoryRelationshipViewModel>

application/json, text/json

Sample:
{
  "InventoryRelationshipID": 1,
  "ProductID": "sample string 1",
  "RelationshipGroupID": 2,
  "SortOrder": 3,
  "InventoryCollectionTypeID": 4,
  "Description": "sample string 5",
  "ImagePath": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedFormatter' to write type 'InventoryRelationshipViewModel'.

Response Information

Resource Description

InventoryRelationshipViewModel
NameDescriptionTypeAdditional information
InventoryRelationshipID

The ID for the Inventory/Group relationship combination.

integer

None.

ProductID

This is the Product ID or item number

string

None.

RelationshipGroupID

Inventory Relationship GroupID

integer

None.

SortOrder

Sort Order

integer

None.

InventoryCollectionTypeID

Sort Order

integer

None.

Description

InventoryRelationship Description

string

Max length: 50

ImagePath

InventoryRelationship Description

string

Max length: 200

Response Formats

application/xml, text/xml

Sample:
<InventoryRelationshipViewModel>
  <InventoryRelationshipID>1</InventoryRelationshipID>
  <ProductID>sample string 1</ProductID>
  <RelationshipGroupID>2</RelationshipGroupID>
  <SortOrder>3</SortOrder>
  <InventoryCollectionTypeID>4</InventoryCollectionTypeID>
  <Description>sample string 5</Description>
  <ImagePath>sample string 6</ImagePath>
</InventoryRelationshipViewModel>

application/json, text/json

Sample:
{
  "InventoryRelationshipID": 1,
  "ProductID": "sample string 1",
  "RelationshipGroupID": 2,
  "SortOrder": 3,
  "InventoryCollectionTypeID": 4,
  "Description": "sample string 5",
  "ImagePath": "sample string 6"
}