POST api/collections/{type}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
type

string

None.

Body Parameters

MasterCollectionViewModel
NameDescriptionTypeAdditional information
id

integer

None.

value

string

Max length: 100

Min length: 1

Type

string

Max length: 100

Min length: 5

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "value": "sample string 2",
  "Type": "sample string 3"
}

application/xml, text/xml

Sample:
<MasterCollectionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SchoolERP.API.ViewModels.Common">
  <Type>sample string 3</Type>
  <id>1</id>
  <value>sample string 2</value>
</MasterCollectionViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.