POST api/Resources/UploadRelatedFile?userId={userId}&resourceId={resourceId}&isConfig={isConfig}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

Required

resourceId

integer

Required

isConfig

boolean

Default value is False

Body Parameters

StringFile
NameDescriptionTypeAdditional information
FileName

string

None.

FileString

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FileName": "sample string 1",
  "FileString": "sample string 2"
}

application/xml, text/xml

Sample:
<StringFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FileName>sample string 1</FileName>
  <FileString>sample string 2</FileString>
</StringFile>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.