PUT inventory/{apiKey}/update

Request Information

URI Parameters

NameDescriptionTypeAdditional information
apiKey

string

None.

Body Parameters

UpdateInventoryModel
NameDescriptionTypeAdditional information
part_id

integer

None.

adjusted_quantity

integer

None.

location

PartLocationHierarchy

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 'parent' with type 'TPI.API.Models.PartLocationHierarchy'. Path 'location'.

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 'parent' with type 'TPI.API.Models.PartLocationHierarchy'. Path 'location'.

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 'TPI.API.Models.PartLocationHierarchy' 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 'UpdateInventoryModel'.

Response Information

Resource Description

UpdateInventoryResult
NameDescriptionTypeAdditional information
part_id

integer

None.

status

string

None.

request_length

decimal number

None.

message

string

None.

ipaddress

string

None.

Response Formats

application/json, text/json

Sample:
{
  "part_id": 1,
  "status": "sample string 2",
  "request_length": 3.1,
  "message": "sample string 4",
  "ipaddress": "sample string 5"
}

text/xml

Sample:
<result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TPI.API.Models">
  <ipaddress>sample string 5</ipaddress>
  <message>sample string 4</message>
  <request_length>3.1</request_length>
  <status>sample string 2</status>
  <part_id>1</part_id>
</result>