POST part/add
Adds a Part.
Request Information
URI
https://eurotherm-web-api.xaitcpq.net/part/add
URI Parameters
None.
Body Parameters
The part to add.
PartUpdateName | Description | Type | Additional information |
---|---|---|---|
PartNumber | string |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PartNumber": "sample string 1", "Name": "sample string 2", "Description": "sample string 3", "IsActive": true }
text/html
Sample:
{"PartNumber":"sample string 1","Name":"sample string 2","Description":"sample string 3","IsActive":true}
application/xml, text/xml
Sample:
<PartUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Shared.Models.DataModels"> <Description>sample string 3</Description> <IsActive>true</IsActive> <Name>sample string 2</Name> <PartNumber>sample string 1</PartNumber> </PartUpdate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
An identifier to the new part.
ObjectNone.
Response Formats
application/json, text/json, text/html
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />