POST api/servicePackage/ServicePackage_Upsert
Request Information
URI Parameters
None.
Body Parameters
ServicePackage| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| SalonId | integer |
None. |
|
| PackageName | string |
None. |
|
| CustomPrice | decimal number |
None. |
|
| ServicePackageIdStr | string |
None. |
|
| IsActive | boolean |
None. |
|
| CreatedDate | date |
None. |
|
| CreatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| MasterServicePackage | Collection of MasterServicePackage |
None. |
|
| TotalPrice | string |
None. |
|
| TotalDuration | string |
None. |
|
| DailyDealsOfferPrice | decimal number |
None. |
|
| CreatedDateStr | string |
None. |
|
| UpdatedDateStr | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"SalonId": 2,
"PackageName": "sample string 3",
"CustomPrice": 4.0,
"ServicePackageIdStr": "sample string 5",
"IsActive": true,
"CreatedDate": "2026-02-04T05:12:28.4618371+03:00",
"CreatedBy": 8,
"UpdatedDate": "2026-02-04T05:12:28.4618371+03:00",
"UpdatedBy": 10,
"MasterServicePackage": [
{
"Id": 1,
"ServicePackageId": 2,
"ParentId": 3,
"LookUpServicesId": 4,
"LookUpServicesName": "sample string 5",
"ServiceName": "sample string 6",
"CategoryName": "sample string 7",
"LookUpServicesPrice": 8.0,
"LookUpServicesDuration": 9.0,
"CreatedDate": "2026-02-04T05:12:28.4618371+03:00",
"CreatedBy": 11,
"PackageCustomPrices": 12,
"ServicePhoto": "sample string 13",
"CreatedDateStr": "04-Feb-2026 05:12 AM"
},
{
"Id": 1,
"ServicePackageId": 2,
"ParentId": 3,
"LookUpServicesId": 4,
"LookUpServicesName": "sample string 5",
"ServiceName": "sample string 6",
"CategoryName": "sample string 7",
"LookUpServicesPrice": 8.0,
"LookUpServicesDuration": 9.0,
"CreatedDate": "2026-02-04T05:12:28.4618371+03:00",
"CreatedBy": 11,
"PackageCustomPrices": 12,
"ServicePhoto": "sample string 13",
"CreatedDateStr": "04-Feb-2026 05:12 AM"
}
],
"TotalPrice": "sample string 11",
"TotalDuration": "sample string 12",
"DailyDealsOfferPrice": 13.0,
"CreatedDateStr": "04-Feb-2026 05:12 AM",
"UpdatedDateStr": "04-Feb-2026 05:12 AM"
}
text/xml
Sample:
<ServicePackage 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">8</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:12:28.4618371+03:00</CreatedDate>
<CustomPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">4</CustomPrice>
<DailyDealsOfferPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">13</DailyDealsOfferPrice>
<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>
<MasterServicePackage xmlns:d2p1="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.V1" xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">
<d2p1:MasterServicePackage>
<CategoryName>sample string 7</CategoryName>
<CreatedBy>11</CreatedBy>
<CreatedDate>2026-02-04T05:12:28.4618371+03:00</CreatedDate>
<Id>1</Id>
<LookUpServicesDuration>9</LookUpServicesDuration>
<LookUpServicesId>4</LookUpServicesId>
<LookUpServicesName>sample string 5</LookUpServicesName>
<LookUpServicesPrice>8</LookUpServicesPrice>
<PackageCustomPrices>12</PackageCustomPrices>
<ParentId>3</ParentId>
<ServiceName>sample string 6</ServiceName>
<ServicePackageId>2</ServicePackageId>
<ServicePhoto>sample string 13</ServicePhoto>
</d2p1:MasterServicePackage>
<d2p1:MasterServicePackage>
<CategoryName>sample string 7</CategoryName>
<CreatedBy>11</CreatedBy>
<CreatedDate>2026-02-04T05:12:28.4618371+03:00</CreatedDate>
<Id>1</Id>
<LookUpServicesDuration>9</LookUpServicesDuration>
<LookUpServicesId>4</LookUpServicesId>
<LookUpServicesName>sample string 5</LookUpServicesName>
<LookUpServicesPrice>8</LookUpServicesPrice>
<PackageCustomPrices>12</PackageCustomPrices>
<ParentId>3</ParentId>
<ServiceName>sample string 6</ServiceName>
<ServicePackageId>2</ServicePackageId>
<ServicePhoto>sample string 13</ServicePhoto>
</d2p1:MasterServicePackage>
</MasterServicePackage>
<PackageName xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 3</PackageName>
<SalonId xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2</SalonId>
<ServicePackageIdStr xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 5</ServicePackageIdStr>
<TotalDuration xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 12</TotalDuration>
<TotalPrice xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">sample string 11</TotalPrice>
<UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">10</UpdatedBy>
<UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/BeautyBook.Entities.Contract">2026-02-04T05:12:28.4618371+03:00</UpdatedDate>
</ServicePackage>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/xml
Sample:
Sample not available.