POST api/proposal

Creates a proposal.

Request Information

URI Parameters

None.

Body Parameters

The configuration of the proposal to create.

Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalConfigurationViewModel
NameDescriptionTypeAdditional information
BookingId

integer

None.

LanguageId

integer

None.

Layout

string

None.

Comments

string

None.

ProposalItems

Collection of Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalConfigurationItemViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "LanguageId": 2,
  "Layout": "sample string 3",
  "Comments": "sample string 4",
  "ProposalItems": [
    {
      "Id": 1,
      "Type": "sample string 2",
      "Group": "sample string 3"
    },
    {
      "Id": 1,
      "Type": "sample string 2",
      "Group": "sample string 3"
    }
  ]
}

text/html

Sample:
{"BookingId":1,"LanguageId":2,"Layout":"sample string 3","Comments":"sample string 4","ProposalItems":[{"Id":1,"Type":"sample string 2","Group":"sample string 3"},{"Id":1,"Type":"sample string 2","Group":"sample string 3"}]}

application/xml, text/xml

Sample:
<ProposalConfigurationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Proposal">
  <BookingId>1</BookingId>
  <Comments>sample string 4</Comments>
  <LanguageId>2</LanguageId>
  <Layout>sample string 3</Layout>
  <ProposalItems>
    <ProposalConfigurationItemViewModel>
      <Group>sample string 3</Group>
      <Id>1</Id>
      <Type>sample string 2</Type>
    </ProposalConfigurationItemViewModel>
    <ProposalConfigurationItemViewModel>
      <Group>sample string 3</Group>
      <Id>1</Id>
      <Type>sample string 2</Type>
    </ProposalConfigurationItemViewModel>
  </ProposalItems>
</ProposalConfigurationViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A string that represents the id of the created document.

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

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