Get all questionnaire templates

get

/hcmRestApi/resources/11.13.18.05/questionnaireTemplates

Request

Query Parameters
  • This query parameter is used to fetch resources which are effective dated as of the specified start date. The value of this query parameter is a string having a date in yyyy-MM-dd format
  • When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
  • This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.

    Format: ?fields=Attribute1,Attribute2

    Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2
  • Used as a predefined finder to search the collection.

    Format ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    The following are the available finder names and corresponding finder variables

    • PrimaryKey Finds a questionnaire template that matches the specified primary key criteria.
      Finder Variables
      • QuestionnaireTemplateId; integer; Surrogate identifier for the questionnaire template.
  • This parameter restricts the number of resources returned inside the resource collection. If the limit exceeds the resource count then the framework will only return the available resources.
  • This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>

    Example:
    self,canonical
  • Used to define the starting position of the resource collection. If offset exceeds the resource count then no resources are returned. Default value is 0.
  • The resource item payload will be filtered in order to contain only data (no links section, for example).
  • This parameter orders a resource collection based on the specified fields. The parameter value is a comma-separated string of attribute names, each optionally followed by a colon and "asc" or "desc". Specify "asc" for ascending and "desc" for descending. The default value is "asc". For example, ?orderBy=field1:asc,field2:desc
  • This query parameter defines the where clause. The resource collection will be queried using the provided expressions. The value of this query parameter is one or more expressions. Example: ?q=Deptno>=10 and <= 30;Loc!=NY

    Format: ?q=expression1;expression2

    You can use these queryable attributes to filter this collection resource using the q query parameter:
    • CreatedBy; string; Name of the user who created the questionnaire template.
    • CreationDate; string; Date when the questionnaire template was created.
    • Editor; string; Person Identifier of the person having the privileges to edit the questionnaire template marked as private.
    • EditorPersonName; string; Name of the person with privileges to edit the questionnaire template marked as private.
    • EditorPersonNumber; string; Person number of the person with privileges to edit the questionnaire template that's marked private.
    • InUseFlag; boolean; Indicates whether the questionnaire template is used by any questionnaires. The default value is false.
    • InUseMeaning; string; Meaning of the In Use Code attribute that Indicates whether the questionnaire template is used by any questionnaire.
    • InstructionText; string; Instructions or additional information for the questionnaire template.
    • LastUpdateDate; string; Date when the questionnaire template was last updated.
    • LastUpdatedBy; string; Name of the user who last updated the questionnaire template.
    • PrivacyFlag; boolean; Indicates whether the questionnaire template is private. If a template is marked private, only the person specified by the owner attribute can edit the template. The default value is false.
    • PrivacyMeaning; string; Meaning of the privacy code indicating if the questionnaire template is marked private.
    • QuestionnaireTemplateId; integer; Surrogate identifier for the questionnaire template.
    • QuestionnaireTemplateName; string; Name of the questionnaire template.
    • ScoreQuestionnaireFlag; boolean; Indicates whether the questionnaire is scored. The default value is false.
    • Status; string; Status of the questionnaire template.
    • StatusMeaning; string; Meaning of the status code for the questionnaire template.
    • SubscriberCode; string; Code for the subscriber using the questionnaire template. Valid values are defined in the list questionnaireSubscribersLOV.
    • SubscriberId; integer; Surrogate identifier for the subscriber.
    • SubscriberName; string; Name of the subscriber using the questionnaire template.
    • VersionNumber; integer; Version number of the questionnaire template.
  • The resource collection representation will include the "estimated row count" when "?totalResults=true", otherwise the count is not included. The default value is "false".
