PUT api/descriptionDictionary/Category

Sets a description dictionary category.

Request Information

URI Parameters

None.

Body Parameters

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryCategoryViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Type

Cyberlogic.eTourism.Domain.Models.DescriptionDictionaries.DescriptionDictionaryCategoryType

None.

Items

Collection of Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryItemViewModel

None.

SubCategory

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionarySubCategoryViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Type": 0,
  "Items": [
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    },
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    }
  ],
  "SubCategory": {
    "Name": "sample string 1",
    "Items": [
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      },
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      }
    ]
  }
}

text/html

Sample:
{"Id":"sample string 1","Name":"sample string 2","Type":0,"Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}],"SubCategory":{"Name":"sample string 1","Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}]}}

application/xml, text/xml

Sample:
<DescriptionDictionaryCategoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries">
  <Id>sample string 1</Id>
  <Items>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
  </Items>
  <Name>sample string 2</Name>
  <SubCategory>
    <Items>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
    </Items>
    <Name>sample string 1</Name>
  </SubCategory>
  <Type>HotelProperty</Type>
</DescriptionDictionaryCategoryViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A success or an error message.

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryCategoryViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Name

string

None.

Type

Cyberlogic.eTourism.Domain.Models.DescriptionDictionaries.DescriptionDictionaryCategoryType

None.

Items

Collection of Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionaryItemViewModel

None.

SubCategory

Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries.DescriptionDictionarySubCategoryViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "Type": 0,
  "Items": [
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    },
    {
      "Id": 1,
      "CyberId": "sample string 2",
      "Overview": [
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        },
        {
          "Language": {
            "Id": 1,
            "Name": "sample string 2",
            "InternetCode": "sample string 3"
          },
          "Name": "sample string 1"
        }
      ]
    }
  ],
  "SubCategory": {
    "Name": "sample string 1",
    "Items": [
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      },
      {
        "Id": 1,
        "CyberId": "sample string 2",
        "Overview": [
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          },
          {
            "Language": {
              "Id": 1,
              "Name": "sample string 2",
              "InternetCode": "sample string 3"
            },
            "Name": "sample string 1"
          }
        ]
      }
    ]
  }
}

text/html

Sample:
{"Id":"sample string 1","Name":"sample string 2","Type":0,"Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}],"SubCategory":{"Name":"sample string 1","Items":[{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]},{"Id":1,"CyberId":"sample string 2","Overview":[{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"},{"Language":{"Id":1,"Name":"sample string 2","InternetCode":"sample string 3"},"Name":"sample string 1"}]}]}}

application/xml, text/xml

Sample:
<DescriptionDictionaryCategoryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.DescriptionDictionaries">
  <Id>sample string 1</Id>
  <Items>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
    <DescriptionDictionaryItemViewModel>
      <CyberId>sample string 2</CyberId>
      <Id>1</Id>
      <Overview>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
        <DescriptionDictionaryTranslations>
          <Language xmlns:d6p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
            <d6p1:Id>1</d6p1:Id>
            <d6p1:InternetCode>sample string 3</d6p1:InternetCode>
            <d6p1:Name>sample string 2</d6p1:Name>
          </Language>
          <Name>sample string 1</Name>
        </DescriptionDictionaryTranslations>
      </Overview>
    </DescriptionDictionaryItemViewModel>
  </Items>
  <Name>sample string 2</Name>
  <SubCategory>
    <Items>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
      <DescriptionDictionaryItemViewModel>
        <CyberId>sample string 2</CyberId>
        <Id>1</Id>
        <Overview>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
          <DescriptionDictionaryTranslations>
            <Language xmlns:d7p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Shared">
              <d7p1:Id>1</d7p1:Id>
              <d7p1:InternetCode>sample string 3</d7p1:InternetCode>
              <d7p1:Name>sample string 2</d7p1:Name>
            </Language>
            <Name>sample string 1</Name>
          </DescriptionDictionaryTranslations>
        </Overview>
      </DescriptionDictionaryItemViewModel>
    </Items>
    <Name>sample string 1</Name>
  </SubCategory>
  <Type>HotelProperty</Type>
</DescriptionDictionaryCategoryViewModel>