POST api/v1/teamdata/questions

This method posts a new set of questions in the existing team data.

Request Information

URI Parameters

None.

Body Parameters

Collection of QuestionSet
NameDescriptionTypeAdditional information
ID

This is the question set ID.

globally unique identifier

Required

TeamDataSetID

This the unique Team Datasetid.

globally unique identifier

Required

Question

This is the question that it's set for the question set.

string

Required

Type

0 = Yes/No, 1 = Date, 2 = Time, 3 = Number, 4 = Text.

integer

Required

DateInsert

The date of when the dataset is inserted.The format is the following:[YYYY-MM-DDTHH:MM:SSZ].(The system will not validate if the date it's in the past).

date

Required

DateModified

The date of when the dataset is modified.The format is the following:[YYYY-MM-DDTHH:MM:SSZ].(The system will not validate if the date it's in the past).

date

Required

DateStart

The date of when the dataset it's set to start.The format is the following:[YYYY-MM-DDTHH:MM:SSZ].(The system will not validate if the date it's in the past).

date

Required

DateEnd

The date of when the dataset it's set to end.The format is the following:[YYYY-MM-DDTHH:MM:SSZ].(The system will not validate if the date it's in the past).

date

Required

Enabled

Use Yes or No to enable or disable the question set DateEnd.

boolean

Required

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": "dc15deb1-a358-41e2-96cd-52f03285f03f",
    "TeamDataSetID": "a5b4c07e-2ca0-4b5e-ad5c-ce16861734dc",
    "Question": "sample string 3",
    "Type": 4,
    "DateInsert": "2024-04-25T13:48:51.0864552+00:00",
    "DateModified": "2024-04-25T13:48:51.0864552+00:00",
    "DateStart": "2024-04-25T13:48:51.0864552+00:00",
    "DateEnd": "2024-04-25T13:48:51.0864552+00:00",
    "Enabled": true
  },
  {
    "ID": "dc15deb1-a358-41e2-96cd-52f03285f03f",
    "TeamDataSetID": "a5b4c07e-2ca0-4b5e-ad5c-ce16861734dc",
    "Question": "sample string 3",
    "Type": 4,
    "DateInsert": "2024-04-25T13:48:51.0864552+00:00",
    "DateModified": "2024-04-25T13:48:51.0864552+00:00",
    "DateStart": "2024-04-25T13:48:51.0864552+00:00",
    "DateEnd": "2024-04-25T13:48:51.0864552+00:00",
    "Enabled": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfQuestionSet xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <QuestionSet>
    <ID>dc15deb1-a358-41e2-96cd-52f03285f03f</ID>
    <TeamDataSetID>a5b4c07e-2ca0-4b5e-ad5c-ce16861734dc</TeamDataSetID>
    <Question>sample string 3</Question>
    <Type>4</Type>
    <DateInsert>2024-04-25T13:48:51.0864552+00:00</DateInsert>
    <DateModified>2024-04-25T13:48:51.0864552+00:00</DateModified>
    <DateStart>2024-04-25T13:48:51.0864552+00:00</DateStart>
    <DateEnd>2024-04-25T13:48:51.0864552+00:00</DateEnd>
    <Enabled>true</Enabled>
  </QuestionSet>
  <QuestionSet>
    <ID>dc15deb1-a358-41e2-96cd-52f03285f03f</ID>
    <TeamDataSetID>a5b4c07e-2ca0-4b5e-ad5c-ce16861734dc</TeamDataSetID>
    <Question>sample string 3</Question>
    <Type>4</Type>
    <DateInsert>2024-04-25T13:48:51.0864552+00:00</DateInsert>
    <DateModified>2024-04-25T13:48:51.0864552+00:00</DateModified>
    <DateStart>2024-04-25T13:48:51.0864552+00:00</DateStart>
    <DateEnd>2024-04-25T13:48:51.0864552+00:00</DateEnd>
    <Enabled>true</Enabled>
  </QuestionSet>
</ArrayOfQuestionSet>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfObject
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfObject

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {}
  }
}

application/xml, text/xml

Sample:
<ResponseOfObject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail />
  </ResponseData>
</ResponseOfObject>