POST api/Model

Request Information

URI Parameters

None.

Body Parameters

CreateModelResource
NameDescriptionTypeAdditional information
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:
{
  "ModelName": "sample string 1",
  "PartNumber": "sample string 2",
  "CommercialCode": "sample string 3",
  "ModelType": 1,
  "IdManufacturer": 4,
  "IdFamily": 5,
  "IdSoftwareVersion": 1,
  "IdEquipmentType": 6,
  "SerialControl": 1,
  "CustomerControl": 1,
  "GoNoGo": 1,
  "WarrantyManufacturerTime": 7,
  "WarrantyLaboratoryTime": 8,
  "Weight": 9.0,
  "UnitValue": 10.0,
  "SchedulingDeadline": 11
}

application/xml, text/xml

Sample:
<CreateModelResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WkfGenericAPI.Models.Payloads.Model">
  <CommercialCode>sample string 3</CommercialCode>
  <CustomerControl>Yes</CustomerControl>
  <GoNoGo>Yes</GoNoGo>
  <IdEquipmentType>6</IdEquipmentType>
  <IdFamily>5</IdFamily>
  <IdManufacturer>4</IdManufacturer>
  <IdSoftwareVersion>1</IdSoftwareVersion>
  <ModelName>sample string 1</ModelName>
  <ModelType>Product</ModelType>
  <PartNumber>sample string 2</PartNumber>
  <SchedulingDeadline>11</SchedulingDeadline>
  <SerialControl>Yes</SerialControl>
  <UnitValue>10</UnitValue>
  <WarrantyLaboratoryTime>8</WarrantyLaboratoryTime>
  <WarrantyManufacturerTime>7</WarrantyManufacturerTime>
  <Weight>9</Weight>
</CreateModelResource>

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 'CreateModelResource'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.