PUT api/v1/orders/{orderId}/areas/{areaId}/repairs/{id}

Endpoint that updates an existing order repair. There are two types of repairs, catalog based and custom based repairs. The first ones are created by selecting existing categories and subcategories. The second ones are created by the users. Custom repairs are identified by itemXREF=99999 and they can modify unit of measure (ItemUM). Catalog based repairs cannot modify unit of measure because the system already has this value predefined.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderId

Order Id

integer

Required

areaId

Area Id

integer

Required

id

Repair Item Id

integer

Required

Body Parameters

Repair Item Information to Update.

BasicRepairItemInformationUpdateVM
NameDescriptionTypeAdditional information
VendorPPU

decimal number

Required

Quantity

decimal number

Required

Range: inclusive between 1 and 2147483647

Comments

string

None.

Code

string

None.

ItemUM

string

None.

CustomRemark

string

None.

Request Formats

application/json, text/json

Sample:
{
  "vendorPPU": 1.0,
  "quantity": 2.0,
  "comments": "sample string 3",
  "code": "sample string 4",
  "itemUM": "sample string 5",
  "customRemark": "sample string 6"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

An entity with the values of the updated repair.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.