POST v1/answerselects

Creates a AnswerSelect

Request Information

URI Parameters

None.

Body Parameters

An object representing the AnswerSelect.

AnswerSelect
NameDescriptionTypeAdditional information
Id

string

None.

Html

string

None.

AllowTextEntry

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Html": "sample string 2",
  "AllowTextEntry": true
}

text/html

Sample:
{"Id":"sample string 1","Html":"sample string 2","AllowTextEntry":true}

application/xml, text/xml

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

Response Information

Resource Description

A response containing the new AnswerSelect's unique id, or validation errors if the AnswerSelect could not be created.

AnswerSelectPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 201 Created: AnswerSelect successfully created.
  • 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:
<AnswerSelectPostResponse 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>
</AnswerSelectPostResponse>