PUT api/excursion/{id}/description

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Cyberlogic.eTourism.Domain.ViewModels.Excursions.ExcursionDescriptionViewModel
NameDescriptionTypeAdditional information
ExcursionId

integer

None.

Overview

Collection of Object

None.

Media

Cyberlogic.eTourism.Domain.ViewModels.Shared.MediaViewModel

None.

RouteStops

Collection of Object

None.

Request Formats

application/json, text/json

Sample:
{
  "ExcursionId": 1,
  "Overview": null,
  "Media": {
    "DefaultImage": {
      "MainUrl": "sample string 1",
      "ThumbUrl": "sample string 2"
    },
    "DefaultVideo": "sample string 1",
    "Images": [
      {
        "MainUrl": "sample string 1",
        "ThumbUrl": "sample string 2",
        "Tags": [
          "sample string 1",
          "sample string 2"
        ],
        "Description": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          }
        ]
      },
      {
        "MainUrl": "sample string 1",
        "ThumbUrl": "sample string 2",
        "Tags": [
          "sample string 1",
          "sample string 2"
        ],
        "Description": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          }
        ]
      }
    ],
    "Videos": [
      {
        "MainUrl": "sample string 1",
        "Description": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          }
        ]
      },
      {
        "MainUrl": "sample string 1",
        "Description": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Description": "sample string 1"
          }
        ]
      }
    ]
  },
  "RouteStops": null
}

text/html

Sample:
{"ExcursionId":1,"Overview":null,"Media":{"DefaultImage":{"MainUrl":"sample string 1","ThumbUrl":"sample string 2"},"DefaultVideo":"sample string 1","Images":[{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","ThumbUrl":"sample string 2","Tags":["sample string 1","sample string 2"],"Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}],"Videos":[{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]},{"MainUrl":"sample string 1","Description":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Description":"sample string 1"}]}]},"RouteStops":null}

application/xml, text/xml

Sample:
<ExcursionDescriptionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions">
  <ExcursionId>1</ExcursionId>
  <Media xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
    <d2p1:DefaultImage>
      <d2p1:MainUrl>sample string 1</d2p1:MainUrl>
      <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl>
    </d2p1:DefaultImage>
    <d2p1:DefaultVideo>sample string 1</d2p1:DefaultVideo>
    <d2p1:Images>
      <d2p1:ImageViewModel>
        <d2p1:Description>
          <d2p1:ImageDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:ImageDescriptionViewModel>
          <d2p1:ImageDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:ImageDescriptionViewModel>
        </d2p1:Description>
        <d2p1:MainUrl>sample string 1</d2p1:MainUrl>
        <d2p1:Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d2p1:Tags>
        <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl>
      </d2p1:ImageViewModel>
      <d2p1:ImageViewModel>
        <d2p1:Description>
          <d2p1:ImageDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:ImageDescriptionViewModel>
          <d2p1:ImageDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:ImageDescriptionViewModel>
        </d2p1:Description>
        <d2p1:MainUrl>sample string 1</d2p1:MainUrl>
        <d2p1:Tags xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:string>sample string 1</d5p1:string>
          <d5p1:string>sample string 2</d5p1:string>
        </d2p1:Tags>
        <d2p1:ThumbUrl>sample string 2</d2p1:ThumbUrl>
      </d2p1:ImageViewModel>
    </d2p1:Images>
    <d2p1:Videos>
      <d2p1:VideoViewModel>
        <d2p1:Description>
          <d2p1:VideoDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:VideoDescriptionViewModel>
          <d2p1:VideoDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:VideoDescriptionViewModel>
        </d2p1:Description>
        <d2p1:MainUrl>sample string 1</d2p1:MainUrl>
      </d2p1:VideoViewModel>
      <d2p1:VideoViewModel>
        <d2p1:Description>
          <d2p1:VideoDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:VideoDescriptionViewModel>
          <d2p1:VideoDescriptionViewModel>
            <d2p1:Description>sample string 1</d2p1:Description>
            <d2p1:Language>
              <d2p1:Id>1</d2p1:Id>
              <d2p1:InternetCode>sample string 3</d2p1:InternetCode>
              <d2p1:Name>sample string 2</d2p1:Name>
            </d2p1:Language>
          </d2p1:VideoDescriptionViewModel>
        </d2p1:Description>
        <d2p1:MainUrl>sample string 1</d2p1:MainUrl>
      </d2p1:VideoViewModel>
    </d2p1:Videos>
  </Media>
  <Overview i:nil="true" />
  <RouteStops xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions.RouteStops" i:nil="true" />
</ExcursionDescriptionViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.