trieve_ruby_client 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +240 -0
  5. data/Rakefile +10 -0
  6. data/docs/AddChunkToGroupData.md +18 -0
  7. data/docs/ApiKeyDTO.md +28 -0
  8. data/docs/AuthApi.md +274 -0
  9. data/docs/BookmarkData.md +22 -0
  10. data/docs/BookmarkGroupResult.md +20 -0
  11. data/docs/ChatMessageProxy.md +20 -0
  12. data/docs/ChunkApi.md +955 -0
  13. data/docs/ChunkFilter.md +22 -0
  14. data/docs/ChunkGroup.md +30 -0
  15. data/docs/ChunkGroupAndFile.md +32 -0
  16. data/docs/ChunkGroupApi.md +1262 -0
  17. data/docs/ChunkMetadata.md +42 -0
  18. data/docs/ChunkMetadataWithFileData.md +44 -0
  19. data/docs/ClientDatasetConfiguration.md +38 -0
  20. data/docs/CreateChunkData.md +42 -0
  21. data/docs/CreateChunkGroupData.md +22 -0
  22. data/docs/CreateDatasetRequest.md +24 -0
  23. data/docs/CreateMessageData.md +28 -0
  24. data/docs/CreateOrganizationData.md +18 -0
  25. data/docs/CreateTopicData.md +22 -0
  26. data/docs/Dataset.md +30 -0
  27. data/docs/DatasetAndUsage.md +20 -0
  28. data/docs/DatasetApi.md +480 -0
  29. data/docs/DatasetDTO.md +28 -0
  30. data/docs/DatasetUsageCount.md +22 -0
  31. data/docs/DeleteDatasetRequest.md +18 -0
  32. data/docs/DeleteTopicData.md +18 -0
  33. data/docs/DeleteUserApiKeyRequest.md +18 -0
  34. data/docs/EditMessageData.md +30 -0
  35. data/docs/ErrorResponseBody.md +18 -0
  36. data/docs/Event.md +28 -0
  37. data/docs/EventReturn.md +20 -0
  38. data/docs/EventsApi.md +86 -0
  39. data/docs/FieldCondition.md +22 -0
  40. data/docs/File.md +36 -0
  41. data/docs/FileApi.md +326 -0
  42. data/docs/FileDTO.md +32 -0
  43. data/docs/GenerateChunksRequest.md +26 -0
  44. data/docs/GetGroupsForChunksData.md +18 -0
  45. data/docs/GroupData.md +20 -0
  46. data/docs/GroupScoreChunkDTO.md +20 -0
  47. data/docs/HealthApi.md +66 -0
  48. data/docs/InvitationApi.md +85 -0
  49. data/docs/InvitationData.md +26 -0
  50. data/docs/MatchCondition.md +49 -0
  51. data/docs/Message.md +38 -0
  52. data/docs/MessageApi.md +322 -0
  53. data/docs/Organization.md +26 -0
  54. data/docs/OrganizationApi.md +479 -0
  55. data/docs/OrganizationUsageCount.md +28 -0
  56. data/docs/Range.md +24 -0
  57. data/docs/ReccomendGroupChunksRequest.md +30 -0
  58. data/docs/RecommendChunksRequest.md +28 -0
  59. data/docs/RegenerateMessageData.md +26 -0
  60. data/docs/ReturnQueuedChunk.md +20 -0
  61. data/docs/ScoreChunkDTO.md +20 -0
  62. data/docs/SearchChunkData.md +38 -0
  63. data/docs/SearchChunkQueryResponseBody.md +20 -0
  64. data/docs/SearchGroupsResult.md +22 -0
  65. data/docs/SearchOverGroupsData.md +36 -0
  66. data/docs/SearchOverGroupsResponseBody.md +20 -0
  67. data/docs/SearchWithinGroupData.md +40 -0
  68. data/docs/SetUserApiKeyRequest.md +20 -0
  69. data/docs/SetUserApiKeyResponse.md +18 -0
  70. data/docs/SlimGroup.md +24 -0
  71. data/docs/SlimUser.md +32 -0
  72. data/docs/StripeApi.md +285 -0
  73. data/docs/StripePlan.md +38 -0
  74. data/docs/StripeSubscription.md +30 -0
  75. data/docs/SuggestedQueriesRequest.md +18 -0
  76. data/docs/SuggestedQueriesResponse.md +18 -0
  77. data/docs/Topic.md +30 -0
  78. data/docs/TopicApi.md +321 -0
  79. data/docs/UpdateChunkByTrackingIdData.md +32 -0
  80. data/docs/UpdateChunkData.md +34 -0
  81. data/docs/UpdateChunkGroupData.md +24 -0
  82. data/docs/UpdateDatasetRequest.md +24 -0
  83. data/docs/UpdateGroupByTrackingIDData.md +22 -0
  84. data/docs/UpdateOrganizationData.md +20 -0
  85. data/docs/UpdateTopicData.md +20 -0
  86. data/docs/UpdateUserData.md +30 -0
  87. data/docs/UploadFileData.md +34 -0
  88. data/docs/UploadFileResult.md +18 -0
  89. data/docs/UserApi.md +238 -0
  90. data/docs/UserOrganization.md +28 -0
  91. data/git_push.sh +57 -0
  92. data/lib/trieve_ruby_client/api/auth_api.rb +262 -0
  93. data/lib/trieve_ruby_client/api/chunk_api.rb +906 -0
  94. data/lib/trieve_ruby_client/api/chunk_group_api.rb +1230 -0
  95. data/lib/trieve_ruby_client/api/dataset_api.rb +458 -0
  96. data/lib/trieve_ruby_client/api/events_api.rb +92 -0
  97. data/lib/trieve_ruby_client/api/file_api.rb +324 -0
  98. data/lib/trieve_ruby_client/api/health_api.rb +75 -0
  99. data/lib/trieve_ruby_client/api/invitation_api.rb +97 -0
  100. data/lib/trieve_ruby_client/api/message_api.rb +317 -0
  101. data/lib/trieve_ruby_client/api/organization_api.rb +445 -0
  102. data/lib/trieve_ruby_client/api/stripe_api.rb +278 -0
  103. data/lib/trieve_ruby_client/api/topic_api.rb +317 -0
  104. data/lib/trieve_ruby_client/api/user_api.rb +226 -0
  105. data/lib/trieve_ruby_client/api_client.rb +394 -0
  106. data/lib/trieve_ruby_client/api_error.rb +58 -0
  107. data/lib/trieve_ruby_client/configuration.rb +305 -0
  108. data/lib/trieve_ruby_client/models/add_chunk_to_group_data.rb +222 -0
  109. data/lib/trieve_ruby_client/models/api_key_dto.rb +301 -0
  110. data/lib/trieve_ruby_client/models/bookmark_data.rb +255 -0
  111. data/lib/trieve_ruby_client/models/bookmark_group_result.rb +239 -0
  112. data/lib/trieve_ruby_client/models/chat_message_proxy.rb +237 -0
  113. data/lib/trieve_ruby_client/models/chunk_filter.rb +244 -0
  114. data/lib/trieve_ruby_client/models/chunk_group.rb +311 -0
  115. data/lib/trieve_ruby_client/models/chunk_group_and_file.rb +321 -0
  116. data/lib/trieve_ruby_client/models/chunk_metadata.rb +371 -0
  117. data/lib/trieve_ruby_client/models/chunk_metadata_with_file_data.rb +381 -0
  118. data/lib/trieve_ruby_client/models/client_dataset_configuration.rb +336 -0
  119. data/lib/trieve_ruby_client/models/create_chunk_data.rb +356 -0
  120. data/lib/trieve_ruby_client/models/create_chunk_group_data.rb +250 -0
  121. data/lib/trieve_ruby_client/models/create_dataset_request.rb +265 -0
  122. data/lib/trieve_ruby_client/models/create_message_data.rb +285 -0
  123. data/lib/trieve_ruby_client/models/create_organization_data.rb +222 -0
  124. data/lib/trieve_ruby_client/models/create_topic_data.rb +238 -0
  125. data/lib/trieve_ruby_client/models/dataset.rb +309 -0
  126. data/lib/trieve_ruby_client/models/dataset_and_usage.rb +237 -0
  127. data/lib/trieve_ruby_client/models/dataset_dto.rb +297 -0
  128. data/lib/trieve_ruby_client/models/dataset_usage_count.rb +253 -0
  129. data/lib/trieve_ruby_client/models/delete_dataset_request.rb +222 -0
  130. data/lib/trieve_ruby_client/models/delete_topic_data.rb +222 -0
  131. data/lib/trieve_ruby_client/models/delete_user_api_key_request.rb +222 -0
  132. data/lib/trieve_ruby_client/models/edit_message_data.rb +302 -0
  133. data/lib/trieve_ruby_client/models/error_response_body.rb +221 -0
  134. data/lib/trieve_ruby_client/models/event.rb +297 -0
  135. data/lib/trieve_ruby_client/models/event_return.rb +239 -0
  136. data/lib/trieve_ruby_client/models/field_condition.rb +245 -0
  137. data/lib/trieve_ruby_client/models/file.rb +341 -0
  138. data/lib/trieve_ruby_client/models/file_dto.rb +321 -0
  139. data/lib/trieve_ruby_client/models/generate_chunks_request.rb +276 -0
  140. data/lib/trieve_ruby_client/models/get_groups_for_chunks_data.rb +223 -0
  141. data/lib/trieve_ruby_client/models/group_data.rb +239 -0
  142. data/lib/trieve_ruby_client/models/group_score_chunk_dto.rb +239 -0
  143. data/lib/trieve_ruby_client/models/invitation_data.rb +290 -0
  144. data/lib/trieve_ruby_client/models/match_condition.rb +105 -0
  145. data/lib/trieve_ruby_client/models/message.rb +369 -0
  146. data/lib/trieve_ruby_client/models/organization.rb +279 -0
  147. data/lib/trieve_ruby_client/models/organization_usage_count.rb +301 -0
  148. data/lib/trieve_ruby_client/models/range.rb +245 -0
  149. data/lib/trieve_ruby_client/models/reccomend_group_chunks_request.rb +319 -0
  150. data/lib/trieve_ruby_client/models/recommend_chunks_request.rb +293 -0
  151. data/lib/trieve_ruby_client/models/regenerate_message_data.rb +268 -0
  152. data/lib/trieve_ruby_client/models/return_queued_chunk.rb +237 -0
  153. data/lib/trieve_ruby_client/models/score_chunk_dto.rb +239 -0
  154. data/lib/trieve_ruby_client/models/search_chunk_data.rb +369 -0
  155. data/lib/trieve_ruby_client/models/search_chunk_query_response_body.rb +239 -0
  156. data/lib/trieve_ruby_client/models/search_groups_result.rb +255 -0
  157. data/lib/trieve_ruby_client/models/search_over_groups_data.rb +372 -0
  158. data/lib/trieve_ruby_client/models/search_over_groups_response_body.rb +239 -0
  159. data/lib/trieve_ruby_client/models/search_within_group_data.rb +380 -0
  160. data/lib/trieve_ruby_client/models/set_user_api_key_request.rb +239 -0
  161. data/lib/trieve_ruby_client/models/set_user_api_key_response.rb +222 -0
  162. data/lib/trieve_ruby_client/models/slim_group.rb +269 -0
  163. data/lib/trieve_ruby_client/models/slim_user.rb +319 -0
  164. data/lib/trieve_ruby_client/models/stripe_plan.rb +381 -0
  165. data/lib/trieve_ruby_client/models/stripe_subscription.rb +311 -0
  166. data/lib/trieve_ruby_client/models/suggested_queries_request.rb +222 -0
  167. data/lib/trieve_ruby_client/models/suggested_queries_response.rb +223 -0
  168. data/lib/trieve_ruby_client/models/topic.rb +317 -0
  169. data/lib/trieve_ruby_client/models/update_chunk_by_tracking_id_data.rb +303 -0
  170. data/lib/trieve_ruby_client/models/update_chunk_data.rb +308 -0
  171. data/lib/trieve_ruby_client/models/update_chunk_group_data.rb +249 -0
  172. data/lib/trieve_ruby_client/models/update_dataset_request.rb +255 -0
  173. data/lib/trieve_ruby_client/models/update_group_by_tracking_id_data.rb +244 -0
  174. data/lib/trieve_ruby_client/models/update_organization_data.rb +233 -0
  175. data/lib/trieve_ruby_client/models/update_topic_data.rb +239 -0
  176. data/lib/trieve_ruby_client/models/update_user_data.rb +288 -0
  177. data/lib/trieve_ruby_client/models/upload_file_data.rb +324 -0
  178. data/lib/trieve_ruby_client/models/upload_file_result.rb +221 -0
  179. data/lib/trieve_ruby_client/models/user_organization.rb +301 -0
  180. data/lib/trieve_ruby_client/version.rb +15 -0
  181. data/lib/trieve_ruby_client.rb +124 -0
  182. data/openapi-generator.yaml +9 -0
  183. data/openapi.json +6530 -0
  184. data/openapitools.json +7 -0
  185. data/spec/api/auth_api_spec.rb +82 -0
  186. data/spec/api/chunk_api_spec.rb +191 -0
  187. data/spec/api/chunk_group_api_spec.rb +242 -0
  188. data/spec/api/dataset_api_spec.rb +113 -0
  189. data/spec/api/events_api_spec.rb +48 -0
  190. data/spec/api/file_api_spec.rb +89 -0
  191. data/spec/api/health_api_spec.rb +44 -0
  192. data/spec/api/invitation_api_spec.rb +48 -0
  193. data/spec/api/message_api_spec.rb +87 -0
  194. data/spec/api/organization_api_spec.rb +112 -0
  195. data/spec/api/stripe_api_spec.rb +78 -0
  196. data/spec/api/topic_api_spec.rb +87 -0
  197. data/spec/api/user_api_spec.rb +71 -0
  198. data/spec/models/add_chunk_to_group_data_spec.rb +36 -0
  199. data/spec/models/api_key_dto_spec.rb +66 -0
  200. data/spec/models/bookmark_data_spec.rb +48 -0
  201. data/spec/models/bookmark_group_result_spec.rb +42 -0
  202. data/spec/models/chat_message_proxy_spec.rb +42 -0
  203. data/spec/models/chunk_filter_spec.rb +48 -0
  204. data/spec/models/chunk_group_and_file_spec.rb +78 -0
  205. data/spec/models/chunk_group_spec.rb +72 -0
  206. data/spec/models/chunk_metadata_spec.rb +108 -0
  207. data/spec/models/chunk_metadata_with_file_data_spec.rb +114 -0
  208. data/spec/models/client_dataset_configuration_spec.rb +96 -0
  209. data/spec/models/create_chunk_data_spec.rb +108 -0
  210. data/spec/models/create_chunk_group_data_spec.rb +48 -0
  211. data/spec/models/create_dataset_request_spec.rb +54 -0
  212. data/spec/models/create_message_data_spec.rb +66 -0
  213. data/spec/models/create_organization_data_spec.rb +36 -0
  214. data/spec/models/create_topic_data_spec.rb +48 -0
  215. data/spec/models/dataset_and_usage_spec.rb +42 -0
  216. data/spec/models/dataset_dto_spec.rb +66 -0
  217. data/spec/models/dataset_spec.rb +72 -0
  218. data/spec/models/dataset_usage_count_spec.rb +48 -0
  219. data/spec/models/delete_dataset_request_spec.rb +36 -0
  220. data/spec/models/delete_topic_data_spec.rb +36 -0
  221. data/spec/models/delete_user_api_key_request_spec.rb +36 -0
  222. data/spec/models/edit_message_data_spec.rb +72 -0
  223. data/spec/models/error_response_body_spec.rb +36 -0
  224. data/spec/models/event_return_spec.rb +42 -0
  225. data/spec/models/event_spec.rb +66 -0
  226. data/spec/models/field_condition_spec.rb +48 -0
  227. data/spec/models/file_dto_spec.rb +78 -0
  228. data/spec/models/file_spec.rb +90 -0
  229. data/spec/models/generate_chunks_request_spec.rb +60 -0
  230. data/spec/models/get_groups_for_chunks_data_spec.rb +36 -0
  231. data/spec/models/group_data_spec.rb +42 -0
  232. data/spec/models/group_score_chunk_dto_spec.rb +42 -0
  233. data/spec/models/invitation_data_spec.rb +60 -0
  234. data/spec/models/match_condition_spec.rb +32 -0
  235. data/spec/models/message_spec.rb +96 -0
  236. data/spec/models/organization_spec.rb +60 -0
  237. data/spec/models/organization_usage_count_spec.rb +66 -0
  238. data/spec/models/range_spec.rb +54 -0
  239. data/spec/models/reccomend_group_chunks_request_spec.rb +72 -0
  240. data/spec/models/recommend_chunks_request_spec.rb +66 -0
  241. data/spec/models/regenerate_message_data_spec.rb +60 -0
  242. data/spec/models/return_queued_chunk_spec.rb +42 -0
  243. data/spec/models/score_chunk_dto_spec.rb +42 -0
  244. data/spec/models/search_chunk_data_spec.rb +96 -0
  245. data/spec/models/search_chunk_query_response_body_spec.rb +42 -0
  246. data/spec/models/search_groups_result_spec.rb +48 -0
  247. data/spec/models/search_over_groups_data_spec.rb +90 -0
  248. data/spec/models/search_over_groups_response_body_spec.rb +42 -0
  249. data/spec/models/search_within_group_data_spec.rb +102 -0
  250. data/spec/models/set_user_api_key_request_spec.rb +42 -0
  251. data/spec/models/set_user_api_key_response_spec.rb +36 -0
  252. data/spec/models/slim_group_spec.rb +54 -0
  253. data/spec/models/slim_user_spec.rb +78 -0
  254. data/spec/models/stripe_plan_spec.rb +96 -0
  255. data/spec/models/stripe_subscription_spec.rb +72 -0
  256. data/spec/models/suggested_queries_request_spec.rb +36 -0
  257. data/spec/models/suggested_queries_response_spec.rb +36 -0
  258. data/spec/models/topic_spec.rb +72 -0
  259. data/spec/models/update_chunk_by_tracking_id_data_spec.rb +66 -0
  260. data/spec/models/update_chunk_data_spec.rb +72 -0
  261. data/spec/models/update_chunk_group_data_spec.rb +48 -0
  262. data/spec/models/update_dataset_request_spec.rb +54 -0
  263. data/spec/models/update_group_by_tracking_id_data_spec.rb +48 -0
  264. data/spec/models/update_organization_data_spec.rb +42 -0
  265. data/spec/models/update_topic_data_spec.rb +42 -0
  266. data/spec/models/update_user_data_spec.rb +72 -0
  267. data/spec/models/upload_file_data_spec.rb +84 -0
  268. data/spec/models/upload_file_result_spec.rb +36 -0
  269. data/spec/models/user_organization_spec.rb +66 -0
  270. data/spec/spec_helper.rb +111 -0
  271. data/trieve_ruby_client.gemspec +39 -0
  272. metadata +439 -0
