PUT api/Model
Request Information
URI Parameters
None.
Body Parameters
UpdateModelResource| Name | Description | Type | Additional information |
|---|---|---|---|
| IdModel | integer |
Required |
|
| ModelName | string |
Required |
|
| PartNumber | string |
Required |
|
| CommercialCode | string |
Required |
|
| ModelType | ModelType |
Required |
|
| IdManufacturer | integer |
Required |
|
| IdFamily | integer |
Required |
|
| IdSoftwareVersion | integer |
None. |
|
| IdEquipmentType | integer |
Required |
|
| SerialControl | GenericConfirmation |
Required |
|
| CustomerControl | GenericConfirmation |
None. |
|
| GoNoGo | GenericConfirmation |
Required |
|
| WarrantyManufacturerTime | integer |
None. |
|
| WarrantyLaboratoryTime | integer |
None. |
|
| Weight | decimal number |
None. |
|
| UnitValue | decimal number |
None. |
|
| SchedulingDeadline | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdModel": 1,
"ModelName": "sample string 2",
"PartNumber": "sample string 3",
"CommercialCode": "sample string 4",
"ModelType": 1,
"IdManufacturer": 5,
"IdFamily": 6,
"IdSoftwareVersion": 1,
"IdEquipmentType": 7,
"SerialControl": 1,
"CustomerControl": 1,
"GoNoGo": 1,
"WarrantyManufacturerTime": 8,
"WarrantyLaboratoryTime": 9,
"Weight": 10.0,
"UnitValue": 11.0,
"SchedulingDeadline": 12
}
application/xml, text/xml
Sample:
<UpdateModelResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WkfGenericAPI.Models.Payloads.Model"> <CommercialCode>sample string 4</CommercialCode> <CustomerControl>Yes</CustomerControl> <GoNoGo>Yes</GoNoGo> <IdEquipmentType>7</IdEquipmentType> <IdFamily>6</IdFamily> <IdManufacturer>5</IdManufacturer> <IdModel>1</IdModel> <IdSoftwareVersion>1</IdSoftwareVersion> <ModelName>sample string 2</ModelName> <ModelType>Product</ModelType> <PartNumber>sample string 3</PartNumber> <SchedulingDeadline>12</SchedulingDeadline> <SerialControl>Yes</SerialControl> <UnitValue>11</UnitValue> <WarrantyLaboratoryTime>9</WarrantyLaboratoryTime> <WarrantyManufacturerTime>8</WarrantyManufacturerTime> <Weight>10</Weight> </UpdateModelResource>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |