|
| 1 | +# AiSolutionControllerApi |
| 2 | + |
| 3 | +`ThingsboardClient` methods: |
| 4 | + |
| 5 | +``` |
| 6 | +com.fasterxml.jackson.databind.JsonNode chat(@Nonnull UUID solutionId, @Nonnull SolutionStep step, @Nonnull String body) // chat |
| 7 | +void clearStep(@Nonnull UUID solutionId, @Nonnull SolutionStep step) // clearStep |
| 8 | +com.fasterxml.jackson.databind.JsonNode createSolution(@Nonnull UUID solutionId) // createSolution |
| 9 | +void deleteSolution(@Nonnull UUID solutionId) // deleteSolution |
| 10 | +com.fasterxml.jackson.databind.JsonNode exportSolution(@Nonnull UUID solutionId) // exportSolution |
| 11 | +com.fasterxml.jackson.databind.JsonNode getSolution(@Nonnull UUID solutionId) // getSolution |
| 12 | +com.fasterxml.jackson.databind.JsonNode getSolutions() // getSolutions |
| 13 | +com.fasterxml.jackson.databind.JsonNode importSolution(@Nonnull Object body) // importSolution |
| 14 | +com.fasterxml.jackson.databind.JsonNode installSolution(@Nonnull UUID solutionId, @Nonnull String xAuthorization) // installSolution |
| 15 | +com.fasterxml.jackson.databind.JsonNode startNew() // startNew |
| 16 | +com.fasterxml.jackson.databind.JsonNode uninstallSolution(@Nonnull UUID solutionId, @Nonnull String xAuthorization) // uninstallSolution |
| 17 | +com.fasterxml.jackson.databind.JsonNode updateData(@Nonnull UUID solutionId, @Nonnull String dataKey, @Nonnull Object body) // updateData |
| 18 | +``` |
| 19 | + |
| 20 | + |
| 21 | +## chat |
| 22 | + |
| 23 | +``` |
| 24 | +com.fasterxml.jackson.databind.JsonNode chat(@Nonnull UUID solutionId, @Nonnull SolutionStep step, @Nonnull String body) |
| 25 | +``` |
| 26 | + |
| 27 | +**POST** `/api/ai/solution/{solutionId}/{step}/chat` |
| 28 | + |
| 29 | +chat |
| 30 | + |
| 31 | + |
| 32 | +### Parameters |
| 33 | + |
| 34 | +| Name | Type | Description | Notes | |
| 35 | +|------------- | ------------- | ------------- | -------------| |
| 36 | +| **solutionId** | **UUID** | | | |
| 37 | +| **step** | **SolutionStep** | | [enum: INITIAL_CONFIGURATION, DASHBOARDS_CONFIGURATION] | |
| 38 | +| **body** | **String** | | | |
| 39 | + |
| 40 | +### Return type |
| 41 | + |
| 42 | +**com.fasterxml.jackson.databind.JsonNode** |
| 43 | + |
| 44 | + |
| 45 | +## clearStep |
| 46 | + |
| 47 | +``` |
| 48 | +void clearStep(@Nonnull UUID solutionId, @Nonnull SolutionStep step) |
| 49 | +``` |
| 50 | + |
| 51 | +**DELETE** `/api/ai/solution/{solutionId}/{step}/clear` |
| 52 | + |
| 53 | +clearStep |
| 54 | + |
| 55 | + |
| 56 | +### Parameters |
| 57 | + |
| 58 | +| Name | Type | Description | Notes | |
| 59 | +|------------- | ------------- | ------------- | -------------| |
| 60 | +| **solutionId** | **UUID** | | | |
| 61 | +| **step** | **SolutionStep** | | [enum: INITIAL_CONFIGURATION, DASHBOARDS_CONFIGURATION] | |
| 62 | + |
| 63 | +### Return type |
| 64 | + |
| 65 | +null (empty response body) |
| 66 | + |
| 67 | + |
| 68 | +## createSolution |
| 69 | + |
| 70 | +``` |
| 71 | +com.fasterxml.jackson.databind.JsonNode createSolution(@Nonnull UUID solutionId) |
| 72 | +``` |
| 73 | + |
| 74 | +**POST** `/api/ai/solution/{solutionId}/create` |
| 75 | + |
| 76 | +createSolution |
| 77 | + |
| 78 | + |
| 79 | +### Parameters |
| 80 | + |
| 81 | +| Name | Type | Description | Notes | |
| 82 | +|------------- | ------------- | ------------- | -------------| |
| 83 | +| **solutionId** | **UUID** | | | |
| 84 | + |
| 85 | +### Return type |
| 86 | + |
| 87 | +**com.fasterxml.jackson.databind.JsonNode** |
| 88 | + |
| 89 | + |
| 90 | +## deleteSolution |
| 91 | + |
| 92 | +``` |
| 93 | +void deleteSolution(@Nonnull UUID solutionId) |
| 94 | +``` |
| 95 | + |
| 96 | +**DELETE** `/api/ai/solution/{solutionId}` |
| 97 | + |
| 98 | +deleteSolution |
| 99 | + |
| 100 | + |
| 101 | +### Parameters |
| 102 | + |
| 103 | +| Name | Type | Description | Notes | |
| 104 | +|------------- | ------------- | ------------- | -------------| |
| 105 | +| **solutionId** | **UUID** | | | |
| 106 | + |
| 107 | +### Return type |
| 108 | + |
| 109 | +null (empty response body) |
| 110 | + |
| 111 | + |
| 112 | +## exportSolution |
| 113 | + |
| 114 | +``` |
| 115 | +com.fasterxml.jackson.databind.JsonNode exportSolution(@Nonnull UUID solutionId) |
| 116 | +``` |
| 117 | + |
| 118 | +**GET** `/api/ai/solution/{solutionId}/export` |
| 119 | + |
| 120 | +exportSolution |
| 121 | + |
| 122 | + |
| 123 | +### Parameters |
| 124 | + |
| 125 | +| Name | Type | Description | Notes | |
| 126 | +|------------- | ------------- | ------------- | -------------| |
| 127 | +| **solutionId** | **UUID** | | | |
| 128 | + |
| 129 | +### Return type |
| 130 | + |
| 131 | +**com.fasterxml.jackson.databind.JsonNode** |
| 132 | + |
| 133 | + |
| 134 | +## getSolution |
| 135 | + |
| 136 | +``` |
| 137 | +com.fasterxml.jackson.databind.JsonNode getSolution(@Nonnull UUID solutionId) |
| 138 | +``` |
| 139 | + |
| 140 | +**GET** `/api/ai/solution/{solutionId}` |
| 141 | + |
| 142 | +getSolution |
| 143 | + |
| 144 | + |
| 145 | +### Parameters |
| 146 | + |
| 147 | +| Name | Type | Description | Notes | |
| 148 | +|------------- | ------------- | ------------- | -------------| |
| 149 | +| **solutionId** | **UUID** | | | |
| 150 | + |
| 151 | +### Return type |
| 152 | + |
| 153 | +**com.fasterxml.jackson.databind.JsonNode** |
| 154 | + |
| 155 | + |
| 156 | +## getSolutions |
| 157 | + |
| 158 | +``` |
| 159 | +com.fasterxml.jackson.databind.JsonNode getSolutions() |
| 160 | +``` |
| 161 | + |
| 162 | +**GET** `/api/ai/solution/infos` |
| 163 | + |
| 164 | +getSolutions |
| 165 | + |
| 166 | +### Return type |
| 167 | + |
| 168 | +**com.fasterxml.jackson.databind.JsonNode** |
| 169 | + |
| 170 | + |
| 171 | +## importSolution |
| 172 | + |
| 173 | +``` |
| 174 | +com.fasterxml.jackson.databind.JsonNode importSolution(@Nonnull Object body) |
| 175 | +``` |
| 176 | + |
| 177 | +**POST** `/api/ai/solution/import` |
| 178 | + |
| 179 | +importSolution |
| 180 | + |
| 181 | + |
| 182 | +### Parameters |
| 183 | + |
| 184 | +| Name | Type | Description | Notes | |
| 185 | +|------------- | ------------- | ------------- | -------------| |
| 186 | +| **body** | **Object** | | | |
| 187 | + |
| 188 | +### Return type |
| 189 | + |
| 190 | +**com.fasterxml.jackson.databind.JsonNode** |
| 191 | + |
| 192 | + |
| 193 | +## installSolution |
| 194 | + |
| 195 | +``` |
| 196 | +com.fasterxml.jackson.databind.JsonNode installSolution(@Nonnull UUID solutionId, @Nonnull String xAuthorization) |
| 197 | +``` |
| 198 | + |
| 199 | +**POST** `/api/ai/solution/{solutionId}/install` |
| 200 | + |
| 201 | +installSolution |
| 202 | + |
| 203 | + |
| 204 | +### Parameters |
| 205 | + |
| 206 | +| Name | Type | Description | Notes | |
| 207 | +|------------- | ------------- | ------------- | -------------| |
| 208 | +| **solutionId** | **UUID** | | | |
| 209 | +| **xAuthorization** | **String** | | | |
| 210 | + |
| 211 | +### Return type |
| 212 | + |
| 213 | +**com.fasterxml.jackson.databind.JsonNode** |
| 214 | + |
| 215 | + |
| 216 | +## startNew |
| 217 | + |
| 218 | +``` |
| 219 | +com.fasterxml.jackson.databind.JsonNode startNew() |
| 220 | +``` |
| 221 | + |
| 222 | +**POST** `/api/ai/solution/start` |
| 223 | + |
| 224 | +startNew |
| 225 | + |
| 226 | +### Return type |
| 227 | + |
| 228 | +**com.fasterxml.jackson.databind.JsonNode** |
| 229 | + |
| 230 | + |
| 231 | +## uninstallSolution |
| 232 | + |
| 233 | +``` |
| 234 | +com.fasterxml.jackson.databind.JsonNode uninstallSolution(@Nonnull UUID solutionId, @Nonnull String xAuthorization) |
| 235 | +``` |
| 236 | + |
| 237 | +**DELETE** `/api/ai/solution/{solutionId}/uninstall` |
| 238 | + |
| 239 | +uninstallSolution |
| 240 | + |
| 241 | + |
| 242 | +### Parameters |
| 243 | + |
| 244 | +| Name | Type | Description | Notes | |
| 245 | +|------------- | ------------- | ------------- | -------------| |
| 246 | +| **solutionId** | **UUID** | | | |
| 247 | +| **xAuthorization** | **String** | | | |
| 248 | + |
| 249 | +### Return type |
| 250 | + |
| 251 | +**com.fasterxml.jackson.databind.JsonNode** |
| 252 | + |
| 253 | + |
| 254 | +## updateData |
| 255 | + |
| 256 | +``` |
| 257 | +com.fasterxml.jackson.databind.JsonNode updateData(@Nonnull UUID solutionId, @Nonnull String dataKey, @Nonnull Object body) |
| 258 | +``` |
| 259 | + |
| 260 | +**PUT** `/api/ai/solution/{solutionId}/{dataKey}` |
| 261 | + |
| 262 | +updateData |
| 263 | + |
| 264 | + |
| 265 | +### Parameters |
| 266 | + |
| 267 | +| Name | Type | Description | Notes | |
| 268 | +|------------- | ------------- | ------------- | -------------| |
| 269 | +| **solutionId** | **UUID** | | | |
| 270 | +| **dataKey** | **String** | | | |
| 271 | +| **body** | **Object** | | | |
| 272 | + |
| 273 | +### Return type |
| 274 | + |
| 275 | +**com.fasterxml.jackson.databind.JsonNode** |
| 276 | + |
0 commit comments