POST api/healthAndSafety/templateMappings/update

Update a template mapping

Request Information

URI Parameters

None.

Body Parameters

Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety.TemplateMappingDTO
NameDescriptionTypeAdditional information
ID

string

None.

Name

string

None.

SourceTemplateName

string

None.

SourceTemplateID

string

None.

TargetTemplateName

string

None.

TargetTemplateID

string

None.

QuestionMappings

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "Name": "sample string 2",
  "SourceTemplateName": "sample string 3",
  "SourceTemplateID": "sample string 4",
  "TargetTemplateName": "sample string 5",
  "TargetTemplateID": "sample string 6",
  "QuestionMappings": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"ID":"sample string 1","Name":"sample string 2","SourceTemplateName":"sample string 3","SourceTemplateID":"sample string 4","TargetTemplateName":"sample string 5","TargetTemplateID":"sample string 6","QuestionMappings":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<TemplateMappingDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.HealthAndSafety">
  <ID>sample string 1</ID>
  <Name>sample string 2</Name>
  <QuestionMappings xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </QuestionMappings>
  <SourceTemplateID>sample string 4</SourceTemplateID>
  <SourceTemplateName>sample string 3</SourceTemplateName>
  <TargetTemplateID>sample string 6</TargetTemplateID>
  <TargetTemplateName>sample string 5</TargetTemplateName>
</TemplateMappingDTO>

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.