PUT v1/QuestionEssays/{id}

Creates a new QuestionEssay or updates an existing QuestionEssay

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the QuestionEssay to update or create.

string

Required

Body Parameters

QuestionEssay
NameDescriptionTypeAdditional information
Id

string

None.

Html

string

None.

AnswerSelectSetId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Html": "sample string 2",
  "AnswerSelectSetId": "sample string 3"
}

text/html

Sample:
{"Id":"sample string 1","Html":"sample string 2","AnswerSelectSetId":"sample string 3"}

application/xml, text/xml

Sample:
<QuestionEssay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Models">
  <AnswerSelectSetId>sample string 3</AnswerSelectSetId>
  <Html>sample string 2</Html>
  <Id>sample string 1</Id>
</QuestionEssay>

Response Information

Resource Description

A response containing the new QuestionEssay's unique id, or validation errors if the quiz group could not be created or updated.

QuestionEssayPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: QuestionEssay successfully saved.
  • 400 BadRequest: Data validation failed, see the response body for more information.
  • 401 Unauthorized:
  • 500 InternalServerError:

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1"
}

text/html

Sample:
{"Id":"sample string 1"}

application/xml, text/xml

Sample:
<QuestionEssayPostResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ITAGroup.Questionnaire.Api.Contracts.v1.Responses">
  <Id>sample string 1</Id>
</QuestionEssayPostResponse>