Header Parameters
  • This header accepts a string value. The string is a semi-colon separated list of =. It is used to perform effective date range operations. The accepted parameters are RangeMode, RangeSpan, RangeStartDate, RangeEndDate, RangeStartSequence and RangeEndSequence. The parameter values are always strings. The possible values for RangeMode are SET_LOGICAL_START, SET_LOGICAL_END, END_DATE, SET_EFFECTIVE_START, SET_EFFECTIVE_END, REPLACE_CORRECTION, REPLACE_UPDATE, RECONCILE_CORRECTION, CORRECTION, RECONCILE_UPDATE, UPDATE, ZAP and DELETE_CHANGES. The possible values for RangeSpan are PHYSICAL_ROW_END_DATE and LOGICAL_ROW_END_DATE. The values for RangeStartDate and RangeEndDate have to be a string representation of a date in yyyy-MM-dd format. The value for RangeStartSequence and RangeEndSequence must be strings such that when parsed they yield positive integers.
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : questionnaireTemplates
Type: object
Show Source
Nested Schema : Items
Type: array
Title: Items
The items in the collection.
Show Source
Nested Schema : questionnaireTemplates-item-response
Type: object
Show Source
  • Title: Allow changes to format options
    Maximum Length: 30
    Default Value: false
    Indicates whether the format options can be changed in the questionnaire. The default value is false.
  • Title: Allow changes to instructions
    Maximum Length: 30
    Default Value: false
    Indicates whether the instructions can be changed in the questionnaire. The default value is false.
  • Title: Plain Text Box
    Indicates whether questions with plain text response type can be added to the questionnaire. The default value is false.
  • Title: Rich Text Box
    Indicates whether questions with rich text response type can be added to the questionnaire. The default value is false.
  • Title: Allow changes to sections
    Maximum Length: 30
    Default Value: false
    Indicates whether a section can be changed in the questionnaire. The default value is false.
  • Attachments
    Title: Attachments
    The attachments resource is used to view, create, and update attachments.
  • Title: Score Calculation Rule Code
    Read Only: true
    Maximum Length: 30
    Calculation rule code for questionnaires that are scored.
  • Title: Score Calculation Rule
    Read Only: true
    Maximum Length: 80
    Name of the score calculation rule for questionnaires that are scored.
  • Title: Check Box With Image
    Indicates whether questions with check box with image response type can be added to the questionnaire. The default value is true.
  • Title: Check Multiple Choices
    Indicates whether questions with multiple choice check box response type can be added to the questionnaire. The default value is true.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    Name of the user who created the questionnaire template.
  • Title: Creation Date
    Read Only: true
    Date when the questionnaire template was created.
  • Title: Description
    Read Only: true
    Maximum Length: 2000
    Description of the questionnaire template.
  • Title: Owner
    Read Only: true
    Maximum Length: 64
    Person Identifier of the person having the privileges to edit the questionnaire template marked as private.
  • Title: Person Name
    Read Only: true
    Maximum Length: 2000
    Name of the person with privileges to edit the questionnaire template marked as private.
  • Title: Person Number
    Read Only: true
    Maximum Length: 30
    Person number of the person with privileges to edit the questionnaire template that's marked private.
  • Title: Instruction Text
    Read Only: true
    Maximum Length: 4000
    Instructions or additional information for the questionnaire template.
  • Title: In Use Code
    Read Only: true
    Maximum Length: 30
    Default Value: false
    Indicates whether the questionnaire template is used by any questionnaires. The default value is false.
  • Title: In Use
    Read Only: true
    Maximum Length: 80
    Meaning of the In Use Code attribute that Indicates whether the questionnaire template is used by any questionnaire.
  • Title: Last Update Date
    Read Only: true
    Date when the questionnaire template was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    Name of the user who last updated the questionnaire template.
  • Links
  • Title: Maximum Possible Score
    Read Only: true
    Sum of the maximum possible scores of all questions that are included in the questionnaire template.
  • Title: Multiple Choices from List
    Indicates whether questions with multiple choice list response type can be added to the questionnaire.
  • Title: No Response
    Indicates whether questions with no response type can be added to the questionnaire. The default value is true.
  • Title: Privacy Code
    Read Only: true
    Maximum Length: 30
    Default Value: false
    Indicates whether the questionnaire template is private. If a template is marked private, only the person specified by the owner attribute can edit the template. The default value is false.
  • Title: Privacy
    Read Only: true
    Maximum Length: 80
    Meaning of the privacy code indicating if the questionnaire template is marked private.
  • Title: Questionnaire Template Id
    Read Only: true
    Surrogate identifier for the questionnaire template.
  • Title: Questionnaire Template Name
    Maximum Length: 240
    Name of the questionnaire template.
  • Title: Radio Button List
    Indicates whether questions with single choice radio button response type can be added to the questionnaire. The default value is true.
  • Title: Radio Button With Image
    Indicates whether questions with radio button with image response type can be added to the questionnaire. The default value is true.
  • Title: Score Questionnaire
    Read Only: true
    Maximum Length: 30
    Indicates whether the questionnaire is scored. The default value is false.
  • Title: Section Order Code
    Read Only: true
    Maximum Length: 30
    Default Value: S
    Code that shows the ordering sequence of the questionnaire sections.
  • Title: Section Order
    Read Only: true
    Maximum Length: 80
    Meaning of the section order code indicating the sequencing order of the questionnaire sections.
  • Title: Section Presentation Code
    Read Only: true
    Maximum Length: 30
    Default Value: S
    Code that shows if the questionnaire is presented as stacked regions or without sections.
  • Title: Section Presentation
    Read Only: true
    Maximum Length: 80
    Meaning of the section presentation code indicating the presentation of sections of the questionnaire.
  • Sections
    Title: Sections
    The sections resource is a child resource of the questionnaireTemplates resource that includes the details of the sections defined in the questionnaire template.
  • Title: Single Choice from List
    Indicates whether questions with single choice list response type can be added to the questionnaire. The default value is true.
  • Title: Status Code
    Read Only: true
    Maximum Length: 30
    Default Value: D
    Status of the questionnaire template.
  • Title: Status
    Read Only: true
    Maximum Length: 80
    Meaning of the status code for the questionnaire template.
  • Title: Subscriber Code
    Read Only: true
    Maximum Length: 30
    Code for the subscriber using the questionnaire template. Valid values are defined in the list questionnaireSubscribersLOV.
  • Title: Subscriber Id
    Read Only: true
    Surrogate identifier for the subscriber.
  • Title: Subscriber Name
    Read Only: true
    Maximum Length: 240
    Name of the subscriber using the questionnaire template.
  • Title: Version Description
    Read Only: true
    Maximum Length: 2000
    Description provided when a new version of a questionnaire template is created.
  • Title: Version Number
    Read Only: true
    Default Value: 1
    Version number of the questionnaire template.
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Sections
Type: array
Title: Sections
The sections resource is a child resource of the questionnaireTemplates resource that includes the details of the sections defined in the questionnaire template.
Show Source
Nested Schema : questionnaireTemplates-attachments-item-response
Type: object
Show Source
Nested Schema : questionnaireTemplates-sections-item-response
Type: object
Show Source
  • Title: Allow Additional Questions
    Maximum Length: 30
    Default Value: false
    Indicates whether additional questions can be added to the questionnaire section when a response is requested. The default value is false.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    Name of the user who created the section.
  • Title: Creation Date
    Read Only: true
    Date when the section was created.
  • Title: Description
    Maximum Length: 2000
    Description of the questionnaire section.
  • Title: Introduction
    Maximum Length: 2000
    Introduction text for the questionnaire section.
  • Title: Last Update Date
    Read Only: true
    Date when the section was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    Name of the user who last updated the section.
  • Links
  • Title: Required
    Maximum Length: 30
    Default Value: false
    Indicates whether the questionnaire section is mandatory. The default value is false.
  • Title: Question Order Code
    Maximum Length: 30
    Default Value: V
    Indicates the ordering sequence for the questions in a questionnaire section.
  • Title: Question Order
    Read Only: true
    Maximum Length: 80
    Meaning of the question order code indicating the ordering sequence for the questions in a questionnaire section.
  • Questions
    Title: Questions
    The questions resource is a child of the questionnaireTemplates resource. It includes details of the questions included in a section of the questionnaire template.
  • Title: Response Order Code
    Maximum Length: 30
    Default Value: V
    Indicates the ordering sequence for the answer choices in questions included in a questionnaire section.
  • Title: Response Order
    Read Only: true
    Maximum Length: 80
    Meaning of the response order code indicating the ordering sequence for the answer choices in questions.
  • Title: Section Id
    Read Only: true
    Surrogate identifier for the section in a questionnaire template.
  • Title: Section Name
    Maximum Length: 240
    Name of the questionnaire section.
  • Title: Section Sequence Number
    Sequence number for a section in a questionnaire template.
