POST api/proposal/update
Updates a proposal.
Request Information
URI Parameters
None.
Body Parameters
The proposal view model to update and the modified descriptions.
Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalUpdateViewModelName | Description | Type | Additional information |
---|---|---|---|
Proposal | Cyberlogic.eTourism.Domain.ViewModels.Proposal.ProposalViewModel |
None. |
|
Items | Collection of Collection of Object |
None. |
Request Formats
application/json, text/json
Sample:
{ "Proposal": { "Id": "sample string 1", "DateFrom": "sample string 2", "DateTo": "sample string 3", "Price": 4.0, "Language": "sample string 5", "Client": "sample string 6", "Pax": 7, "ProposalDate": "sample string 8", "Layout": "sample string 9", "Comments": "sample string 10", "Company": { "Name": "sample string 1", "Address": "sample string 2", "Area": "sample string 3", "Telephone": "sample string 4", "Fax": "sample string 5" }, "User": { "Name": "sample string 1", "Email": "sample string 2", "Telephone": "sample string 3", "Mobile": "sample string 4" }, "Destinations": [ "sample string 1", "sample string 2" ], "SupplierDescriptions": [ { "Id": 1, "Name": "sample string 2", "MainDescription": "sample string 3", "Media": { "DefaultImage": "sample string 1", "DefaultVideo": "sample string 2", "Images": [ { "MainUrl": "sample string 1", "Description": "sample string 2" }, { "MainUrl": "sample string 1", "Description": "sample string 2" } ], "Videos": [ { "MainUrl": "sample string 1", "Description": "sample string 2" }, { "MainUrl": "sample string 1", "Description": "sample string 2" } ] } }, { "Id": 1, "Name": "sample string 2", "MainDescription": "sample string 3", "Media": { "DefaultImage": "sample string 1", "DefaultVideo": "sample string 2", "Images": [ { "MainUrl": "sample string 1", "Description": "sample string 2" }, { "MainUrl": "sample string 1", "Description": "sample string 2" } ], "Videos": [ { "MainUrl": "sample string 1", "Description": "sample string 2" }, { "MainUrl": "sample string 1", "Description": "sample string 2" } ] } } ], "ProposalItems": [ { "Id": 1, "Type": "sample string 2", "SubType": "sample string 3", "Description": null, "Info": { "DateFrom": "sample string 1", "DateTo": "sample string 2", "Price": 3.0, "PriceAdults": 4.0, "PriceChildren": 5.0, "PriceBasis": "sample string 6", "Adults": 7, "Children": 8, "Infants": 9, "Free": 10, "Quantity": 11, "Description": "sample string 12", "Group": "sample string 13", "SupplierId": 14, "RemoveFromProposal": true } }, { "Id": 1, "Type": "sample string 2", "SubType": "sample string 3", "Description": null, "Info": { "DateFrom": "sample string 1", "DateTo": "sample string 2", "Price": 3.0, "PriceAdults": 4.0, "PriceChildren": 5.0, "PriceBasis": "sample string 6", "Adults": 7, "Children": 8, "Infants": 9, "Free": 10, "Quantity": 11, "Description": "sample string 12", "Group": "sample string 13", "SupplierId": 14, "RemoveFromProposal": true } } ], "PerPersonAnalysis": { "Lines": [ { "Group": "sample string 1", "AdultsPrice": 2.0, "ChildrenPrice": 3.0, "ShowChildrenPriceLine": true }, { "Group": "sample string 1", "AdultsPrice": 2.0, "ChildrenPrice": 3.0, "ShowChildrenPriceLine": true } ] }, "Adults": 11, "Children": 12, "Infants": 13, "Free": 14 }, "Items": null }
text/html
Sample:
{"Proposal":{"Id":"sample string 1","DateFrom":"sample string 2","DateTo":"sample string 3","Price":4.0,"Language":"sample string 5","Client":"sample string 6","Pax":7,"ProposalDate":"sample string 8","Layout":"sample string 9","Comments":"sample string 10","Company":{"Name":"sample string 1","Address":"sample string 2","Area":"sample string 3","Telephone":"sample string 4","Fax":"sample string 5"},"User":{"Name":"sample string 1","Email":"sample string 2","Telephone":"sample string 3","Mobile":"sample string 4"},"Destinations":["sample string 1","sample string 2"],"SupplierDescriptions":[{"Id":1,"Name":"sample string 2","MainDescription":"sample string 3","Media":{"DefaultImage":"sample string 1","DefaultVideo":"sample string 2","Images":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}],"Videos":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}]}},{"Id":1,"Name":"sample string 2","MainDescription":"sample string 3","Media":{"DefaultImage":"sample string 1","DefaultVideo":"sample string 2","Images":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}],"Videos":[{"MainUrl":"sample string 1","Description":"sample string 2"},{"MainUrl":"sample string 1","Description":"sample string 2"}]}}],"ProposalItems":[{"Id":1,"Type":"sample string 2","SubType":"sample string 3","Description":null,"Info":{"DateFrom":"sample string 1","DateTo":"sample string 2","Price":3.0,"PriceAdults":4.0,"PriceChildren":5.0,"PriceBasis":"sample string 6","Adults":7,"Children":8,"Infants":9,"Free":10,"Quantity":11,"Description":"sample string 12","Group":"sample string 13","SupplierId":14,"RemoveFromProposal":true}},{"Id":1,"Type":"sample string 2","SubType":"sample string 3","Description":null,"Info":{"DateFrom":"sample string 1","DateTo":"sample string 2","Price":3.0,"PriceAdults":4.0,"PriceChildren":5.0,"PriceBasis":"sample string 6","Adults":7,"Children":8,"Infants":9,"Free":10,"Quantity":11,"Description":"sample string 12","Group":"sample string 13","SupplierId":14,"RemoveFromProposal":true}}],"PerPersonAnalysis":{"Lines":[{"Group":"sample string 1","AdultsPrice":2.0,"ChildrenPrice":3.0,"ShowChildrenPriceLine":true},{"Group":"sample string 1","AdultsPrice":2.0,"ChildrenPrice":3.0,"ShowChildrenPriceLine":true}]},"Adults":11,"Children":12,"Infants":13,"Free":14},"Items":null}
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A string that represents the id of the created document.
stringResponse 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>