@@ -0,0 +1,1262 @@
1
+ # TrieveRubyClient::ChunkGroupApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_chunk_to_group**](ChunkGroupApi.md#add_chunk_to_group) | **POST** /api/chunk_group/chunk/{group_id} | add_chunk_to_group |
8
+ | [**add_chunk_to_group_by_tracking_id**](ChunkGroupApi.md#add_chunk_to_group_by_tracking_id) | **POST** /api/chunk_group/tracking_id/{tracking_id} | add_chunk_to_group_by_tracking_id |
9
+ | [**create_chunk_group**](ChunkGroupApi.md#create_chunk_group) | **POST** /api/chunk_group | create_chunk_group |
10
+ | [**delete_chunk_group**](ChunkGroupApi.md#delete_chunk_group) | **DELETE** /api/{tracking_or_chunk}/{group_id} | delete_chunk_group |
11
+ | [**delete_group_by_tracking_id**](ChunkGroupApi.md#delete_group_by_tracking_id) | **DELETE** /api/chunk_group/tracking_id/{tracking_id} | |
12
+ | [**get_chunks_in_group**](ChunkGroupApi.md#get_chunks_in_group) | **GET** /api/chunk_group/{tracking_or_chunk}/{group_id}/{page} | get_chunks_in_group |
13
+ | [**get_chunks_in_group_by_tracking_id**](ChunkGroupApi.md#get_chunks_in_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{group_tracking_id}/{page} | get_chunks_in_group_by_tracking_id |
14
+ | [**get_group_by_tracking_id**](ChunkGroupApi.md#get_group_by_tracking_id) | **GET** /api/chunk_group/tracking_id/{tracking_id} | get_group_by_tracking_id |
15
+ | [**get_groups_chunk_is_in**](ChunkGroupApi.md#get_groups_chunk_is_in) | **POST** /api/chunk_group/chunks | |
16
+ | [**get_recommended_groups**](ChunkGroupApi.md#get_recommended_groups) | **POST** /api/chunk_group/recommend | |
17
+ | [**get_specific_dataset_chunk_groups**](ChunkGroupApi.md#get_specific_dataset_chunk_groups) | **GET** /api/dataset/groups/{dataset_id}/{page} | get_dataset_groups |
18
+ | [**remove_chunk_from_group**](ChunkGroupApi.md#remove_chunk_from_group) | **DELETE** /api/chunk_group/chunk/{group_id} | remove_chunk_from_group |
19
+ | [**search_over_groups**](ChunkGroupApi.md#search_over_groups) | **POST** /api/chunk_group/group_oriented_search | group_oriented_search |
20
+ | [**search_within_group**](ChunkGroupApi.md#search_within_group) | **POST** /api/chunk_group/search | search_within_group |
21
+ | [**update_chunk_group**](ChunkGroupApi.md#update_chunk_group) | **PUT** /api/chunk_group | update_chunk_group |
22
+ | [**update_group_by_tracking_id**](ChunkGroupApi.md#update_group_by_tracking_id) | **PUT** /api/chunk_group/tracking_id/{tracking_id} | |
23
+
24
+
25
+ ## add_chunk_to_group
26
+
27
+ > add_chunk_to_group(tr_dataset, group_id, add_chunk_to_group_data)
28
+
29
+ add_chunk_to_group
30
+
31
+ add_chunk_to_group Route to add a chunk to a group
32
+
33
+ ### Examples
34
+
35
+ ```ruby
36
+ require 'time'
37
+ require 'trieve_ruby_client'
38
+ # setup authorization
39
+ TrieveRubyClient.configure do |config|
40
+ # Configure API key authorization: Cookie
41
+ config.api_key['Cookie'] = 'YOUR API KEY'
42
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
43
+ # config.api_key_prefix['Cookie'] = 'Bearer'
44
+
45
+ # Configure API key authorization: ApiKey
46
+ config.api_key['ApiKey'] = 'YOUR API KEY'
47
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
48
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
49
+ end
50
+
51
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
52
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
53
+ group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group to add the chunk to as a bookmark
54
+ add_chunk_to_group_data = TrieveRubyClient::AddChunkToGroupData.new({chunk_id: 'chunk_id_example'}) # AddChunkToGroupData | JSON request payload to add a chunk to a group (bookmark it)
55
+
56
+ begin
57
+ # add_chunk_to_group
58
+ api_instance.add_chunk_to_group(tr_dataset, group_id, add_chunk_to_group_data)
59
+ rescue TrieveRubyClient::ApiError => e
60
+ puts "Error when calling ChunkGroupApi->add_chunk_to_group: #{e}"
61
+ end
62
+ ```
63
+
64
+ #### Using the add_chunk_to_group_with_http_info variant
65
+
66
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
67
+
68
+ > <Array(nil, Integer, Hash)> add_chunk_to_group_with_http_info(tr_dataset, group_id, add_chunk_to_group_data)
69
+
70
+ ```ruby
71
+ begin
72
+ # add_chunk_to_group
73
+ data, status_code, headers = api_instance.add_chunk_to_group_with_http_info(tr_dataset, group_id, add_chunk_to_group_data)
74
+ p status_code # => 2xx
75
+ p headers # => { ... }
76
+ p data # => nil
77
+ rescue TrieveRubyClient::ApiError => e
78
+ puts "Error when calling ChunkGroupApi->add_chunk_to_group_with_http_info: #{e}"
79
+ end
80
+ ```
81
+
82
+ ### Parameters
83
+
84
+ | Name | Type | Description | Notes |
85
+ | ---- | ---- | ----------- | ----- |
86
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
87
+ | **group_id** | **String** | Id of the group to add the chunk to as a bookmark | |
88
+ | **add_chunk_to_group_data** | [**AddChunkToGroupData**](AddChunkToGroupData.md) | JSON request payload to add a chunk to a group (bookmark it) | |
89
+
90
+ ### Return type
91
+
92
+ nil (empty response body)
93
+
94
+ ### Authorization
95
+
96
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
97
+
98
+ ### HTTP request headers
99
+
100
+ - **Content-Type**: application/json
101
+ - **Accept**: application/json
102
+
103
+
104
+ ## add_chunk_to_group_by_tracking_id
105
+
106
+ > add_chunk_to_group_by_tracking_id(tr_dataset, tracking_id, add_chunk_to_group_data)
107
+
108
+ add_chunk_to_group_by_tracking_id
109
+
110
+ add_chunk_to_group_by_tracking_id Route to add a chunk to a group by tracking id. Think of a bookmark as a chunk which is a member of a group.
111
+
112
+ ### Examples
113
+
114
+ ```ruby
115
+ require 'time'
116
+ require 'trieve_ruby_client'
117
+ # setup authorization
118
+ TrieveRubyClient.configure do |config|
119
+ # Configure API key authorization: Cookie
120
+ config.api_key['Cookie'] = 'YOUR API KEY'
121
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
122
+ # config.api_key_prefix['Cookie'] = 'Bearer'
123
+
124
+ # Configure API key authorization: ApiKey
125
+ config.api_key['ApiKey'] = 'YOUR API KEY'
126
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
127
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
128
+ end
129
+
130
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
131
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
132
+ tracking_id = 'tracking_id_example' # String | Id of the group to add the chunk to as a bookmark
133
+ add_chunk_to_group_data = TrieveRubyClient::AddChunkToGroupData.new({chunk_id: 'chunk_id_example'}) # AddChunkToGroupData | JSON request payload to add a chunk to a group (bookmark it)
134
+
135
+ begin
136
+ # add_chunk_to_group_by_tracking_id
137
+ api_instance.add_chunk_to_group_by_tracking_id(tr_dataset, tracking_id, add_chunk_to_group_data)
138
+ rescue TrieveRubyClient::ApiError => e
139
+ puts "Error when calling ChunkGroupApi->add_chunk_to_group_by_tracking_id: #{e}"
140
+ end
141
+ ```
142
+
143
+ #### Using the add_chunk_to_group_by_tracking_id_with_http_info variant
144
+
145
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
146
+
147
+ > <Array(nil, Integer, Hash)> add_chunk_to_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, add_chunk_to_group_data)
148
+
149
+ ```ruby
150
+ begin
151
+ # add_chunk_to_group_by_tracking_id
152
+ data, status_code, headers = api_instance.add_chunk_to_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, add_chunk_to_group_data)
153
+ p status_code # => 2xx
154
+ p headers # => { ... }
155
+ p data # => nil
156
+ rescue TrieveRubyClient::ApiError => e
157
+ puts "Error when calling ChunkGroupApi->add_chunk_to_group_by_tracking_id_with_http_info: #{e}"
158
+ end
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+ | Name | Type | Description | Notes |
164
+ | ---- | ---- | ----------- | ----- |
165
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
166
+ | **tracking_id** | **String** | Id of the group to add the chunk to as a bookmark | |
167
+ | **add_chunk_to_group_data** | [**AddChunkToGroupData**](AddChunkToGroupData.md) | JSON request payload to add a chunk to a group (bookmark it) | |
168
+
169
+ ### Return type
170
+
171
+ nil (empty response body)
172
+
173
+ ### Authorization
174
+
175
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
176
+
177
+ ### HTTP request headers
178
+
179
+ - **Content-Type**: application/json
180
+ - **Accept**: application/json
181
+
182
+
183
+ ## create_chunk_group
184
+
185
+ > <ChunkGroup> create_chunk_group(tr_dataset, create_chunk_group_data)
186
+
187
+ create_chunk_group
188
+
189
+ create_chunk_group Create a new chunk_group.
190
+
191
+ ### Examples
192
+
193
+ ```ruby
194
+ require 'time'
195
+ require 'trieve_ruby_client'
196
+ # setup authorization
197
+ TrieveRubyClient.configure do |config|
198
+ # Configure API key authorization: Cookie
199
+ config.api_key['Cookie'] = 'YOUR API KEY'
200
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
201
+ # config.api_key_prefix['Cookie'] = 'Bearer'
202
+
203
+ # Configure API key authorization: ApiKey
204
+ config.api_key['ApiKey'] = 'YOUR API KEY'
205
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
206
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
207
+ end
208
+
209
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
210
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
211
+ create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({description: 'description_example', name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
212
+
213
+ begin
214
+ # create_chunk_group
215
+ result = api_instance.create_chunk_group(tr_dataset, create_chunk_group_data)
216
+ p result
217
+ rescue TrieveRubyClient::ApiError => e
218
+ puts "Error when calling ChunkGroupApi->create_chunk_group: #{e}"
219
+ end
220
+ ```
221
+
222
+ #### Using the create_chunk_group_with_http_info variant
223
+
224
+ This returns an Array which contains the response data, status code and headers.
225
+
226
+ > <Array(<ChunkGroup>, Integer, Hash)> create_chunk_group_with_http_info(tr_dataset, create_chunk_group_data)
227
+
228
+ ```ruby
229
+ begin
230
+ # create_chunk_group
231
+ data, status_code, headers = api_instance.create_chunk_group_with_http_info(tr_dataset, create_chunk_group_data)
232
+ p status_code # => 2xx
233
+ p headers # => { ... }
234
+ p data # => <ChunkGroup>
235
+ rescue TrieveRubyClient::ApiError => e
236
+ puts "Error when calling ChunkGroupApi->create_chunk_group_with_http_info: #{e}"
237
+ end
238
+ ```
239
+
240
+ ### Parameters
241
+
242
+ | Name | Type | Description | Notes |
243
+ | ---- | ---- | ----------- | ----- |
244
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
245
+ | **create_chunk_group_data** | [**CreateChunkGroupData**](CreateChunkGroupData.md) | JSON request payload to cretea a chunkGroup | |
246
+
247
+ ### Return type
248
+
249
+ [**ChunkGroup**](ChunkGroup.md)
250
+
251
+ ### Authorization
252
+
253
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
254
+
255
+ ### HTTP request headers
256
+
257
+ - **Content-Type**: application/json
258
+ - **Accept**: application/json
259
+
260
+
261
+ ## delete_chunk_group
262
+
263
+ > delete_chunk_group(tr_dataset, group_id, tracking_or_chunk, delete_chunks)
264
+
265
+ delete_chunk_group
266
+
267
+ delete_chunk_group This will delete a chunk_group. This will not delete the chunks that are in the group. We will soon support deleting a chunk_group along with its member chunks.
268
+
269
+ ### Examples
270
+
271
+ ```ruby
272
+ require 'time'
273
+ require 'trieve_ruby_client'
274
+ # setup authorization
275
+ TrieveRubyClient.configure do |config|
276
+ # Configure API key authorization: Cookie
277
+ config.api_key['Cookie'] = 'YOUR API KEY'
278
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
279
+ # config.api_key_prefix['Cookie'] = 'Bearer'
280
+
281
+ # Configure API key authorization: ApiKey
282
+ config.api_key['ApiKey'] = 'YOUR API KEY'
283
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
284
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
285
+ end
286
+
287
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
288
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
289
+ group_id = TODO # Uuid | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
290
+ tracking_or_chunk = 'tracking_or_chunk_example' # String | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
291
+ delete_chunks = true # Boolean | Delete the chunks within the group
292
+
293
+ begin
294
+ # delete_chunk_group
295
+ api_instance.delete_chunk_group(tr_dataset, group_id, tracking_or_chunk, delete_chunks)
296
+ rescue TrieveRubyClient::ApiError => e
297
+ puts "Error when calling ChunkGroupApi->delete_chunk_group: #{e}"
298
+ end
299
+ ```
300
+
301
+ #### Using the delete_chunk_group_with_http_info variant
302
+
303
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
304
+
305
+ > <Array(nil, Integer, Hash)> delete_chunk_group_with_http_info(tr_dataset, group_id, tracking_or_chunk, delete_chunks)
306
+
307
+ ```ruby
308
+ begin
309
+ # delete_chunk_group
310
+ data, status_code, headers = api_instance.delete_chunk_group_with_http_info(tr_dataset, group_id, tracking_or_chunk, delete_chunks)
311
+ p status_code # => 2xx
312
+ p headers # => { ... }
313
+ p data # => nil
314
+ rescue TrieveRubyClient::ApiError => e
315
+ puts "Error when calling ChunkGroupApi->delete_chunk_group_with_http_info: #{e}"
316
+ end
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ | Name | Type | Description | Notes |
322
+ | ---- | ---- | ----------- | ----- |
323
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
324
+ | **group_id** | [**Uuid**](.md) | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
325
+ | **tracking_or_chunk** | **String** | The type of id you are using to search for the group. This can be either &#39;chunk&#39; or &#39;tracking_id&#39; | |
326
+ | **delete_chunks** | **Boolean** | Delete the chunks within the group | |
327
+
328
+ ### Return type
329
+
330
+ nil (empty response body)
331
+
332
+ ### Authorization
333
+
334
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
335
+
336
+ ### HTTP request headers
337
+
338
+ - **Content-Type**: Not defined
339
+ - **Accept**: application/json
340
+
341
+
342
+ ## delete_group_by_tracking_id
343
+
344
+ > delete_group_by_tracking_id(tr_dataset, tracking_id)
345
+
346
+
347
+
348
+ ### Examples
349
+
350
+ ```ruby
351
+ require 'time'
352
+ require 'trieve_ruby_client'
353
+ # setup authorization
354
+ TrieveRubyClient.configure do |config|
355
+ # Configure API key authorization: Cookie
356
+ config.api_key['Cookie'] = 'YOUR API KEY'
357
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
358
+ # config.api_key_prefix['Cookie'] = 'Bearer'
359
+
360
+ # Configure API key authorization: ApiKey
361
+ config.api_key['ApiKey'] = 'YOUR API KEY'
362
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
363
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
364
+ end
365
+
366
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
367
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
368
+ tracking_id = 'tracking_id_example' # String | Tracking id of the chunk_group to delete
369
+
370
+ begin
371
+
372
+ api_instance.delete_group_by_tracking_id(tr_dataset, tracking_id)
373
+ rescue TrieveRubyClient::ApiError => e
374
+ puts "Error when calling ChunkGroupApi->delete_group_by_tracking_id: #{e}"
375
+ end
376
+ ```
377
+
378
+ #### Using the delete_group_by_tracking_id_with_http_info variant
379
+
380
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
381
+
382
+ > <Array(nil, Integer, Hash)> delete_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
383
+
384
+ ```ruby
385
+ begin
386
+
387
+ data, status_code, headers = api_instance.delete_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
388
+ p status_code # => 2xx
389
+ p headers # => { ... }
390
+ p data # => nil
391
+ rescue TrieveRubyClient::ApiError => e
392
+ puts "Error when calling ChunkGroupApi->delete_group_by_tracking_id_with_http_info: #{e}"
393
+ end
394
+ ```
395
+
396
+ ### Parameters
397
+
398
+ | Name | Type | Description | Notes |
399
+ | ---- | ---- | ----------- | ----- |
400
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
401
+ | **tracking_id** | **String** | Tracking id of the chunk_group to delete | |
402
+
403
+ ### Return type
404
+
405
+ nil (empty response body)
406
+
407
+ ### Authorization
408
+
409
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
410
+
411
+ ### HTTP request headers
412
+
413
+ - **Content-Type**: Not defined
414
+ - **Accept**: application/json
415
+
416
+
417
+ ## get_chunks_in_group
418
+
419
+ > <BookmarkData> get_chunks_in_group(tr_dataset, group_id, tracking_or_chunk, page)
420
+
421
+ get_chunks_in_group
422
+
423
+ get_chunks_in_group Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
424
+
425
+ ### Examples
426
+
427
+ ```ruby
428
+ require 'time'
429
+ require 'trieve_ruby_client'
430
+ # setup authorization
431
+ TrieveRubyClient.configure do |config|
432
+ # Configure API key authorization: Cookie
433
+ config.api_key['Cookie'] = 'YOUR API KEY'
434
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
435
+ # config.api_key_prefix['Cookie'] = 'Bearer'
436
+
437
+ # Configure API key authorization: ApiKey
438
+ config.api_key['ApiKey'] = 'YOUR API KEY'
439
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
440
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
441
+ end
442
+
443
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
444
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
445
+ group_id = TODO # Uuid | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used.
446
+ tracking_or_chunk = 'tracking_or_chunk_example' # String | The type of id you are using to search for the group. This can be either 'chunk' or 'tracking_id'
447
+ page = 789 # Integer | The page of chunks to get from the group
448
+
449
+ begin
450
+ # get_chunks_in_group
451
+ result = api_instance.get_chunks_in_group(tr_dataset, group_id, tracking_or_chunk, page)
452
+ p result
453
+ rescue TrieveRubyClient::ApiError => e
454
+ puts "Error when calling ChunkGroupApi->get_chunks_in_group: #{e}"
455
+ end
456
+ ```
457
+
458
+ #### Using the get_chunks_in_group_with_http_info variant
459
+
460
+ This returns an Array which contains the response data, status code and headers.
461
+
462
+ > <Array(<BookmarkData>, Integer, Hash)> get_chunks_in_group_with_http_info(tr_dataset, group_id, tracking_or_chunk, page)
463
+
464
+ ```ruby
465
+ begin
466
+ # get_chunks_in_group
467
+ data, status_code, headers = api_instance.get_chunks_in_group_with_http_info(tr_dataset, group_id, tracking_or_chunk, page)
468
+ p status_code # => 2xx
469
+ p headers # => { ... }
470
+ p data # => <BookmarkData>
471
+ rescue TrieveRubyClient::ApiError => e
472
+ puts "Error when calling ChunkGroupApi->get_chunks_in_group_with_http_info: #{e}"
473
+ end
474
+ ```
475
+
476
+ ### Parameters
477
+
478
+ | Name | Type | Description | Notes |
479
+ | ---- | ---- | ----------- | ----- |
480
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
481
+ | **group_id** | [**Uuid**](.md) | Id of the group you want to fetch. This can be either the group_id or the tracking_id. If both are provided, the group_id will be used. | |
482
+ | **tracking_or_chunk** | **String** | The type of id you are using to search for the group. This can be either &#39;chunk&#39; or &#39;tracking_id&#39; | |
483
+ | **page** | **Integer** | The page of chunks to get from the group | |
484
+
485
+ ### Return type
486
+
487
+ [**BookmarkData**](BookmarkData.md)
488
+
489
+ ### Authorization
490
+
491
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
492
+
493
+ ### HTTP request headers
494
+
495
+ - **Content-Type**: Not defined
496
+ - **Accept**: application/json
497
+
498
+
499
+ ## get_chunks_in_group_by_tracking_id
500
+
501
+ > <BookmarkData> get_chunks_in_group_by_tracking_id(tr_dataset, group_tracking_id, page)
502
+
503
+ get_chunks_in_group_by_tracking_id
504
+
505
+ get_chunks_in_group_by_tracking_id Route to get all chunks for a group. The response is paginated, with each page containing 10 chunks. Support for custom page size is coming soon.
506
+
507
+ ### Examples
508
+
509
+ ```ruby
510
+ require 'time'
511
+ require 'trieve_ruby_client'
512
+ # setup authorization
513
+ TrieveRubyClient.configure do |config|
514
+ # Configure API key authorization: Cookie
515
+ config.api_key['Cookie'] = 'YOUR API KEY'
516
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
517
+ # config.api_key_prefix['Cookie'] = 'Bearer'
518
+
519
+ # Configure API key authorization: ApiKey
520
+ config.api_key['ApiKey'] = 'YOUR API KEY'
521
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
522
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
523
+ end
524
+
525
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
526
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
527
+ group_tracking_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the group to get the chunks from
528
+ page = 789 # Integer | The page of chunks to get from the group
529
+
530
+ begin
531
+ # get_chunks_in_group_by_tracking_id
532
+ result = api_instance.get_chunks_in_group_by_tracking_id(tr_dataset, group_tracking_id, page)
533
+ p result
534
+ rescue TrieveRubyClient::ApiError => e
535
+ puts "Error when calling ChunkGroupApi->get_chunks_in_group_by_tracking_id: #{e}"
536
+ end
537
+ ```
538
+
539
+ #### Using the get_chunks_in_group_by_tracking_id_with_http_info variant
540
+
541
+ This returns an Array which contains the response data, status code and headers.
542
+
543
+ > <Array(<BookmarkData>, Integer, Hash)> get_chunks_in_group_by_tracking_id_with_http_info(tr_dataset, group_tracking_id, page)
544
+
545
+ ```ruby
546
+ begin
547
+ # get_chunks_in_group_by_tracking_id
548
+ data, status_code, headers = api_instance.get_chunks_in_group_by_tracking_id_with_http_info(tr_dataset, group_tracking_id, page)
549
+ p status_code # => 2xx
550
+ p headers # => { ... }
551
+ p data # => <BookmarkData>
552
+ rescue TrieveRubyClient::ApiError => e
553
+ puts "Error when calling ChunkGroupApi->get_chunks_in_group_by_tracking_id_with_http_info: #{e}"
554
+ end
555
+ ```
556
+
557
+ ### Parameters
558
+
559
+ | Name | Type | Description | Notes |
560
+ | ---- | ---- | ----------- | ----- |
561
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
562
+ | **group_tracking_id** | **String** | The id of the group to get the chunks from | |
563
+ | **page** | **Integer** | The page of chunks to get from the group | |
564
+
565
+ ### Return type
566
+
567
+ [**BookmarkData**](BookmarkData.md)
568
+
569
+ ### Authorization
570
+
571
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
572
+
573
+ ### HTTP request headers
574
+
575
+ - **Content-Type**: Not defined
576
+ - **Accept**: application/json
577
+
578
+
579
+ ## get_group_by_tracking_id
580
+
581
+ > <ChunkGroup> get_group_by_tracking_id(tr_dataset, tracking_id)
582
+
583
+ get_group_by_tracking_id
584
+
585
+ get_group_by_tracking_id
586
+
587
+ ### Examples
588
+
589
+ ```ruby
590
+ require 'time'
591
+ require 'trieve_ruby_client'
592
+ # setup authorization
593
+ TrieveRubyClient.configure do |config|
594
+ # Configure API key authorization: Cookie
595
+ config.api_key['Cookie'] = 'YOUR API KEY'
596
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
597
+ # config.api_key_prefix['Cookie'] = 'Bearer'
598
+
599
+ # Configure API key authorization: ApiKey
600
+ config.api_key['ApiKey'] = 'YOUR API KEY'
601
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
602
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
603
+ end
604
+
605
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
606
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
607
+ tracking_id = 'tracking_id_example' # String | The tracking id of the group to fetch.
608
+
609
+ begin
610
+ # get_group_by_tracking_id
611
+ result = api_instance.get_group_by_tracking_id(tr_dataset, tracking_id)
612
+ p result
613
+ rescue TrieveRubyClient::ApiError => e
614
+ puts "Error when calling ChunkGroupApi->get_group_by_tracking_id: #{e}"
615
+ end
616
+ ```
617
+
618
+ #### Using the get_group_by_tracking_id_with_http_info variant
619
+
620
+ This returns an Array which contains the response data, status code and headers.
621
+
622
+ > <Array(<ChunkGroup>, Integer, Hash)> get_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
623
+
624
+ ```ruby
625
+ begin
626
+ # get_group_by_tracking_id
627
+ data, status_code, headers = api_instance.get_group_by_tracking_id_with_http_info(tr_dataset, tracking_id)
628
+ p status_code # => 2xx
629
+ p headers # => { ... }
630
+ p data # => <ChunkGroup>
631
+ rescue TrieveRubyClient::ApiError => e
632
+ puts "Error when calling ChunkGroupApi->get_group_by_tracking_id_with_http_info: #{e}"
633
+ end
634
+ ```
635
+
636
+ ### Parameters
637
+
638
+ | Name | Type | Description | Notes |
639
+ | ---- | ---- | ----------- | ----- |
640
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
641
+ | **tracking_id** | **String** | The tracking id of the group to fetch. | |
642
+
643
+ ### Return type
644
+
645
+ [**ChunkGroup**](ChunkGroup.md)
646
+
647
+ ### Authorization
648
+
649
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
650
+
651
+ ### HTTP request headers
652
+
653
+ - **Content-Type**: Not defined
654
+ - **Accept**: application/json
655
+
656
+
657
+ ## get_groups_chunk_is_in
658
+
659
+ > <Array<BookmarkGroupResult>> get_groups_chunk_is_in(tr_dataset, get_groups_for_chunks_data)
660
+
661
+
662
+
663
+ ### Examples
664
+
665
+ ```ruby
666
+ require 'time'
667
+ require 'trieve_ruby_client'
668
+ # setup authorization
669
+ TrieveRubyClient.configure do |config|
670
+ # Configure API key authorization: Cookie
671
+ config.api_key['Cookie'] = 'YOUR API KEY'
672
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
673
+ # config.api_key_prefix['Cookie'] = 'Bearer'
674
+
675
+ # Configure API key authorization: ApiKey
676
+ config.api_key['ApiKey'] = 'YOUR API KEY'
677
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
678
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
679
+ end
680
+
681
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
682
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
683
+ get_groups_for_chunks_data = TrieveRubyClient::GetGroupsForChunksData.new({chunk_ids: ['chunk_ids_example']}) # GetGroupsForChunksData | JSON request payload to get the groups that a chunk is in
684
+
685
+ begin
686
+
687
+ result = api_instance.get_groups_chunk_is_in(tr_dataset, get_groups_for_chunks_data)
688
+ p result
689
+ rescue TrieveRubyClient::ApiError => e
690
+ puts "Error when calling ChunkGroupApi->get_groups_chunk_is_in: #{e}"
691
+ end
692
+ ```
693
+
694
+ #### Using the get_groups_chunk_is_in_with_http_info variant
695
+
696
+ This returns an Array which contains the response data, status code and headers.
697
+
698
+ > <Array(<Array<BookmarkGroupResult>>, Integer, Hash)> get_groups_chunk_is_in_with_http_info(tr_dataset, get_groups_for_chunks_data)
699
+
700
+ ```ruby
701
+ begin
702
+
703
+ data, status_code, headers = api_instance.get_groups_chunk_is_in_with_http_info(tr_dataset, get_groups_for_chunks_data)
704
+ p status_code # => 2xx
705
+ p headers # => { ... }
706
+ p data # => <Array<BookmarkGroupResult>>
707
+ rescue TrieveRubyClient::ApiError => e
708
+ puts "Error when calling ChunkGroupApi->get_groups_chunk_is_in_with_http_info: #{e}"
709
+ end
710
+ ```
711
+
712
+ ### Parameters
713
+
714
+ | Name | Type | Description | Notes |
715
+ | ---- | ---- | ----------- | ----- |
716
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
717
+ | **get_groups_for_chunks_data** | [**GetGroupsForChunksData**](GetGroupsForChunksData.md) | JSON request payload to get the groups that a chunk is in | |
718
+
719
+ ### Return type
720
+
721
+ [**Array&lt;BookmarkGroupResult&gt;**](BookmarkGroupResult.md)
722
+
723
+ ### Authorization
724
+
725
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
726
+
727
+ ### HTTP request headers
728
+
729
+ - **Content-Type**: application/json
730
+ - **Accept**: application/json
731
+
732
+
733
+ ## get_recommended_groups
734
+
735
+ > <Array<GroupScoreChunkDTO>> get_recommended_groups(tr_dataset, reccomend_group_chunks_request)
736
+
737
+
738
+
739
+ ### Examples
740
+
741
+ ```ruby
742
+ require 'time'
743
+ require 'trieve_ruby_client'
744
+ # setup authorization
745
+ TrieveRubyClient.configure do |config|
746
+ # Configure API key authorization: Cookie
747
+ config.api_key['Cookie'] = 'YOUR API KEY'
748
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
749
+ # config.api_key_prefix['Cookie'] = 'Bearer'
750
+
751
+ # Configure API key authorization: ApiKey
752
+ config.api_key['ApiKey'] = 'YOUR API KEY'
753
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
754
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
755
+ end
756
+
757
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
758
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
759
+ reccomend_group_chunks_request = TrieveRubyClient::ReccomendGroupChunksRequest.new # ReccomendGroupChunksRequest | JSON request payload to get recommendations of chunks similar to the chunks in the request
760
+
761
+ begin
762
+
763
+ result = api_instance.get_recommended_groups(tr_dataset, reccomend_group_chunks_request)
764
+ p result
765
+ rescue TrieveRubyClient::ApiError => e
766
+ puts "Error when calling ChunkGroupApi->get_recommended_groups: #{e}"
767
+ end
768
+ ```
769
+
770
+ #### Using the get_recommended_groups_with_http_info variant
771
+
772
+ This returns an Array which contains the response data, status code and headers.
773
+
774
+ > <Array(<Array<GroupScoreChunkDTO>>, Integer, Hash)> get_recommended_groups_with_http_info(tr_dataset, reccomend_group_chunks_request)
775
+
776
+ ```ruby
777
+ begin
778
+
779
+ data, status_code, headers = api_instance.get_recommended_groups_with_http_info(tr_dataset, reccomend_group_chunks_request)
780
+ p status_code # => 2xx
781
+ p headers # => { ... }
782
+ p data # => <Array<GroupScoreChunkDTO>>
783
+ rescue TrieveRubyClient::ApiError => e
784
+ puts "Error when calling ChunkGroupApi->get_recommended_groups_with_http_info: #{e}"
785
+ end
786
+ ```
787
+
788
+ ### Parameters
789
+
790
+ | Name | Type | Description | Notes |
791
+ | ---- | ---- | ----------- | ----- |
792
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
793
+ | **reccomend_group_chunks_request** | [**ReccomendGroupChunksRequest**](ReccomendGroupChunksRequest.md) | JSON request payload to get recommendations of chunks similar to the chunks in the request | |
794
+
795
+ ### Return type
796
+
797
+ [**Array&lt;GroupScoreChunkDTO&gt;**](GroupScoreChunkDTO.md)
798
+
799
+ ### Authorization
800
+
801
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
802
+
803
+ ### HTTP request headers
804
+
805
+ - **Content-Type**: application/json
806
+ - **Accept**: application/json
807
+
808
+
809
+ ## get_specific_dataset_chunk_groups
810
+
811
+ > <GroupData> get_specific_dataset_chunk_groups(tr_dataset, dataset_id, page)
812
+
813
+ get_dataset_groups
814
+
815
+ get_dataset_groups Fetch the groups which belong to a dataset specified by its id.
816
+
817
+ ### Examples
818
+
819
+ ```ruby
820
+ require 'time'
821
+ require 'trieve_ruby_client'
822
+ # setup authorization
823
+ TrieveRubyClient.configure do |config|
824
+ # Configure API key authorization: Cookie
825
+ config.api_key['Cookie'] = 'YOUR API KEY'
826
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
827
+ # config.api_key_prefix['Cookie'] = 'Bearer'
828
+
829
+ # Configure API key authorization: ApiKey
830
+ config.api_key['ApiKey'] = 'YOUR API KEY'
831
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
832
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
833
+ end
834
+
835
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
836
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
837
+ dataset_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | The id of the dataset to fetch groups for.
838
+ page = 789 # Integer | The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon.
839
+
840
+ begin
841
+ # get_dataset_groups
842
+ result = api_instance.get_specific_dataset_chunk_groups(tr_dataset, dataset_id, page)
843
+ p result
844
+ rescue TrieveRubyClient::ApiError => e
845
+ puts "Error when calling ChunkGroupApi->get_specific_dataset_chunk_groups: #{e}"
846
+ end
847
+ ```
848
+
849
+ #### Using the get_specific_dataset_chunk_groups_with_http_info variant
850
+
851
+ This returns an Array which contains the response data, status code and headers.
852
+
853
+ > <Array(<GroupData>, Integer, Hash)> get_specific_dataset_chunk_groups_with_http_info(tr_dataset, dataset_id, page)
854
+
855
+ ```ruby
856
+ begin
857
+ # get_dataset_groups
858
+ data, status_code, headers = api_instance.get_specific_dataset_chunk_groups_with_http_info(tr_dataset, dataset_id, page)
859
+ p status_code # => 2xx
860
+ p headers # => { ... }
861
+ p data # => <GroupData>
862
+ rescue TrieveRubyClient::ApiError => e
863
+ puts "Error when calling ChunkGroupApi->get_specific_dataset_chunk_groups_with_http_info: #{e}"
864
+ end
865
+ ```
866
+
867
+ ### Parameters
868
+
869
+ | Name | Type | Description | Notes |
870
+ | ---- | ---- | ----------- | ----- |
871
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
872
+ | **dataset_id** | **String** | The id of the dataset to fetch groups for. | |
873
+ | **page** | **Integer** | The page of groups to fetch. Each page contains 10 groups. Support for custom page size is coming soon. | |
874
+
875
+ ### Return type
876
+
877
+ [**GroupData**](GroupData.md)
878
+
879
+ ### Authorization
880
+
881
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
882
+
883
+ ### HTTP request headers
884
+
885
+ - **Content-Type**: Not defined
886
+ - **Accept**: application/json
887
+
888
+
889
+ ## remove_chunk_from_group
890
+
891
+ > remove_chunk_from_group(tr_dataset, group_id, create_chunk_group_data)
892
+
893
+ remove_chunk_from_group
894
+
895
+ remove_chunk_from_group Route to remove a chunk from a group.
896
+
897
+ ### Examples
898
+
899
+ ```ruby
900
+ require 'time'
901
+ require 'trieve_ruby_client'
902
+ # setup authorization
903
+ TrieveRubyClient.configure do |config|
904
+ # Configure API key authorization: Cookie
905
+ config.api_key['Cookie'] = 'YOUR API KEY'
906
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
907
+ # config.api_key_prefix['Cookie'] = 'Bearer'
908
+
909
+ # Configure API key authorization: ApiKey
910
+ config.api_key['ApiKey'] = 'YOUR API KEY'
911
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
912
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
913
+ end
914
+
915
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
916
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
917
+ group_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Id of the group to remove the bookmark'ed chunk from
918
+ create_chunk_group_data = TrieveRubyClient::CreateChunkGroupData.new({description: 'description_example', name: 'name_example'}) # CreateChunkGroupData | JSON request payload to cretea a chunkGroup
919
+
920
+ begin
921
+ # remove_chunk_from_group
922
+ api_instance.remove_chunk_from_group(tr_dataset, group_id, create_chunk_group_data)
923
+ rescue TrieveRubyClient::ApiError => e
924
+ puts "Error when calling ChunkGroupApi->remove_chunk_from_group: #{e}"
925
+ end
926
+ ```
927
+
928
+ #### Using the remove_chunk_from_group_with_http_info variant
929
+
930
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
931
+
932
+ > <Array(nil, Integer, Hash)> remove_chunk_from_group_with_http_info(tr_dataset, group_id, create_chunk_group_data)
933
+
934
+ ```ruby
935
+ begin
936
+ # remove_chunk_from_group
937
+ data, status_code, headers = api_instance.remove_chunk_from_group_with_http_info(tr_dataset, group_id, create_chunk_group_data)
938
+ p status_code # => 2xx
939
+ p headers # => { ... }
940
+ p data # => nil
941
+ rescue TrieveRubyClient::ApiError => e
942
+ puts "Error when calling ChunkGroupApi->remove_chunk_from_group_with_http_info: #{e}"
943
+ end
944
+ ```
945
+
946
+ ### Parameters
947
+
948
+ | Name | Type | Description | Notes |
949
+ | ---- | ---- | ----------- | ----- |
950
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
951
+ | **group_id** | **String** | Id of the group to remove the bookmark&#39;ed chunk from | |
952
+ | **create_chunk_group_data** | [**CreateChunkGroupData**](CreateChunkGroupData.md) | JSON request payload to cretea a chunkGroup | |
953
+
954
+ ### Return type
955
+
956
+ nil (empty response body)
957
+
958
+ ### Authorization
959
+
960
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
961
+
962
+ ### HTTP request headers
963
+
964
+ - **Content-Type**: application/json
965
+ - **Accept**: application/json
966
+
967
+
968
+ ## search_over_groups
969
+
970
+ > <SearchOverGroupsResponseBody> search_over_groups(search_over_groups_data)
971
+
972
+ group_oriented_search
973
+
974
+ group_oriented_search This route allows you to get groups as results instead of chunks. Each group returned will have the matching chunks sorted by similarity within the group. This is useful for when you want to get groups of chunks which are similar to the search query. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large. Compatible with semantic, fulltext, or hybrid search modes.
975
+
976
+ ### Examples
977
+
978
+ ```ruby
979
+ require 'time'
980
+ require 'trieve_ruby_client'
981
+
982
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
983
+ search_over_groups_data = TrieveRubyClient::SearchOverGroupsData.new({query: 'query_example', search_type: 'search_type_example'}) # SearchOverGroupsData | JSON request payload to semantically search over groups
984
+
985
+ begin
986
+ # group_oriented_search
987
+ result = api_instance.search_over_groups(search_over_groups_data)
988
+ p result
989
+ rescue TrieveRubyClient::ApiError => e
990
+ puts "Error when calling ChunkGroupApi->search_over_groups: #{e}"
991
+ end
992
+ ```
993
+
994
+ #### Using the search_over_groups_with_http_info variant
995
+
996
+ This returns an Array which contains the response data, status code and headers.
997
+
998
+ > <Array(<SearchOverGroupsResponseBody>, Integer, Hash)> search_over_groups_with_http_info(search_over_groups_data)
999
+
1000
+ ```ruby
1001
+ begin
1002
+ # group_oriented_search
1003
+ data, status_code, headers = api_instance.search_over_groups_with_http_info(search_over_groups_data)
1004
+ p status_code # => 2xx
1005
+ p headers # => { ... }
1006
+ p data # => <SearchOverGroupsResponseBody>
1007
+ rescue TrieveRubyClient::ApiError => e
1008
+ puts "Error when calling ChunkGroupApi->search_over_groups_with_http_info: #{e}"
1009
+ end
1010
+ ```
1011
+
1012
+ ### Parameters
1013
+
1014
+ | Name | Type | Description | Notes |
1015
+ | ---- | ---- | ----------- | ----- |
1016
+ | **search_over_groups_data** | [**SearchOverGroupsData**](SearchOverGroupsData.md) | JSON request payload to semantically search over groups | |
1017
+
1018
+ ### Return type
1019
+
1020
+ [**SearchOverGroupsResponseBody**](SearchOverGroupsResponseBody.md)
1021
+
1022
+ ### Authorization
1023
+
1024
+ No authorization required
1025
+
1026
+ ### HTTP request headers
1027
+
1028
+ - **Content-Type**: application/json
1029
+ - **Accept**: application/json
1030
+
1031
+
1032
+ ## search_within_group
1033
+
1034
+ > <SearchGroupsResult> search_within_group(tr_dataset, search_within_group_data)
1035
+
1036
+ search_within_group
1037
+
1038
+ search_within_group This route allows you to search only within a group. This is useful for when you only want search results to contain chunks which are members of a specific group. If choosing hybrid search, the results will be re-ranked using BAAI/bge-reranker-large.
1039
+
1040
+ ### Examples
1041
+
1042
+ ```ruby
1043
+ require 'time'
1044
+ require 'trieve_ruby_client'
1045
+ # setup authorization
1046
+ TrieveRubyClient.configure do |config|
1047
+ # Configure API key authorization: Cookie
1048
+ config.api_key['Cookie'] = 'YOUR API KEY'
1049
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1050
+ # config.api_key_prefix['Cookie'] = 'Bearer'
1051
+
1052
+ # Configure API key authorization: ApiKey
1053
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1054
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1055
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1056
+ end
1057
+
1058
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
1059
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
1060
+ search_within_group_data = TrieveRubyClient::SearchWithinGroupData.new({query: 'query_example', search_type: 'search_type_example'}) # SearchWithinGroupData | JSON request payload to semantically search a group
1061
+
1062
+ begin
1063
+ # search_within_group
1064
+ result = api_instance.search_within_group(tr_dataset, search_within_group_data)
1065
+ p result
1066
+ rescue TrieveRubyClient::ApiError => e
1067
+ puts "Error when calling ChunkGroupApi->search_within_group: #{e}"
1068
+ end
1069
+ ```
1070
+
1071
+ #### Using the search_within_group_with_http_info variant
1072
+
1073
+ This returns an Array which contains the response data, status code and headers.
1074
+
1075
+ > <Array(<SearchGroupsResult>, Integer, Hash)> search_within_group_with_http_info(tr_dataset, search_within_group_data)
1076
+
1077
+ ```ruby
1078
+ begin
1079
+ # search_within_group
1080
+ data, status_code, headers = api_instance.search_within_group_with_http_info(tr_dataset, search_within_group_data)
1081
+ p status_code # => 2xx
1082
+ p headers # => { ... }
1083
+ p data # => <SearchGroupsResult>
1084
+ rescue TrieveRubyClient::ApiError => e
1085
+ puts "Error when calling ChunkGroupApi->search_within_group_with_http_info: #{e}"
1086
+ end
1087
+ ```
1088
+
1089
+ ### Parameters
1090
+
1091
+ | Name | Type | Description | Notes |
1092
+ | ---- | ---- | ----------- | ----- |
1093
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
1094
+ | **search_within_group_data** | [**SearchWithinGroupData**](SearchWithinGroupData.md) | JSON request payload to semantically search a group | |
1095
+
1096
+ ### Return type
1097
+
1098
+ [**SearchGroupsResult**](SearchGroupsResult.md)
1099
+
1100
+ ### Authorization
1101
+
1102
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
1103
+
1104
+ ### HTTP request headers
1105
+
1106
+ - **Content-Type**: application/json
1107
+ - **Accept**: application/json
1108
+
1109
+
1110
+ ## update_chunk_group
1111
+
1112
+ > update_chunk_group(tr_dataset, update_chunk_group_data)
1113
+
1114
+ update_chunk_group
1115
+
1116
+ update_chunk_group Update a chunk_group.
1117
+
1118
+ ### Examples
1119
+
1120
+ ```ruby
1121
+ require 'time'
1122
+ require 'trieve_ruby_client'
1123
+ # setup authorization
1124
+ TrieveRubyClient.configure do |config|
1125
+ # Configure API key authorization: Cookie
1126
+ config.api_key['Cookie'] = 'YOUR API KEY'
1127
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1128
+ # config.api_key_prefix['Cookie'] = 'Bearer'
1129
+
1130
+ # Configure API key authorization: ApiKey
1131
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1132
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1133
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1134
+ end
1135
+
1136
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
1137
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
1138
+ update_chunk_group_data = TrieveRubyClient::UpdateChunkGroupData.new # UpdateChunkGroupData | JSON request payload to update a chunkGroup
1139
+
1140
+ begin
1141
+ # update_chunk_group
1142
+ api_instance.update_chunk_group(tr_dataset, update_chunk_group_data)
1143
+ rescue TrieveRubyClient::ApiError => e
1144
+ puts "Error when calling ChunkGroupApi->update_chunk_group: #{e}"
1145
+ end
1146
+ ```
1147
+
1148
+ #### Using the update_chunk_group_with_http_info variant
1149
+
1150
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1151
+
1152
+ > <Array(nil, Integer, Hash)> update_chunk_group_with_http_info(tr_dataset, update_chunk_group_data)
1153
+
1154
+ ```ruby
1155
+ begin
1156
+ # update_chunk_group
1157
+ data, status_code, headers = api_instance.update_chunk_group_with_http_info(tr_dataset, update_chunk_group_data)
1158
+ p status_code # => 2xx
1159
+ p headers # => { ... }
1160
+ p data # => nil
1161
+ rescue TrieveRubyClient::ApiError => e
1162
+ puts "Error when calling ChunkGroupApi->update_chunk_group_with_http_info: #{e}"
1163
+ end
1164
+ ```
1165
+
1166
+ ### Parameters
1167
+
1168
+ | Name | Type | Description | Notes |
1169
+ | ---- | ---- | ----------- | ----- |
1170
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
1171
+ | **update_chunk_group_data** | [**UpdateChunkGroupData**](UpdateChunkGroupData.md) | JSON request payload to update a chunkGroup | |
1172
+
1173
+ ### Return type
1174
+
1175
+ nil (empty response body)
1176
+
1177
+ ### Authorization
1178
+
1179
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
1180
+
1181
+ ### HTTP request headers
1182
+
1183
+ - **Content-Type**: application/json
1184
+ - **Accept**: application/json
1185
+
1186
+
1187
+ ## update_group_by_tracking_id
1188
+
1189
+ > update_group_by_tracking_id(tr_dataset, tracking_id, update_group_by_tracking_id_data)
1190
+
1191
+
1192
+
1193
+ ### Examples
1194
+
1195
+ ```ruby
1196
+ require 'time'
1197
+ require 'trieve_ruby_client'
1198
+ # setup authorization
1199
+ TrieveRubyClient.configure do |config|
1200
+ # Configure API key authorization: Cookie
1201
+ config.api_key['Cookie'] = 'YOUR API KEY'
1202
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1203
+ # config.api_key_prefix['Cookie'] = 'Bearer'
1204
+
1205
+ # Configure API key authorization: ApiKey
1206
+ config.api_key['ApiKey'] = 'YOUR API KEY'
1207
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1208
+ # config.api_key_prefix['ApiKey'] = 'Bearer'
1209
+ end
1210
+
1211
+ api_instance = TrieveRubyClient::ChunkGroupApi.new
1212
+ tr_dataset = 'tr_dataset_example' # String | The dataset id to use for the request
1213
+ tracking_id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Tracking id of the chunk_group to update
1214
+ update_group_by_tracking_id_data = TrieveRubyClient::UpdateGroupByTrackingIDData.new({tracking_id: 'tracking_id_example'}) # UpdateGroupByTrackingIDData | JSON request payload to update a chunkGroup
1215
+
1216
+ begin
1217
+
1218
+ api_instance.update_group_by_tracking_id(tr_dataset, tracking_id, update_group_by_tracking_id_data)
1219
+ rescue TrieveRubyClient::ApiError => e
1220
+ puts "Error when calling ChunkGroupApi->update_group_by_tracking_id: #{e}"
1221
+ end
1222
+ ```
1223
+
1224
+ #### Using the update_group_by_tracking_id_with_http_info variant
1225
+
1226
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1227
+
1228
+ > <Array(nil, Integer, Hash)> update_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, update_group_by_tracking_id_data)
1229
+
1230
+ ```ruby
1231
+ begin
1232
+
1233
+ data, status_code, headers = api_instance.update_group_by_tracking_id_with_http_info(tr_dataset, tracking_id, update_group_by_tracking_id_data)
1234
+ p status_code # => 2xx
1235
+ p headers # => { ... }
1236
+ p data # => nil
1237
+ rescue TrieveRubyClient::ApiError => e
1238
+ puts "Error when calling ChunkGroupApi->update_group_by_tracking_id_with_http_info: #{e}"
1239
+ end
1240
+ ```
1241
+
1242
+ ### Parameters
1243
+
1244
+ | Name | Type | Description | Notes |
1245
+ | ---- | ---- | ----------- | ----- |
1246
+ | **tr_dataset** | **String** | The dataset id to use for the request | |
1247
+ | **tracking_id** | **String** | Tracking id of the chunk_group to update | |
1248
+ | **update_group_by_tracking_id_data** | [**UpdateGroupByTrackingIDData**](UpdateGroupByTrackingIDData.md) | JSON request payload to update a chunkGroup | |
1249
+
1250
+ ### Return type
1251
+
1252
+ nil (empty response body)
1253
+
1254
+ ### Authorization
1255
+
1256
+ [Cookie](../README.md#Cookie), [ApiKey](../README.md#ApiKey)
1257
+
1258
+ ### HTTP request headers
1259
+
1260
+ - **Content-Type**: application/json
1261
+ - **Accept**: application/json
1262
+