POST api/menu/NewMenu

Request Information

URI Parameters

None.

Body Parameters

M_Menu
NameDescriptionTypeAdditional information
ID

integer

None.

MenuCode

string

String length: inclusive between 0 and 50

MenuName

string

Required

String length: inclusive between 0 and 100

MenuIcon

string

String length: inclusive between 0 and 50

ParentMenu

integer

None.

IsLabel

boolean

None.

Seq

integer

None.

IsActive

boolean

None.

CreateBy

integer

None.

CreateTime

date

None.

UpdateBy

integer

None.

UpdateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "MenuCode": "sample string 2",
  "MenuName": "sample string 3",
  "MenuIcon": "sample string 4",
  "ParentMenu": 1,
  "IsLabel": true,
  "Seq": 6,
  "IsActive": true,
  "CreateBy": 8,
  "CreateTime": "2025-12-11T21:29:39.4527898+07:00",
  "UpdateBy": 1,
  "UpdateTime": "2025-12-11T21:29:39.4527898+07:00"
}

application/xml, text/xml

Sample:
<M_Menu xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ams_template.Models.DB">
  <CreateBy>8</CreateBy>
  <CreateTime>2025-12-11T21:29:39.4527898+07:00</CreateTime>
  <ID>1</ID>
  <IsActive>true</IsActive>
  <IsLabel>true</IsLabel>
  <MenuCode>sample string 2</MenuCode>
  <MenuIcon>sample string 4</MenuIcon>
  <MenuName>sample string 3</MenuName>
  <ParentMenu>1</ParentMenu>
  <Seq>6</Seq>
  <UpdateBy>1</UpdateBy>
  <UpdateTime>2025-12-11T21:29:39.4527898+07:00</UpdateTime>
</M_Menu>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.