PUT v1/answerselects/{id}

Creates a new AnswerSelect or updates an existing AnswerSelect

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Unique Identifier of the AnswerSelect to update or create.

string

Required

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 or updated.

AnswerSelectPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: AnswerSelect 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:
<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>