PUT api/benefit-program-template/{templateId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
templateId

integer

Required

Body Parameters

BenefitProgramTemplateSubModel
NameDescriptionTypeAdditional information
Description

string

None.

Fields

Collection of BenefitProgramTemplateFieldSubModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Description": "sample string 1",
  "Fields": [
    {
      "BenefitProgramTemplateFieldId": 1,
      "BenefitTypeMasterFieldId": 2,
      "FieldRelevance": 3,
      "IsMandatory": true,
      "OverrideFieldName": "sample string 5",
      "OverrideFieldTooltip": "sample string 6"
    },
    {
      "BenefitProgramTemplateFieldId": 1,
      "BenefitTypeMasterFieldId": 2,
      "FieldRelevance": 3,
      "IsMandatory": true,
      "OverrideFieldName": "sample string 5",
      "OverrideFieldTooltip": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<BenefitProgramTemplateSubModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ALTAMBS.Business.Entities.SubModels">
  <Description>sample string 1</Description>
  <Fields>
    <BenefitProgramTemplateFieldSubModel>
      <BenefitProgramTemplateFieldId>1</BenefitProgramTemplateFieldId>
      <BenefitTypeMasterFieldId>2</BenefitTypeMasterFieldId>
      <FieldRelevance>3</FieldRelevance>
      <IsMandatory>true</IsMandatory>
      <OverrideFieldName>sample string 5</OverrideFieldName>
      <OverrideFieldTooltip>sample string 6</OverrideFieldTooltip>
    </BenefitProgramTemplateFieldSubModel>
    <BenefitProgramTemplateFieldSubModel>
      <BenefitProgramTemplateFieldId>1</BenefitProgramTemplateFieldId>
      <BenefitTypeMasterFieldId>2</BenefitTypeMasterFieldId>
      <FieldRelevance>3</FieldRelevance>
      <IsMandatory>true</IsMandatory>
      <OverrideFieldName>sample string 5</OverrideFieldName>
      <OverrideFieldTooltip>sample string 6</OverrideFieldTooltip>
    </BenefitProgramTemplateFieldSubModel>
  </Fields>
</BenefitProgramTemplateSubModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BenefitProgramTemplateSubModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.