POST adventures/permittypes

Request Information

URI Parameters

None.

Body Parameters

PermitTypePOST
NameDescriptionTypeAdditional information
BaseCost

decimal number

None.

BaseUsers

integer

None.

DaysValid

integer

None.

Description

string

None.

ExtraCost

decimal number

None.

ModifiedBy

string

None.

Name

string

None.

OrganisationId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "baseCost": 1.0,
  "baseUsers": 2,
  "daysValid": 3,
  "description": "sample string 4",
  "extraCost": 5.0,
  "modifiedBy": "sample string 6",
  "name": "sample string 7",
  "organisationId": 8
}

application/xml, text/xml

Sample:
<PermitTypePOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Adventures">
  <BaseCost>1</BaseCost>
  <BaseUsers>2</BaseUsers>
  <DaysValid>3</DaysValid>
  <Description>sample string 4</Description>
  <ExtraCost>5</ExtraCost>
  <ModifiedBy>sample string 6</ModifiedBy>
  <Name>sample string 7</Name>
  <OrganisationId>8</OrganisationId>
</PermitTypePOST>

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

Response Information

Resource Description

None.