POST api/servicePackage/ServicePackage_Upsert
Request Information
URI Parameters
None.
Body Parameters
ServicePackageName | 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": "2025-07-08T19:31:45.6387424+03:00", "CreatedBy": 8, "UpdatedDate": "2025-07-08T19:31:45.6387424+03:00", "UpdatedBy": 10, "MasterServicePackage": [ { "Id": 1, "ServicePackageId": 2, "ParentId": 3, "LookUpServicesId": 4, "ServiceName": "sample string 5", "CategoryName": "sample string 6", "LookUpServicesPrice": 7.0, "LookUpServicesDuration": 8.0, "CreatedDate": "2025-07-08T19:31:45.6387424+03:00", "CreatedBy": 10, "PackageCustomPrices": 11, "ServicePhoto": "sample string 12", "CreatedDateStr": "08-Jul-2025 07:31 PM" }, { "Id": 1, "ServicePackageId": 2, "ParentId": 3, "LookUpServicesId": 4, "ServiceName": "sample string 5", "CategoryName": "sample string 6", "LookUpServicesPrice": 7.0, "LookUpServicesDuration": 8.0, "CreatedDate": "2025-07-08T19:31:45.6387424+03:00", "CreatedBy": 10, "PackageCustomPrices": 11, "ServicePhoto": "sample string 12", "CreatedDateStr": "08-Jul-2025 07:31 PM" } ], "TotalPrice": "sample string 11", "TotalDuration": "sample string 12", "DailyDealsOfferPrice": 13.0, "CreatedDateStr": "08-Jul-2025 07:31 PM", "UpdatedDateStr": "08-Jul-2025 07:31 PM" }
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">2025-07-08T19:31:45.6387424+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 6</CategoryName> <CreatedBy>10</CreatedBy> <CreatedDate>2025-07-08T19:31:45.6387424+03:00</CreatedDate> <Id>1</Id> <LookUpServicesDuration>8</LookUpServicesDuration> <LookUpServicesId>4</LookUpServicesId> <LookUpServicesPrice>7</LookUpServicesPrice> <PackageCustomPrices>11</PackageCustomPrices> <ParentId>3</ParentId> <ServiceName>sample string 5</ServiceName> <ServicePackageId>2</ServicePackageId> <ServicePhoto>sample string 12</ServicePhoto> </d2p1:MasterServicePackage> <d2p1:MasterServicePackage> <CategoryName>sample string 6</CategoryName> <CreatedBy>10</CreatedBy> <CreatedDate>2025-07-08T19:31:45.6387424+03:00</CreatedDate> <Id>1</Id> <LookUpServicesDuration>8</LookUpServicesDuration> <LookUpServicesId>4</LookUpServicesId> <LookUpServicesPrice>7</LookUpServicesPrice> <PackageCustomPrices>11</PackageCustomPrices> <ParentId>3</ParentId> <ServiceName>sample string 5</ServiceName> <ServicePackageId>2</ServicePackageId> <ServicePhoto>sample string 12</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">2025-07-08T19:31:45.6387424+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.