POST api/Programs/{programid}/CustomAffirmations/{traitid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

integer

Required

traitid

integer

Required

Body Parameters

Collection of AffirmationsModel
NameDescriptionTypeAdditional information
aff_id

integer

None.

affirmation

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "aff_id": 1,
    "affirmation": "sample string 2"
  },
  {
    "aff_id": 1,
    "affirmation": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAffirmationsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Programs">
  <AffirmationsModel>
    <aff_id>1</aff_id>
    <affirmation>sample string 2</affirmation>
  </AffirmationsModel>
  <AffirmationsModel>
    <aff_id>1</aff_id>
    <affirmation>sample string 2</affirmation>
  </AffirmationsModel>
</ArrayOfAffirmationsModel>

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 'List`1'.

Response Information

Resource Description

None.