POST adventures/media

Request Information

URI Parameters

None.

Body Parameters

MediaPOST
NameDescriptionTypeAdditional information
ActivityId

integer

None.

Id

integer

None.

MediaType

string

None.

ModifiedBy

string

None.

Title

string

None.

Url

string

None.

Request Formats

application/json, text/json

Sample:
{
  "activityId": 1,
  "id": 2,
  "mediaType": "sample string 3",
  "modifiedBy": "sample string 4",
  "title": "sample string 5",
  "url": "sample string 6"
}

application/xml, text/xml

Sample:
<MediaPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myPortalApi.Models.Adventures">
  <ActivityId>1</ActivityId>
  <Id>2</Id>
  <MediaType>sample string 3</MediaType>
  <ModifiedBy>sample string 4</ModifiedBy>
  <Title>sample string 5</Title>
  <Url>sample string 6</Url>
</MediaPOST>

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

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>