[Deprecated]: Add form in a study version

post

/ec-designer-svc/rest/v8.0/studies/{studyId}/versions/{version}/forms

Deprecated: Use latest version instead. Adds a form in a study version.

Request

Path Parameters
Supported Media Types
Request Body - */* ()
Root Schema : FormDto v9.0
Type: object
Title: FormDto v9.0
Form Info
Show Source
Nested Schema : items
Type: array
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
Nested Schema : FormItemDto v9.0
Type: object
Title: FormItemDto v9.0
Discriminator: questionType

Discriminator Values

Form Item Information
Show Source
Match One Schema
Show Source
Nested Schema : advancedProps
Type: array
Show Source
Nested Schema : FormNumberItemDto v9.0
Type: object
Title: FormNumberItemDto v9.0
Form Number Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormNumberItemDto v9.0-allOf[1]
Nested Schema : FormChoiceItemDto v9.0
Type: object
Title: FormChoiceItemDto v9.0
Form Choice Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormChoiceItemDto v9.0-allOf[1]
Nested Schema : FormTextItemDto v9.0
Type: object
Title: FormTextItemDto v9.0
Form text Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormTextItemDto v9.0-allOf[1]
Nested Schema : FormDatetimeItemDto v9.0
Type: object
Title: FormDatetimeItemDto v9.0
Form DateTime Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormDatetimeItemDto v9.0-allOf[1]
Nested Schema : FormQuestionGroupItemDto v9.0
Type: object
Title: FormQuestionGroupItemDto v9.0
Form Question Group Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
Nested Schema : From Item Advanced Property v9.0
Type: object
Title: From Item Advanced Property v9.0
Form Item Advanced Property
Show Source
Nested Schema : rules
Type: array
Show Source
Nested Schema : From Item Advanced Property Rule v9.0
Type: object
Title: From Item Advanced Property Rule v9.0
Form Item Advanced Property Rule
Show Source
  • For RolloverQuestion property it is an ECDV_CODELISTITEM.VALUE
    Example: Yes
  • name
    Example: RolloverQuestionAnswer
  • For RolloverQuestion property it is an ECDV_CODELISTITEM.CODELISTITEM_ID
    Example: B1B8327AFAA6412287106192AB5984EF
Nested Schema : FormNumberItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : FormChoiceItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : options
Type: array
Show Source
Nested Schema : FormOptionDto v9.0
Type: object
Title: FormOptionDto v9.0
Form choice item option details
Show Source
  • Minimum Length: 1
    Maximum Length: 4000
    Form choice selectbox label for a one specific choice.
    Example: Female
  • Minimum Length: 1
    Maximum Length: 4000
    Pattern: [a-zA-Z0-9]+
    Form choice selectbox value for a one specific choice.
    Example: 1
Nested Schema : FormTextItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : FormDatetimeItemDto v9.0-allOf[1]
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : FormDto v9.0
Type: object
Title: FormDto v9.0
Form Info
Show Source
Nested Schema : items
Type: array
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
Nested Schema : FormItemDto v9.0
Type: object
Title: FormItemDto v9.0
Discriminator: questionType

Discriminator Values

Form Item Information
Show Source
Match One Schema
Show Source
Nested Schema : advancedProps
Type: array
Show Source
Nested Schema : FormNumberItemDto v9.0
Type: object
Title: FormNumberItemDto v9.0
Form Number Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormNumberItemDto v9.0-allOf[1]
Nested Schema : FormChoiceItemDto v9.0
Type: object
Title: FormChoiceItemDto v9.0
Form Choice Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormChoiceItemDto v9.0-allOf[1]
Nested Schema : FormTextItemDto v9.0
Type: object
Title: FormTextItemDto v9.0
Form text Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormTextItemDto v9.0-allOf[1]
Nested Schema : FormDatetimeItemDto v9.0
Type: object
Title: FormDatetimeItemDto v9.0
Form DateTime Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
  • FormDatetimeItemDto v9.0-allOf[1]
Nested Schema : FormQuestionGroupItemDto v9.0
Type: object
Title: FormQuestionGroupItemDto v9.0
Form Question Group Item Details Information
Match All
Show Source
  • FormItemDto v9.0
    Title: FormItemDto v9.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV9", "numeric":"#/components/schemas/FormNumberItemDtoV9", "measurement":"#/components/schemas/FormNumberItemDtoV9", "text":"#/components/schemas/FormTextItemDtoV9", "choice":"#/components/schemas/FormChoiceItemDtoV9", "questionGroup":"#/components/schemas/FormQuestionGroupItemDtoV9" } }
    Form Item Information
Nested Schema : From Item Advanced Property v9.0
Type: object
Title: From Item Advanced Property v9.0
Form Item Advanced Property
Show Source
Nested Schema : rules
Type: array
Show Source
Nested Schema : From Item Advanced Property Rule v9.0
Type: object
Title: From Item Advanced Property Rule v9.0
Form Item Advanced Property Rule
Show Source
  • For RolloverQuestion property it is an ECDV_CODELISTITEM.VALUE
    Example: Yes
  • name
    Example: RolloverQuestionAnswer
  • For RolloverQuestion property it is an ECDV_CODELISTITEM.CODELISTITEM_ID
    Example: B1B8327AFAA6412287106192AB5984EF
Nested Schema : FormNumberItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : FormChoiceItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : options
Type: array
Show Source
Nested Schema : FormOptionDto v9.0
Type: object
Title: FormOptionDto v9.0
Form choice item option details
Show Source
  • Minimum Length: 1
    Maximum Length: 4000
    Form choice selectbox label for a one specific choice.
    Example: Female
  • Minimum Length: 1
    Maximum Length: 4000
    Pattern: [a-zA-Z0-9]+
    Form choice selectbox value for a one specific choice.
    Example: 1
Nested Schema : FormTextItemDto v9.0-allOf[1]
Type: object
Show Source
Nested Schema : FormDatetimeItemDto v9.0-allOf[1]
Type: object
Show Source

500 Response

Error
Body ()
Root Schema : ErrorResponseData
Type: object
Show Source
Nested Schema : details
Type: object
Back to Top