github.com/twilio/twilio-go@v1.20.1/rest/flex/v1/docs/InsightsQualityManagementQuestionsApi.md (about) 1 # InsightsQualityManagementQuestionsApi 2 3 All URIs are relative to *https://flex-api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**CreateInsightsQuestionnairesQuestion**](InsightsQualityManagementQuestionsApi.md#CreateInsightsQuestionnairesQuestion) | **Post** /v1/Insights/QualityManagement/Questions | 8 [**DeleteInsightsQuestionnairesQuestion**](InsightsQualityManagementQuestionsApi.md#DeleteInsightsQuestionnairesQuestion) | **Delete** /v1/Insights/QualityManagement/Questions/{QuestionSid} | 9 [**ListInsightsQuestionnairesQuestion**](InsightsQualityManagementQuestionsApi.md#ListInsightsQuestionnairesQuestion) | **Get** /v1/Insights/QualityManagement/Questions | 10 [**UpdateInsightsQuestionnairesQuestion**](InsightsQualityManagementQuestionsApi.md#UpdateInsightsQuestionnairesQuestion) | **Post** /v1/Insights/QualityManagement/Questions/{QuestionSid} | 11 12 13 14 ## CreateInsightsQuestionnairesQuestion 15 16 > FlexV1InsightsQuestionnairesQuestion CreateInsightsQuestionnairesQuestion(ctx, optional) 17 18 19 20 To create a question for a Category 21 22 ### Path Parameters 23 24 This endpoint does not need any path parameter. 25 26 ### Other Parameters 27 28 Other parameters are passed through a pointer to a CreateInsightsQuestionnairesQuestionParams struct 29 30 31 Name | Type | Description 32 ------------- | ------------- | ------------- 33 **Authorization** | **string** | The Authorization HTTP request header 34 **CategorySid** | **string** | The SID of the category 35 **Question** | **string** | The question. 36 **AnswerSetId** | **string** | The answer_set for the question. 37 **AllowNa** | **bool** | The flag to enable for disable NA for answer. 38 **Description** | **string** | The description for the question. 39 40 ### Return type 41 42 [**FlexV1InsightsQuestionnairesQuestion**](FlexV1InsightsQuestionnairesQuestion.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 ## DeleteInsightsQuestionnairesQuestion 59 60 > DeleteInsightsQuestionnairesQuestion(ctx, QuestionSidoptional) 61 62 63 64 65 66 ### Path Parameters 67 68 69 Name | Type | Description 70 ------------- | ------------- | ------------- 71 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 72 **QuestionSid** | **string** | The SID of the question 73 74 ### Other Parameters 75 76 Other parameters are passed through a pointer to a DeleteInsightsQuestionnairesQuestionParams 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 ## ListInsightsQuestionnairesQuestion 102 103 > []FlexV1InsightsQuestionnairesQuestion ListInsightsQuestionnairesQuestion(ctx, optional) 104 105 106 107 To get all the question for the given categories 108 109 ### Path Parameters 110 111 This endpoint does not need any path parameter. 112 113 ### Other Parameters 114 115 Other parameters are passed through a pointer to a ListInsightsQuestionnairesQuestionParams struct 116 117 118 Name | Type | Description 119 ------------- | ------------- | ------------- 120 **Authorization** | **string** | The Authorization HTTP request header 121 **CategorySid** | **[]string** | The list of category SIDs 122 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 123 **Limit** | **int** | Max number of records to return. 124 125 ### Return type 126 127 [**[]FlexV1InsightsQuestionnairesQuestion**](FlexV1InsightsQuestionnairesQuestion.md) 128 129 ### Authorization 130 131 [accountSid_authToken](../README.md#accountSid_authToken) 132 133 ### HTTP request headers 134 135 - **Content-Type**: Not defined 136 - **Accept**: application/json 137 138 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 139 [[Back to Model list]](../README.md#documentation-for-models) 140 [[Back to README]](../README.md) 141 142 143 ## UpdateInsightsQuestionnairesQuestion 144 145 > FlexV1InsightsQuestionnairesQuestion UpdateInsightsQuestionnairesQuestion(ctx, QuestionSidoptional) 146 147 148 149 To update the question 150 151 ### Path Parameters 152 153 154 Name | Type | Description 155 ------------- | ------------- | ------------- 156 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 157 **QuestionSid** | **string** | The SID of the question 158 159 ### Other Parameters 160 161 Other parameters are passed through a pointer to a UpdateInsightsQuestionnairesQuestionParams struct 162 163 164 Name | Type | Description 165 ------------- | ------------- | ------------- 166 **Authorization** | **string** | The Authorization HTTP request header 167 **AllowNa** | **bool** | The flag to enable for disable NA for answer. 168 **CategorySid** | **string** | The SID of the category 169 **Question** | **string** | The question. 170 **Description** | **string** | The description for the question. 171 **AnswerSetId** | **string** | The answer_set for the question. 172 173 ### Return type 174 175 [**FlexV1InsightsQuestionnairesQuestion**](FlexV1InsightsQuestionnairesQuestion.md) 176 177 ### Authorization 178 179 [accountSid_authToken](../README.md#accountSid_authToken) 180 181 ### HTTP request headers 182 183 - **Content-Type**: application/x-www-form-urlencoded 184 - **Accept**: application/json 185 186 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 187 [[Back to Model list]](../README.md#documentation-for-models) 188 [[Back to README]](../README.md) 189