POST api/masterProductCategory/MasterProductCategory_Upsert
Request Information
URI Parameters
None.
Body Parameters
MasterProductCategory| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ProductTypeId | integer |
None. |
|
| ProductTypeName | string |
None. |
|
| ProductCategoryName | string |
None. |
|
| IsAvailable | integer |
None. |
|
| IsActive | boolean |
None. |
|
| IsDeleted | boolean |
None. |
|
| DeletedDate | date |
None. |
|
| DeletedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| CreatedDateStr | string |
None. |
|
| UpdatedDateStr | string |
None. |
|
| DeletedDateStr | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ProductTypeId": 2,
"ProductTypeName": "sample string 3",
"ProductCategoryName": "sample string 4",
"IsAvailable": 5,
"IsActive": true,
"IsDeleted": true,
"DeletedDate": "2026-02-04T05:13:54.3267476+03:00",
"DeletedBy": 9,
"CreatedDate": "2026-02-04T05:13:54.3267476+03:00",
"CreatedBy": 11,
"UpdatedDate": "2026-02-04T05:13:54.3267476+03:00",
"UpdatedBy": 13,
"CreatedDateStr": "04-02-2026 05:13 AM",
"UpdatedDateStr": "04-02-2026 05:13 AM",
"DeletedDateStr": "04-02-2026 05:13 AM"
}
text/xml
Sample:
<MasterProductCategory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1"> <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">11</CreatedBy> <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:13:54.3267476+03:00</CreatedDate> <DeletedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">9</DeletedBy> <DeletedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:13:54.3267476+03:00</DeletedDate> <Id xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">1</Id> <IsActive xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsActive> <IsAvailable xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">5</IsAvailable> <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">true</IsDeleted> <ProductCategoryName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 4</ProductCategoryName> <ProductTypeId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</ProductTypeId> <ProductTypeName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 3</ProductTypeName> <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</UpdatedBy> <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:13:54.3267476+03:00</UpdatedDate> </MasterProductCategory>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.