POST adventures/sessiontypes

Request Information

URI Parameters

None.

Body Parameters

SessionTypePOST
NameDescriptionTypeAdditional information
ActivityId

integer

None.

DayOfWeek

integer

None.

ModifiedBy

string

None.

Name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "activityId": 1,
  "dayOfWeek": 2,
  "modifiedBy": "sample string 3",
  "name": "sample string 4"
}

application/xml, text/xml

Sample:
<SessionTypePOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Adventures">
  <ActivityId>1</ActivityId>
  <DayOfWeek>2</DayOfWeek>
  <ModifiedBy>sample string 3</ModifiedBy>
  <Name>sample string 4</Name>
</SessionTypePOST>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>