github.com/twilio/twilio-go@v1.20.1/rest/flex/v1/docs/InsightsQualityManagementQuestionnairesApi.md (about) 1 # InsightsQualityManagementQuestionnairesApi 2 3 All URIs are relative to *https://flex-api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateInsightsQuestionnaires**](InsightsQualityManagementQuestionnairesApi.md#CreateInsightsQuestionnaires) | **Post** /v1/Insights/QualityManagement/Questionnaires | 8 [**DeleteInsightsQuestionnaires**](InsightsQualityManagementQuestionnairesApi.md#DeleteInsightsQuestionnaires) | **Delete** /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | 9 [**FetchInsightsQuestionnaires**](InsightsQualityManagementQuestionnairesApi.md#FetchInsightsQuestionnaires) | **Get** /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | 10 [**ListInsightsQuestionnaires**](InsightsQualityManagementQuestionnairesApi.md#ListInsightsQuestionnaires) | **Get** /v1/Insights/QualityManagement/Questionnaires | 11 [**UpdateInsightsQuestionnaires**](InsightsQualityManagementQuestionnairesApi.md#UpdateInsightsQuestionnaires) | **Post** /v1/Insights/QualityManagement/Questionnaires/{QuestionnaireSid} | 12 13 14 15 ## CreateInsightsQuestionnaires 16 17 > FlexV1InsightsQuestionnaires CreateInsightsQuestionnaires(ctx, optional) 18 19 20 21 To create a Questionnaire 22 23 ### Path Parameters 24 25 This endpoint does not need any path parameter. 26 27 ### Other Parameters 28 29 Other parameters are passed through a pointer to a CreateInsightsQuestionnairesParams struct 30 31 32 Name | Type | Description 33 ------------- | ------------- | ------------- 34 **Authorization** | **string** | The Authorization HTTP request header 35 **Name** | **string** | The name of this questionnaire 36 **Description** | **string** | The description of this questionnaire 37 **Active** | **bool** | The flag to enable or disable questionnaire 38 **QuestionSids** | **[]string** | The list of questions sids under a questionnaire 39 40 ### Return type 41 42 [**FlexV1InsightsQuestionnaires**](FlexV1InsightsQuestionnaires.md) 43 44 ### Authorization 45 46 [accountSid_authToken](../README.md#accountSid_authToken) 47 48 ### HTTP request headers 49 50 - **Content-Type**: application/x-www-form-urlencoded 51 - **Accept**: application/json 52 53 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 54 [[Back to Model list]](../README.md#documentation-for-models) 55 [[Back to README]](../README.md) 56 57 58 ## DeleteInsightsQuestionnaires 59 60 > DeleteInsightsQuestionnaires(ctx, QuestionnaireSidoptional) 61 62 63 64 To delete the questionnaire 65 66 ### Path Parameters 67 68 69 Name | Type | Description 70 ------------- | ------------- | ------------- 71 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 72 **QuestionnaireSid** | **string** | The SID of the questionnaire 73 74 ### Other Parameters 75 76 Other parameters are passed through a pointer to a DeleteInsightsQuestionnairesParams struct 77 78 79 Name | Type | Description 80 ------------- | ------------- | ------------- 81 **Authorization** | **string** | The Authorization HTTP request header 82 83 ### Return type 84 85 (empty response body) 86 87 ### Authorization 88 89 [accountSid_authToken](../README.md#accountSid_authToken) 90 91 ### HTTP request headers 92 93 - **Content-Type**: Not defined 94 - **Accept**: Not defined 95 96 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 97 [[Back to Model list]](../README.md#documentation-for-models) 98 [[Back to README]](../README.md) 99 100 101 ## FetchInsightsQuestionnaires 102 103 > FlexV1InsightsQuestionnaires FetchInsightsQuestionnaires(ctx, QuestionnaireSidoptional) 104 105 106 107 To get the Questionnaire Detail 108 109 ### Path Parameters 110 111 112 Name | Type | Description 113 ------------- | ------------- | ------------- 114 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 115 **QuestionnaireSid** | **string** | The SID of the questionnaire 116 117 ### Other Parameters 118 119 Other parameters are passed through a pointer to a FetchInsightsQuestionnairesParams struct 120 121 122 Name | Type | Description 123 ------------- | ------------- | ------------- 124 **Authorization** | **string** | The Authorization HTTP request header 125 126 ### Return type 127 128 [**FlexV1InsightsQuestionnaires**](FlexV1InsightsQuestionnaires.md) 129 130 ### Authorization 131 132 [accountSid_authToken](../README.md#accountSid_authToken) 133 134 ### HTTP request headers 135 136 - **Content-Type**: Not defined 137 - **Accept**: application/json 138 139 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 140 [[Back to Model list]](../README.md#documentation-for-models) 141 [[Back to README]](../README.md) 142 143 144 ## ListInsightsQuestionnaires 145 146 > []FlexV1InsightsQuestionnaires ListInsightsQuestionnaires(ctx, optional) 147 148 149 150 To get all questionnaires with questions 151 152 ### Path Parameters 153 154 This endpoint does not need any path parameter. 155 156 ### Other Parameters 157 158 Other parameters are passed through a pointer to a ListInsightsQuestionnairesParams struct 159 160 161 Name | Type | Description 162 ------------- | ------------- | ------------- 163 **Authorization** | **string** | The Authorization HTTP request header 164 **IncludeInactive** | **bool** | Flag indicating whether to include inactive questionnaires or not 165 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 166 **Limit** | **int** | Max number of records to return. 167 168 ### Return type 169 170 [**[]FlexV1InsightsQuestionnaires**](FlexV1InsightsQuestionnaires.md) 171 172 ### Authorization 173 174 [accountSid_authToken](../README.md#accountSid_authToken) 175 176 ### HTTP request headers 177 178 - **Content-Type**: Not defined 179 - **Accept**: application/json 180 181 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 182 [[Back to Model list]](../README.md#documentation-for-models) 183 [[Back to README]](../README.md) 184 185 186 ## UpdateInsightsQuestionnaires 187 188 > FlexV1InsightsQuestionnaires UpdateInsightsQuestionnaires(ctx, QuestionnaireSidoptional) 189 190 191 192 To update the questionnaire 193 194 ### Path Parameters 195 196 197 Name | Type | Description 198 ------------- | ------------- | ------------- 199 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 200 **QuestionnaireSid** | **string** | The SID of the questionnaire 201 202 ### Other Parameters 203 204 Other parameters are passed through a pointer to a UpdateInsightsQuestionnairesParams struct 205 206 207 Name | Type | Description 208 ------------- | ------------- | ------------- 209 **Authorization** | **string** | The Authorization HTTP request header 210 **Active** | **bool** | The flag to enable or disable questionnaire 211 **Name** | **string** | The name of this questionnaire 212 **Description** | **string** | The description of this questionnaire 213 **QuestionSids** | **[]string** | The list of questions sids under a questionnaire 214 215 ### Return type 216 217 [**FlexV1InsightsQuestionnaires**](FlexV1InsightsQuestionnaires.md) 218 219 ### Authorization 220 221 [accountSid_authToken](../README.md#accountSid_authToken) 222 223 ### HTTP request headers 224 225 - **Content-Type**: application/x-www-form-urlencoded 226 - **Accept**: application/json 227 228 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 229 [[Back to Model list]](../README.md#documentation-for-models) 230 [[Back to README]](../README.md) 231