REST API - Create Survey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 10:53 AM
Hi
Im unable to find how to create a survey on REST API. If im correct i understand that surveys are stored in table asmt_assessment_instance table and that responses are stored in smt_assessment_instance_question table.
My issues
- Unable to POST parameter metric_type on table asmt_assessment
- Unable to POST parameter assessment_group on table asmt_assessment_instance
So in other words the survey flow should look like this.(Create assessment_group ASG, create assessment instance AINST, then create and fill the questions)
asmt_assessment -> asmt_assessment_instance -> asmt_assessment_instance_question
Can someone point me to the right direction on how to create a survey using REST API please
- 2,264 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2018 01:39 PM
I forgot to mention that my goal is to create and fill a survey from REST API. For using and external survey system and publish the results in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-23-2020 09:47 AM
Really late to this post, but I'm on the same journey and running into a similar issue.
I've gotten the same understanding you listed above as far as the process of completing a Risk Assessment via the API:
- Create the Risk Assessment Group (asmt_assessment)
- Create the Risk Assessment Instance (asmt_assessment_instance)
- Create the Risk Assessment Instance Questions (asmt_assessment_instance_question)
- Create the Risk Assessment Metric Results (asmt_metric_result)
But, you're correct, it looks like it's not possible to provide the metric_type when creating the asmt_assessment entity through the Table API.
Did you ever find a solution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-22-2021 10:09 PM
I have the same question