POST api/healthAndSafety/{mode}/save
Saves a Health and Safety form
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
mode |
Determines the location where the form will be saved |
string |
Required |
Body Parameters
The form to be saved
Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.HealthAndSafetyFormDTOName | Description | Type | Additional information |
---|---|---|---|
ID | string |
None. |
|
TemplateID | string |
None. |
|
TemplateName | string |
None. |
|
TemplateTimeStamp | string |
None. |
|
Hotel | Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.HotelDTO |
None. |
|
Auditor | Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.PersonDTO |
None. |
|
AuditDate | string |
None. |
|
CreationDate | string |
None. |
|
SignDate | string |
None. |
|
EndDate | string |
None. |
|
Sections | Collection of Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.SectionDTO |
None. |
|
LogLine | Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.LogLineDTO |
None. |
|
IsVisibleToSuppliers | boolean |
None. |
|
MarkedComplete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": "sample string 1", "TemplateID": "sample string 2", "TemplateName": "sample string 3", "TemplateTimeStamp": "sample string 4", "Hotel": { "Name": "sample string 1", "Id": 2, "Address": "sample string 3", "Country": "sample string 4" }, "Auditor": { "FirstName": "sample string 1", "LastName": "sample string 2", "Position": "sample string 3" }, "AuditDate": "sample string 5", "CreationDate": "sample string 6", "SignDate": "sample string 7", "EndDate": "sample string 8", "Sections": [ { "Id": "sample string 1", "SectionName": "sample string 2", "SectionNotes": "sample string 3", "Location": "sample string 4", "Questions": [ { "Id": "sample string 1", "QuestionText": "sample string 2", "QuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true, "SubQuestions": [ { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true }, { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true } ] }, { "Id": "sample string 1", "QuestionText": "sample string 2", "QuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true, "SubQuestions": [ { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true }, { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true } ] } ] }, { "Id": "sample string 1", "SectionName": "sample string 2", "SectionNotes": "sample string 3", "Location": "sample string 4", "Questions": [ { "Id": "sample string 1", "QuestionText": "sample string 2", "QuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true, "SubQuestions": [ { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true }, { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true } ] }, { "Id": "sample string 1", "QuestionText": "sample string 2", "QuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true, "SubQuestions": [ { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true }, { "Id": "sample string 1", "SubQuestionText": "sample string 2", "SubQuestionAnswer": { "QuestionAnswer": 1, "Measure": "sample string 2", "Comments": "sample string 3" }, "IsMapped": true } ] } ] } ], "LogLine": { "HotelID": 1, "HotelName": "sample string 2", "Username": "sample string 3", "SupplierID": 4, "TimeStamp": "sample string 5", "Action": "sample string 6" }, "IsVisibleToSuppliers": true, "MarkedComplete": true }
text/html
Sample:
{"ID":"sample string 1","TemplateID":"sample string 2","TemplateName":"sample string 3","TemplateTimeStamp":"sample string 4","Hotel":{"Name":"sample string 1","Id":2,"Address":"sample string 3","Country":"sample string 4"},"Auditor":{"FirstName":"sample string 1","LastName":"sample string 2","Position":"sample string 3"},"AuditDate":"sample string 5","CreationDate":"sample string 6","SignDate":"sample string 7","EndDate":"sample string 8","Sections":[{"Id":"sample string 1","SectionName":"sample string 2","SectionNotes":"sample string 3","Location":"sample string 4","Questions":[{"Id":"sample string 1","QuestionText":"sample string 2","QuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true,"SubQuestions":[{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true},{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true}]},{"Id":"sample string 1","QuestionText":"sample string 2","QuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true,"SubQuestions":[{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true},{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true}]}]},{"Id":"sample string 1","SectionName":"sample string 2","SectionNotes":"sample string 3","Location":"sample string 4","Questions":[{"Id":"sample string 1","QuestionText":"sample string 2","QuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true,"SubQuestions":[{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true},{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true}]},{"Id":"sample string 1","QuestionText":"sample string 2","QuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true,"SubQuestions":[{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true},{"Id":"sample string 1","SubQuestionText":"sample string 2","SubQuestionAnswer":{"QuestionAnswer":1,"Measure":"sample string 2","Comments":"sample string 3"},"IsMapped":true}]}]}],"LogLine":{"HotelID":1,"HotelName":"sample string 2","Username":"sample string 3","SupplierID":4,"TimeStamp":"sample string 5","Action":"sample string 6"},"IsVisibleToSuppliers":true,"MarkedComplete":true}
application/xml, text/xml
Sample:
<HealthAndSafetyFormDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety"> <AuditDate>sample string 5</AuditDate> <Auditor> <FirstName>sample string 1</FirstName> <LastName>sample string 2</LastName> <Position>sample string 3</Position> </Auditor> <CreationDate>sample string 6</CreationDate> <EndDate>sample string 8</EndDate> <Hotel> <Address>sample string 3</Address> <Country>sample string 4</Country> <Id>2</Id> <Name>sample string 1</Name> </Hotel> <ID>sample string 1</ID> <IsVisibleToSuppliers>true</IsVisibleToSuppliers> <LogLine> <Action>sample string 6</Action> <HotelID>1</HotelID> <HotelName>sample string 2</HotelName> <SupplierID>4</SupplierID> <TimeStamp>sample string 5</TimeStamp> <Username>sample string 3</Username> </LogLine> <MarkedComplete>true</MarkedComplete> <Sections> <SectionDTO> <Id>sample string 1</Id> <Location>sample string 4</Location> <Questions> <QuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <QuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </QuestionAnswer> <QuestionText>sample string 2</QuestionText> <SubQuestions> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> </SubQuestions> </QuestionDTO> <QuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <QuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </QuestionAnswer> <QuestionText>sample string 2</QuestionText> <SubQuestions> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> </SubQuestions> </QuestionDTO> </Questions> <SectionName>sample string 2</SectionName> <SectionNotes>sample string 3</SectionNotes> </SectionDTO> <SectionDTO> <Id>sample string 1</Id> <Location>sample string 4</Location> <Questions> <QuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <QuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </QuestionAnswer> <QuestionText>sample string 2</QuestionText> <SubQuestions> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> </SubQuestions> </QuestionDTO> <QuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <QuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </QuestionAnswer> <QuestionText>sample string 2</QuestionText> <SubQuestions> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> <SubQuestionDTO> <Id>sample string 1</Id> <IsMapped>true</IsMapped> <SubQuestionAnswer> <Comments>sample string 3</Comments> <Measure>sample string 2</Measure> <QuestionAnswer>1</QuestionAnswer> </SubQuestionAnswer> <SubQuestionText>sample string 2</SubQuestionText> </SubQuestionDTO> </SubQuestions> </QuestionDTO> </Questions> <SectionName>sample string 2</SectionName> <SectionNotes>sample string 3</SectionNotes> </SectionDTO> </Sections> <SignDate>sample string 7</SignDate> <TemplateID>sample string 2</TemplateID> <TemplateName>sample string 3</TemplateName> <TemplateTimeStamp>sample string 4</TemplateTimeStamp> </HealthAndSafetyFormDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional 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. |