Nested Schema : Questions
Type: array
Title: Questions
The questions resource is a child of the questionnaireTemplates resource. It includes details of the questions included in a section of the questionnaire template.
Show Source
Nested Schema : questionnaireTemplates-sections-questions-item-response
Type: object
Show Source
  • Title: Allow Additional Comments
    Read Only: true
    Maximum Length: 20
    Default Value: false
    Indicates whether a participant can provide additional comments while responding to a question. Valid values are Y and N. The default value is N.
  • Answers
    Title: Answers
    The answers resource is a child of the questionnaireTemplates resource. It includes details of the answer choices defined for a question that's included in a questionnaire template section.
  • Title: Question Code
    Read Only: true
    Maximum Length: 240
    Question code for the controlling question that determines if the question is to be presented to the participant to respond. Valid values are defined in the list questionsLOV.
  • Title: Controlling Question Id
    Read Only: true
    Surrogate identifier for the controlling question.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    Name of the user who added the question to the questionnaire template section.
  • Title: Creation Date
    Read Only: true
    Date when the question was added to the questionnaire template section.
  • Title: Instruction Text
    Read Only: true
    Maximum Length: 4000
    Instructions or additional information for the question.
  • Title: Keep with Previous
    Maximum Length: 30
    Default Value: false
    Indicates whether the question is always paired with the previous question even when the question order is randomized. The default value is false.
  • Title: Last Update Date
    Read Only: true
    Date when the question was last updated in the questionnaire template section.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    Name of the user who last updated the question in the questionnaire template section.
  • Links
  • Title: Lock Question
    Maximum Length: 8
    Default Value: false
    Indicates whether the question can be removed or modified in the questionnaire. The default value is false.
  • Title: Mandatory
    Maximum Length: 30
    Default Value: false
    Indicates whether the response to this question is mandatory. Participants can't skip this question without an answer. The default value is false.
  • Title: Maximum Possible Score
    Read Only: true
    Maximum possible score which is the sum of the maximum possible scores of the possible answer choices. This can be zero if none of the answer choices have a positive score defined.
  • Title: Question Code
    Read Only: true
    Maximum Length: 240
    Question code for the question used in the questionnaire template section. Valid values are defined in the list questionsLOV.
  • Title: Question Id
    Read Only: true
    Surrogate identifier for the question.
  • Title: Questionnaire Question Id
    Read Only: true
    Surrogate identifier of the question in the questionnaire.
  • Title: Question Text
    Read Only: true
    Maximum Length: 2000
    Question text for the question.
  • Title: Question Type Code
    Read Only: true
    Maximum Length: 30
    Default Value: TEXT
    Question type code indicating the type of the question.
  • Title: Question Type
    Read Only: true
    Maximum Length: 80
    Meaning of the question type code.
  • Title: Version Number
    Version number of the question used in the questionnaire template section.
  • Title: Response Order Code
    Read Only: true
    Maximum Length: 30
    Code that shows whether the question is enabled for random order. Possible values are Random to randomize the answer choices and Vertical to present the answer choices in the defined sequence.
  • Title: Response Order
    Read Only: true
    Maximum Length: 80
    Meaning of the response order code.
  • Title: Response Type Code
    Response type for the question when presented to the participant. Valid values are defined in the questionnaireResponseTypesLOV.
  • Title: Response Type
    Read Only: true
    Meaning of the response type code.
  • Title: Sample Size
    Read Only: true
    Defines the number of questions presented to the participant of a questionnaire, when the question order is set to random.
  • Title: Sequence Number
    Sequence number of the question in a questionnaire template section.
Nested Schema : Answers
Type: array
Title: Answers
The answers resource is a child of the questionnaireTemplates resource. It includes details of the answer choices defined for a question that's included in a questionnaire template section.
Show Source
Nested Schema : questionnaireTemplates-sections-questions-answers-item-response
Type: object
Show Source
Back to Top