POST fruitsapi/saveorupdatecontrol?preFix={preFix}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
preFix

string

Required

Body Parameters

UpdateControl
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Value

string

None.

Type

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Value": "sample string 3",
  "Type": "sample string 4"
}

text/html

Sample:
{"Id":1,"Name":"sample string 2","Value":"sample string 3","Type":"sample string 4"}

application/xml, text/xml

Sample:
<UpdateControl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FruitsApi.Models">
  <Id>1</Id>
  <Name>sample string 2</Name>
  <Type>sample string 4</Type>
  <Value>sample string 3</Value>
</UpdateControl>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.