V3.0

get

/ec-designer-svc/rest/v3.0/studies/{studyId}/{mode}/forms

Retrieves the forms available in a study for the selected mode and form category. The response includes each form's ID, reference name, title, summary item details when item details are available, form category, and form subcategories.

Request

Path Parameters
Query Parameters
  • Optional form item type to exclude from returned item summaries.
    Allowed Values: [ "instructionalText" ]
    Example:
    instructionalText
  • Optional form category used to filter returned forms. Defaults to DCS.
    Default Value: DCS
    Allowed Values: [ "DCS", "NSF", "ALL" ]
    Example:
    DCS

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 : FormSummaryDto v3.0
Type: object
Title: FormSummaryDto v3.0
Summary information for a study form returned by the V3.0 query forms API.
Show Source
Example:
{
    "id":"2F9A6C7E1B8F4D56A23C9F3A0C7D4E11",
    "refname":"DEMOGRAPHICS",
    "title":"Demographics",
    "items":[
        {
            "id":"9F4A6C7E1B8F4D56A23C9F3A0C7D4E77",
            "refname":"AGE",
            "questionType":"numeric",
            "questionLabel":"Age"
        }
    ],
    "formCategory":"DataCollection",
    "formSubcategory":[
        "Screening"
    ]
}
Nested Schema : formSubcategory
Type: array
Form subcategories returned for the form.
Show Source
Example:
[
    "Screening"
]
Nested Schema : items
Type: array
Form item summaries.
Show Source
Example:
[
    {
        "id":"9F4A6C7E1B8F4D56A23C9F3A0C7D4E77",
        "refname":"AGE",
        "questionType":"numeric",
        "questionLabel":"Age"
    }
]
Nested Schema : FormItemSummaryDto v3.0
Type: object
Title: FormItemSummaryDto v3.0
Summary information for a form item returned by the V3.0 query forms API.
Show Source
  • Form item ID. UUID, 32-character uppercase hexadecimal string.
  • Display label for the question.
    Example: Age
  • Title: FormItemType
    Allowed Values: [ "text", "instructionalText", "numeric", "datetime", "choice", "questionGroup", "table", "label", "section", "existingData", "fileUpload" ]
    Question type for the form item.
    Example: numeric
  • Reference name for the form item.
    Example: AGE
  • Title: Sub item ids
    IDs of sub-items for a question group. Each ID is a UUID, 32-character uppercase hexadecimal string.
Example:
{
    "id":"9F4A6C7E1B8F4D56A23C9F3A0C7D4E77",
    "refname":"AGE",
    "questionType":"numeric",
    "questionLabel":"Age"
}
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
Title: ErrorResponseData
Error Response Details Information
Show Source
  • Object
    Title: Object
    Object with error details information.
  • Error code which is stored in ErrorCode enum. Example : C1-003
    Example: C1-003
  • Error message which is stored in service property file. Example : Cannot modify object after a study version has been approved
    Example: Cannot modify object after a study version has been approved
Nested Schema : Object
Type: object
Title: Object
Object with error details information.
Example:
{
    "field":"studyId",
    "reason":"Invalid value"
}
Back to Top