POST api/article-files

Request Information

URI Parameters

None.

Body Parameters

ArticleFilesModel
NameDescriptionTypeAdditional information
ArticleFilesId

integer

None.

ArticleId

integer

None.

Name

string

None.

FileName

string

None.

Url

string

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ArticleFilesId": 1,
  "ArticleId": 2,
  "Name": "sample string 3",
  "FileName": "sample string 4",
  "Url": "sample string 5",
  "Active": true
}

application/xml, text/xml

Sample:
<ArticleFilesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.Models">
  <Active>true</Active>
  <ArticleFilesId>1</ArticleFilesId>
  <ArticleId>2</ArticleId>
  <FileName>sample string 4</FileName>
  <Name>sample string 3</Name>
  <Url>sample string 5</Url>
</ArticleFilesModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.