POST api/masterlist/update

Request Information

URI Parameters

None.

Body Parameters

MasterListModel
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

ListOfValues

Collection of string

None.

Delete

boolean

None.

SaveState

enuState

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "ListOfValues": [
    "sample string 1",
    "sample string 2"
  ],
  "Delete": true,
  "SaveState": 0
}

application/xml, text/xml

Sample:
<MasterListModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SaveState>Unchanged</SaveState>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <ListOfValues>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </ListOfValues>
  <Delete>true</Delete>
</MasterListModel>

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 'MasterListModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.