PUT api/cukcukManager/Restaurant
Sửa nhà hàng
Request Information
URI Parameters
None.
Body Parameters
thông tin nhà hàng
RestaurantParam| Name | Description | Type | Additional information |
|---|---|---|---|
| RestaurantObject |
thông tin nhà hàng |
Restaurant |
None. |
| ListRestaurantUtility |
Danh sách tiện ích |
Collection of RestaurantUtility |
None. |
| ListRestaurantTypeReference |
Danh sách loại hình phong cách ẩm thực |
Collection of RestaurantTypeReference |
None. |
| ListRestaurantDBOption |
danh sách thiết lập |
Collection of RestaurantDBOption |
None. |
| ListRestaurantOpenHour |
giờ dóng mở của tuần |
Collection of RestaurantOpenHour |
None. |
| Menus | Collection of Menu |
None. |
|
| PublishType |
Đã publish hay chưa |
EnumPublishType |
None. |
| UserId |
Id của user đăng nhập |
globally unique identifier |
None. |
| FEVersion |
Phiên bản hiện tại của Client Phục vụ việc check có cần thiết phải force client nâng cấp lên version mới nhất không |
string |
None. |
Request Formats
application/json, text/json
{
"ListRestaurantUtility": [
null,
{
"RestaurantUtilityId": 1,
"RestaurantId": 2,
"UtilityId": 3,
"DictionaryKey": 4,
"UtilityName": "sample string 5",
"CreatedDate": "2026-04-05T21:44:46.1637956+07:00",
"CreatedBy": "sample string 7",
"ModifiedDate": "2026-04-05T21:44:46.1637956+07:00",
"ModifiedBy": "sample string 8",
"MISAEntityState": 0
}
],
"ListRestaurantTypeReference": [
null,
{
"RestaurantTypeReferenceId": 1,
"RestaurantId": 2,
"RestaurantTypeId": "53389164-803f-4f60-b0ce-d5098a7e39c8",
"RestaurantTypeName": "sample string 4",
"ParentId": "b28ee0f1-7e57-4a95-b961-b95ea6f2d54a",
"CategoryType": 5,
"CreatedDate": "2026-04-05T21:44:46.1637956+07:00",
"CreatedBy": "sample string 7",
"ModifiedDate": "2026-04-05T21:44:46.1637956+07:00",
"ModifiedBy": "sample string 8",
"MISAEntityState": 0
}
],
"ListRestaurantDBOption": [
null,
{
"RestaurantDBOptionId": 1,
"RestaurantId": 1,
"OptionId": "sample string 2",
"OptionValue": "sample string 3",
"ValueType": 4,
"Description": "sample string 5",
"CompanyCode": "sample string 6",
"BranchId": "de5cad7b-a8d0-4ee8-beab-448cb706762e",
"CreatedDate": "2026-04-05T21:44:46.1637956+07:00",
"CreatedBy": "sample string 8",
"ModifiedDate": "2026-04-05T21:44:46.1637956+07:00",
"ModifiedBy": "sample string 9",
"MISAEntityState": 0
}
],
"ListRestaurantOpenHour": [
null,
{
"RestaurantOpenHourId": 1,
"RestaurantId": 2,
"Day": 3,
"FromTime": 4,
"ToTime": 5,
"CreatedDate": "2026-04-05T21:44:46.1637956+07:00",
"CreatedBy": "sample string 7",
"ModifiedDate": "2026-04-05T21:44:46.1637956+07:00",
"ModifiedBy": "sample string 8",
"MISAEntityState": 0
}
],
"Menus": [
null,
{
"MenuId": 1,
"RestaurantId": 2,
"MenuName": "sample string 3",
"MenuType": 4,
"Price": 5.0,
"UnitName": "sample string 6",
"Inactive": true,
"SortOrder": 8,
"InventoryItemId": "a7f9e58f-10ab-45b4-ac25-d888929cf235",
"IsFeature": true,
"HideInMenu": true,
"MenuCategoryName": "sample string 12",
"ParentID": "f70311e7-efbf-487a-8f7c-902392ddb3b7",
"FileResourceID": "sample string 13",
"Extension": "sample string 14",
"UsedCount": 15,
"Description": "sample string 16",
"MenuCode": "sample string 17",
"Quantity": 18.0,
"SourceType": 0,
"ImageUrl": "sample string 19",
"OldCoverPhotoURL": "sample string 20",
"CreatedDate": "2026-04-05T21:44:46.1637956+07:00",
"CreatedBy": "sample string 22",
"ModifiedDate": "2026-04-05T21:44:46.1637956+07:00",
"ModifiedBy": "sample string 23",
"MISAEntityState": 0
}
],
"PublishType": 0,
"UserId": "17ee1d93-098c-4de3-86f7-7afce0d03439",
"FEVersion": "sample string 2"
}
text/xml
<RestaurantParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO">
<FEVersion>sample string 2</FEVersion>
<UserId>17ee1d93-098c-4de3-86f7-7afce0d03439</UserId>
<ListRestaurantDBOption>
<RestaurantDBOption i:nil="true" />
<RestaurantDBOption>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 10</ClientID>
<CreatedBy>sample string 8</CreatedBy>
<CreatedDate>2026-04-05T21:44:46.1637956+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 9</ModifiedBy>
<ModifiedDate>2026-04-05T21:44:46.1637956+07:00</ModifiedDate>
<BranchId>de5cad7b-a8d0-4ee8-beab-448cb706762e</BranchId>
<CompanyCode>sample string 6</CompanyCode>
<Description>sample string 5</Description>
<OptionId>sample string 2</OptionId>
<OptionValue>sample string 3</OptionValue>
<RestaurantDBOptionId>1</RestaurantDBOptionId>
<RestaurantId>1</RestaurantId>
<ValueType>4</ValueType>
</RestaurantDBOption>
</ListRestaurantDBOption>
<ListRestaurantOpenHour>
<RestaurantOpenHour i:nil="true" />
<RestaurantOpenHour>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 9</ClientID>
<CreatedBy>sample string 7</CreatedBy>
<CreatedDate>2026-04-05T21:44:46.1637956+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 8</ModifiedBy>
<ModifiedDate>2026-04-05T21:44:46.1637956+07:00</ModifiedDate>
<Day>3</Day>
<FromTime>4</FromTime>
<RestaurantId>2</RestaurantId>
<RestaurantOpenHourId>1</RestaurantOpenHourId>
<ToTime>5</ToTime>
</RestaurantOpenHour>
</ListRestaurantOpenHour>
<ListRestaurantTypeReference>
<RestaurantTypeReference i:nil="true" />
<RestaurantTypeReference>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 9</ClientID>
<CreatedBy>sample string 7</CreatedBy>
<CreatedDate>2026-04-05T21:44:46.1637956+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 8</ModifiedBy>
<ModifiedDate>2026-04-05T21:44:46.1637956+07:00</ModifiedDate>
<CategoryType>5</CategoryType>
<ParentId>b28ee0f1-7e57-4a95-b961-b95ea6f2d54a</ParentId>
<RestaurantId>2</RestaurantId>
<RestaurantTypeId>53389164-803f-4f60-b0ce-d5098a7e39c8</RestaurantTypeId>
<RestaurantTypeName>sample string 4</RestaurantTypeName>
<RestaurantTypeReferenceId>1</RestaurantTypeReferenceId>
</RestaurantTypeReference>
</ListRestaurantTypeReference>
<ListRestaurantUtility>
<RestaurantUtility i:nil="true" />
<RestaurantUtility>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 9</ClientID>
<CreatedBy>sample string 7</CreatedBy>
<CreatedDate>2026-04-05T21:44:46.1637956+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 8</ModifiedBy>
<ModifiedDate>2026-04-05T21:44:46.1637956+07:00</ModifiedDate>
<DictionaryKey>4</DictionaryKey>
<RestaurantId>2</RestaurantId>
<RestaurantUtilityId>1</RestaurantUtilityId>
<UtilityId>3</UtilityId>
<UtilityName>sample string 5</UtilityName>
</RestaurantUtility>
</ListRestaurantUtility>
<Menus>
<Menu i:nil="true" />
<Menu>
<_x003C_DeleteStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_InsertStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_MISAEntityState_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/MISA.Library">None</_x003C_MISAEntityState_x003E_k__BackingField>
<_x003C_StoreSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_TableSchema_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<_x003C_UpdateStoredProcedureName_x003E_k__BackingField i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_ChangedValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<m_OriginalValues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/MISA.Library" />
<ClientID>sample string 24</ClientID>
<CreatedBy>sample string 22</CreatedBy>
<CreatedDate>2026-04-05T21:44:46.1637956+07:00</CreatedDate>
<ImportErrorDetail i:nil="true" />
<ImportListError />
<ImportRowIndex>0</ImportRowIndex>
<ModifiedBy>sample string 23</ModifiedBy>
<ModifiedDate>2026-04-05T21:44:46.1637956+07:00</ModifiedDate>
<Description>sample string 16</Description>
<Extension>sample string 14</Extension>
<FileResourceID>sample string 13</FileResourceID>
<HideInMenu>true</HideInMenu>
<ImageUrl>sample string 19</ImageUrl>
<Inactive>true</Inactive>
<InventoryItemId>a7f9e58f-10ab-45b4-ac25-d888929cf235</InventoryItemId>
<IsFeature>true</IsFeature>
<MenuCategoryName>sample string 12</MenuCategoryName>
<MenuCode>sample string 17</MenuCode>
<MenuId>1</MenuId>
<MenuName>sample string 3</MenuName>
<MenuType>4</MenuType>
<OldCoverPhotoURL>sample string 20</OldCoverPhotoURL>
<ParentID>f70311e7-efbf-487a-8f7c-902392ddb3b7</ParentID>
<Price>5</Price>
<Quantity>18</Quantity>
<RestaurantId>2</RestaurantId>
<SortOrder>8</SortOrder>
<SourceType>CukCuk</SourceType>
<UnitName>sample string 6</UnitName>
<UsedCount>15</UsedCount>
</Menu>
</Menus>
<PublishType>None</PublishType>
<RestaurantObject i:nil="true" />
</RestaurantParam>
application/x-www-form-urlencoded
Response Information
Resource Description
trả về ServiceResult Success thành công thất bại
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorType |
Loại lỗi |
EnumServiceErrorType |
None. |
| ErrorMessage |
Thông tin lỗi |
string |
None. |
| Data |
Dữ liệu trả về cho client |
Object |
None. |
| SummaryData |
Dữ liệu dòng tổng trên grid trả về client |
Object |
None. |
| Total |
Tổng số bản ghi trên grid |
integer |
None. |
| Success |
Thực thi Service thành công |
boolean |
None. |
| NewId |
Trả về ID của đối tượng khi cất thành công |
Object |
None. |
| LastSyncDate |
Thời gian truy cập lấy dữ liệu tính đến thời điểm hiện tại, Lưu dạng long để truyền qua webapi |
integer |
None. |
Response Formats
application/json, text/json
{
"ErrorType": 1,
"ErrorMessage": "sample string 1",
"Data": {},
"SummaryData": {},
"Total": 1,
"Success": true,
"NewId": {},
"LastSyncDate": 1
}
text/xml
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MISA.CUK5FOOD.BO"> <Data /> <ErrorMessage>sample string 1</ErrorMessage> <ErrorType>CUKCUKSeflOrderPaid</ErrorType> <LastSyncDate>1</LastSyncDate> <NewId /> <Success>true</Success> <SummaryData /> <Total>1</Total> </ServiceResult>