PUT api/Programs/{programid}/CompletedAnswers

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

integer

Required

Body Parameters

Collection of ProgAnswersModel
NameDescriptionTypeAdditional information
prog_answers_id

integer

None.

prog_quest_link

integer

None.

radio_answer

string

None.

text_answer

string

None.

answer_date

date

None.

prog_link

integer

None.

session_link

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "prog_answers_id": 1,
    "prog_quest_link": 2,
    "radio_answer": "sample string 3",
    "text_answer": "sample string 4",
    "answer_date": "2021-06-18T20:10:26.1838303-07:00",
    "prog_link": 6,
    "session_link": 7
  },
  {
    "prog_answers_id": 1,
    "prog_quest_link": 2,
    "radio_answer": "sample string 3",
    "text_answer": "sample string 4",
    "answer_date": "2021-06-18T20:10:26.1838303-07:00",
    "prog_link": 6,
    "session_link": 7
  }
]

application/xml, text/xml

Sample:
<ArrayOfProgAnswersModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.Programs">
  <ProgAnswersModel>
    <answer_date>2021-06-18T20:10:26.1838303-07:00</answer_date>
    <prog_answers_id>1</prog_answers_id>
    <prog_link>6</prog_link>
    <prog_quest_link>2</prog_quest_link>
    <radio_answer>sample string 3</radio_answer>
    <session_link>7</session_link>
    <text_answer>sample string 4</text_answer>
  </ProgAnswersModel>
  <ProgAnswersModel>
    <answer_date>2021-06-18T20:10:26.1838303-07:00</answer_date>
    <prog_answers_id>1</prog_answers_id>
    <prog_link>6</prog_link>
    <prog_quest_link>2</prog_quest_link>
    <radio_answer>sample string 3</radio_answer>
    <session_link>7</session_link>
    <text_answer>sample string 4</text_answer>
  </ProgAnswersModel>
</ArrayOfProgAnswersModel>

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.