POST v1/quizGroups/{id}/add-quizzes

Adds quizzes to a quiz group.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The unique identifier of the quiz group to whom the new quizzes should be added.

string

Required

Body Parameters

The quiz ids to add. If any quiz ids are invalid, no changes will be made.

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

text/html

Sample:
["sample string 1","sample string 2"]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>

Response Information

Resource Description

An object with the Id for the quiz and a collection of the quizzes to which they belong after additions.

QuizGroupPostResponse
NameDescriptionTypeAdditional information
Id

string

None.

Response Codes

  • 200 OK: Quizzes successfully added.
  • 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:
<QuizGroupPostResponse 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>
</QuizGroupPostResponse>