POST api/part/savePart
Request Information
URI Parameters
None.
Body Parameters
PartName | Description | Type | Additional information |
---|---|---|---|
PartID | integer |
None. |
|
PartName | string |
None. |
|
VehicleTypeID | integer |
None. |
|
VehicleTypeName | string |
None. |
|
BrandID | integer |
None. |
|
BrandName | string |
None. |
|
CategoryID | integer |
None. |
|
CategoryName | string |
None. |
|
ImageURL | string |
None. |
|
CreatedBy | integer |
None. |
|
CreatedOn | date |
None. |
|
ModifiedBy | integer |
None. |
|
ModifiedOn | date |
None. |
|
IsDeleted | boolean |
None. |
|
Points | integer |
None. |
|
ItemCode | string |
None. |
|
Description | string |
None. |
|
CompanyID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "PartID": 1, "PartName": "sample string 1", "VehicleTypeID": 1, "VehicleTypeName": "sample string 2", "BrandID": 1, "BrandName": "sample string 3", "CategoryID": 1, "CategoryName": "sample string 4", "ImageURL": "sample string 5", "CreatedBy": 1, "CreatedOn": "2024-11-21T12:41:55.0440369+03:00", "ModifiedBy": 1, "ModifiedOn": "2024-11-21T12:41:55.0440369+03:00", "IsDeleted": true, "Points": 1, "ItemCode": "sample string 6", "Description": "sample string 7", "CompanyID": 1 }
application/xml, text/xml
Sample:
<Part xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.Models"> <BrandID>1</BrandID> <BrandName>sample string 3</BrandName> <CategoryID>1</CategoryID> <CategoryName>sample string 4</CategoryName> <CompanyID>1</CompanyID> <CreatedBy>1</CreatedBy> <CreatedOn>2024-11-21T12:41:55.0440369+03:00</CreatedOn> <Description>sample string 7</Description> <ImageURL>sample string 5</ImageURL> <IsDeleted>true</IsDeleted> <ItemCode>sample string 6</ItemCode> <ModifiedBy>1</ModifiedBy> <ModifiedOn>2024-11-21T12:41:55.0440369+03:00</ModifiedOn> <PartID>1</PartID> <PartName>sample string 1</PartName> <Points>1</Points> <VehicleTypeID>1</VehicleTypeID> <VehicleTypeName>sample string 2</VehicleTypeName> </Part>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.