V2.0

get

/ec-designer-svc/rest/v2.0/studies/{studyId}/visitsforms

Retrieves visits with forms and question metadata for the selected study versions. Use `/v17.0/studies/{studyId}/versions/{version}/visits/{visitid}/forms` and related v17.0 visit/form endpoints for active behavior and metadata.

Request

Path Parameters
Query Parameters
  • Form item type to exclude from the question list. Optional. Allowed value: `instructionalText`.
    Allowed Values: [ "instructionalText" ]
    Example:
    instructionalText
  • Comma-separated study version numbers to filter by. Optional; when omitted, the latest active version data is returned.
    Example:
    1,2

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : VisitsFormsQuestionsDto
Type: object
Show Source
Nested Schema : forms
Type: array
Show Source
Nested Schema : questions
Type: array
Show Source
Nested Schema : visits
Type: array
Show Source
Nested Schema : FormDto
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }
    Form Item Information
Nested Schema : FormItemDto v5.0
Type: object
Title: FormItemDto v5.0
Discriminator: questionType

Discriminator Values

Form Item Information
Show Source
Match One Schema
Show Source
Nested Schema : FormNumberItemDto v5.0
Type: object
Title: FormNumberItemDto v5.0
Form Number Item Details Information
Match All
Form Number Item Details Information
Form Number Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }
    Form Item Information
  • FormNumberItemDto v5.0-allOf[1]
Nested Schema : FormChoiceItemDto v5.0
Type: object
Title: FormChoiceItemDto v5.0
Form Choice Item Details Information
Match All
Form Choice Item Details Information
Form Choice Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }
    Form Item Information
  • FormChoiceItemDto v5.0-allOf[1]
Nested Schema : FormTextItemDto v5.0
Type: object
Title: FormTextItemDto v5.0
Form text Item Details Information
Match All
Form text Item Details Information
Form text Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }
    Form Item Information
  • FormTextItemDto v5.0-allOf[1]
Nested Schema : FormDatetimeItemDto v5.0
Type: object
Title: FormDatetimeItemDto v5.0
Form DateTime Item Details Information
Match All
Form DateTime Item Details Information
Form DateTime Item Details Information
Show Source
  • FormItemDto v5.0
    Title: FormItemDto v5.0
    Discriminator: { "propertyName":"questionType", "mapping":{ "datetime":"#/components/schemas/FormDatetimeItemDtoV5", "numeric":"#/components/schemas/FormNumberItemDtoV5", "measurement":"#/components/schemas/FormNumberItemDtoV5", "text":"#/components/schemas/FormTextItemDtoV5", "choice":"#/components/schemas/FormChoiceItemDtoV5" } }
    Form Item Information
  • FormDatetimeItemDto v5.0-allOf[1]
Nested Schema : FormNumberItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormChoiceItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : options
Type: array
Show Source
Nested Schema : FormOptionDto v5.0
Type: object
Title: FormOptionDto v5.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 v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormDatetimeItemDto v5.0-allOf[1]
Type: object
Show Source
Nested Schema : FormItemBasicDto
Type: object
Show Source
Nested Schema : VisitDto
Type: object
Show Source
Examples

500 Response

Returned when the request cannot be completed due to validation failure, authorization failure, or an unexpected server-side condition.
Body ()
Root Schema : ErrorResponseData
Type: object
Show Source
Nested Schema : details
Type: object
Back to Top