PUT api/MenuItem/UpdateMenuItem

Request Information

URI Parameters

None.

Body Parameters

MenuItemDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

Required

String length: inclusive between 0 and 50

NameOther

string

Required

String length: inclusive between 0 and 50

IsActive

boolean

Required

ActionName

string

String length: inclusive between 0 and 50

ControllerName

string

String length: inclusive between 0 and 50

URL

string

String length: inclusive between 0 and 1000

ApplicationId

integer

None.

Icon

string

None.

ItemOrder

integer

Required

Matching regular expression pattern: ^[0-9]+$

ParentId

integer

None.

Parent

MenuItemDTO

None.

allowAnonymous

boolean

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected for property 'Parent' with type 'Components.UserManagement.DTO.MenuItemDTO'. Path ''.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected for property 'Parent' with type 'Components.UserManagement.DTO.MenuItemDTO'. Path ''.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'Components.UserManagement.DTO.MenuItemDTO' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'Components.UserManagement.DTO.MenuItemDTO' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MenuItemDTO'.

Response Information

Resource Description

ReturnResult
NameDescriptionTypeAdditional information
ResultCode

ReturnResultCode

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "ResultMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure">
  <ResultCode>NullOrEmptyUserId</ResultCode>
  <ResultMessage>sample string 1</ResultMessage>
</ReturnResult>