@cosmotech/api-ts 3.3.4 → 4.2.5-onprem

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 (154) hide show
  1. package/.github/workflows/publish.yaml +13 -12
  2. package/.github/workflows/track_dependencies.yml +31 -0
  3. package/.openapi-generator/FILES +98 -0
  4. package/.openapi-generator/VERSION +1 -1
  5. package/README.md +210 -2
  6. package/api.ts +4650 -11656
  7. package/base.ts +2 -2
  8. package/common.ts +22 -44
  9. package/configuration.ts +7 -2
  10. package/dist/api.d.ts +2165 -6422
  11. package/dist/api.js +726 -7302
  12. package/dist/base.d.ts +1 -1
  13. package/dist/base.js +2 -2
  14. package/dist/common.d.ts +5 -36
  15. package/dist/common.js +17 -39
  16. package/dist/configuration.d.ts +1 -1
  17. package/dist/configuration.js +14 -2
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +1 -1
  20. package/docs/AboutInfo.md +21 -0
  21. package/docs/AboutInfoVersion.md +33 -0
  22. package/docs/ComponentRolePermissions.md +23 -0
  23. package/docs/Connector.md +41 -0
  24. package/docs/ConnectorApi.md +218 -0
  25. package/docs/ConnectorParameter.md +31 -0
  26. package/docs/ConnectorParameterGroup.md +25 -0
  27. package/docs/ContainerResourceSizeInfo.md +23 -0
  28. package/docs/ContainerResourceSizing.md +23 -0
  29. package/docs/CreateInfo.md +24 -0
  30. package/docs/CreatedRun.md +21 -0
  31. package/docs/Dataset.md +65 -0
  32. package/docs/DatasetAccessControl.md +23 -0
  33. package/docs/DatasetApi.md +1809 -0
  34. package/docs/DatasetCompatibility.md +25 -0
  35. package/docs/DatasetConnector.md +27 -0
  36. package/docs/DatasetCopyParameters.md +25 -0
  37. package/docs/DatasetCreateInfo.md +24 -0
  38. package/docs/DatasetCreateRequest.md +31 -0
  39. package/docs/DatasetEditInfo.md +22 -0
  40. package/docs/DatasetMemberGroup.md +25 -0
  41. package/docs/DatasetMemberUser.md +23 -0
  42. package/docs/DatasetMembers.md +23 -0
  43. package/docs/DatasetPart.md +43 -0
  44. package/docs/DatasetPartCreateRequest.md +31 -0
  45. package/docs/DatasetPartTypeEnum.md +11 -0
  46. package/docs/DatasetPartUpdateRequest.md +27 -0
  47. package/docs/DatasetRole.md +21 -0
  48. package/docs/DatasetSearch.md +21 -0
  49. package/docs/DatasetSecurity.md +23 -0
  50. package/docs/DatasetSourceType.md +19 -0
  51. package/docs/DatasetTwinGraphHash.md +21 -0
  52. package/docs/DatasetTwinGraphInfo.md +25 -0
  53. package/docs/DatasetTwinGraphQuery.md +21 -0
  54. package/docs/DatasetUpdateRequest.md +29 -0
  55. package/docs/DeleteHistoricalData.md +25 -0
  56. package/docs/EditInfo.md +22 -0
  57. package/docs/FileUploadMetadata.md +22 -0
  58. package/docs/FileUploadValidation.md +23 -0
  59. package/docs/GraphProperties.md +28 -0
  60. package/docs/IAMInfoApi.md +95 -0
  61. package/docs/IngestionStatusEnum.md +15 -0
  62. package/docs/IoTypesEnum.md +11 -0
  63. package/docs/LastRunInfo.md +23 -0
  64. package/docs/MemberGroup.md +25 -0
  65. package/docs/MemberUser.md +23 -0
  66. package/docs/Members.md +23 -0
  67. package/docs/MetaApi.md +52 -0
  68. package/docs/Organization.md +27 -0
  69. package/docs/OrganizationAccessControl.md +23 -0
  70. package/docs/OrganizationApi.md +758 -0
  71. package/docs/OrganizationCreateRequest.md +23 -0
  72. package/docs/OrganizationEditInfo.md +22 -0
  73. package/docs/OrganizationMemberGroup.md +25 -0
  74. package/docs/OrganizationMemberUser.md +23 -0
  75. package/docs/OrganizationMembers.md +23 -0
  76. package/docs/OrganizationRole.md +21 -0
  77. package/docs/OrganizationSecurity.md +23 -0
  78. package/docs/OrganizationUpdateRequest.md +21 -0
  79. package/docs/QueryResult.md +21 -0
  80. package/docs/ResourceSizeInfo.md +23 -0
  81. package/docs/Run.md +57 -0
  82. package/docs/RunApi.md +442 -0
  83. package/docs/RunContainer.md +41 -0
  84. package/docs/RunData.md +25 -0
  85. package/docs/RunDataQuery.md +21 -0
  86. package/docs/RunEditInfo.md +22 -0
  87. package/docs/RunLogs.md +23 -0
  88. package/docs/RunLogsEntry.md +21 -0
  89. package/docs/RunResourceRequested.md +23 -0
  90. package/docs/RunState.md +15 -0
  91. package/docs/RunStatus.md +47 -0
  92. package/docs/RunStatusNode.md +43 -0
  93. package/docs/RunTemplate.md +87 -0
  94. package/docs/RunTemplateCreateRequest.md +37 -0
  95. package/docs/RunTemplateOrchestrator.md +11 -0
  96. package/docs/RunTemplateParameter.md +35 -0
  97. package/docs/RunTemplateParameterCreateRequest.md +35 -0
  98. package/docs/RunTemplateParameterGroup.md +31 -0
  99. package/docs/RunTemplateParameterGroupCreateRequest.md +29 -0
  100. package/docs/RunTemplateParameterGroupUpdateRequest.md +27 -0
  101. package/docs/RunTemplateParameterUpdateRequest.md +33 -0
  102. package/docs/RunTemplateParameterValue.md +25 -0
  103. package/docs/RunTemplateResourceSizing.md +23 -0
  104. package/docs/RunTemplateStepSource.md +15 -0
  105. package/docs/RunTemplateUpdateRequest.md +35 -0
  106. package/docs/Runner.md +63 -0
  107. package/docs/RunnerAccessControl.md +23 -0
  108. package/docs/RunnerApi.md +908 -0
  109. package/docs/RunnerCreateRequest.md +45 -0
  110. package/docs/RunnerDatasets.md +24 -0
  111. package/docs/RunnerEditInfo.md +22 -0
  112. package/docs/RunnerMemberGroup.md +25 -0
  113. package/docs/RunnerMemberUser.md +23 -0
  114. package/docs/RunnerMembers.md +23 -0
  115. package/docs/RunnerResourceSizing.md +23 -0
  116. package/docs/RunnerRole.md +21 -0
  117. package/docs/RunnerRunTemplateParameterValue.md +27 -0
  118. package/docs/RunnerSecurity.md +23 -0
  119. package/docs/RunnerStatus.md +11 -0
  120. package/docs/RunnerUpdateRequest.md +41 -0
  121. package/docs/RunnerValidationStatus.md +15 -0
  122. package/docs/SendRunDataRequest.md +22 -0
  123. package/docs/Solution.md +53 -0
  124. package/docs/SolutionAccessControl.md +23 -0
  125. package/docs/SolutionApi.md +1159 -0
  126. package/docs/SolutionCreateRequest.md +43 -0
  127. package/docs/SolutionEditInfo.md +22 -0
  128. package/docs/SolutionFile.md +21 -0
  129. package/docs/SolutionMemberGroup.md +25 -0
  130. package/docs/SolutionMemberUser.md +23 -0
  131. package/docs/SolutionMembers.md +23 -0
  132. package/docs/SolutionRole.md +21 -0
  133. package/docs/SolutionSecurity.md +23 -0
  134. package/docs/SolutionUpdateRequest.md +41 -0
  135. package/docs/SourceInfo.md +27 -0
  136. package/docs/SubDatasetGraphQuery.md +27 -0
  137. package/docs/TwinGraphBatchResult.md +25 -0
  138. package/docs/TwincacheStatusEnum.md +11 -0
  139. package/docs/Workspace.md +57 -0
  140. package/docs/WorkspaceAccessControl.md +23 -0
  141. package/docs/WorkspaceApi.md +1162 -0
  142. package/docs/WorkspaceCreateRequest.md +35 -0
  143. package/docs/WorkspaceEditInfo.md +22 -0
  144. package/docs/WorkspaceFile.md +21 -0
  145. package/docs/WorkspaceMemberGroup.md +25 -0
  146. package/docs/WorkspaceMemberUser.md +23 -0
  147. package/docs/WorkspaceMembers.md +23 -0
  148. package/docs/WorkspaceRole.md +21 -0
  149. package/docs/WorkspaceSecurity.md +23 -0
  150. package/docs/WorkspaceSolution.md +25 -0
  151. package/docs/WorkspaceUpdateRequest.md +31 -0
  152. package/docs/WorkspaceWebApp.md +25 -0
  153. package/index.ts +1 -1
  154. package/package.json +2 -2
@@ -0,0 +1,1809 @@
1
+ # DatasetApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**addDatasetAccessControl**](#adddatasetaccesscontrol) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/security/access | Add a control access to the Dataset|
8
+ |[**addOrReplaceDatasetCompatibilityElements**](#addorreplacedatasetcompatibilityelements) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/compatibility | Add Dataset Compatibility elements.|
9
+ |[**copyDataset**](#copydataset) | **POST** /organizations/{organization_id}/datasets/copy | Copy a Dataset to another Dataset.|
10
+ |[**createDataset**](#createdataset) | **POST** /organizations/{organization_id}/datasets | Create a new Dataset|
11
+ |[**createSubDataset**](#createsubdataset) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/subdataset | Create a sub-dataset from the dataset in parameter|
12
+ |[**createTwingraphEntities**](#createtwingraphentities) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type} | Create new entities in a graph instance|
13
+ |[**deleteDataset**](#deletedataset) | **DELETE** /organizations/{organization_id}/datasets/{dataset_id} | Delete a dataset|
14
+ |[**deleteTwingraphEntities**](#deletetwingraphentities) | **DELETE** /organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type} | Delete entities in a graph instance|
15
+ |[**downloadTwingraph**](#downloadtwingraph) | **GET** /organizations/{organization_id}/datasets/twingraph/download/{hash} | Download a graph as a zip file|
16
+ |[**findAllDatasets**](#findalldatasets) | **GET** /organizations/{organization_id}/datasets | List all Datasets|
17
+ |[**findDatasetById**](#finddatasetbyid) | **GET** /organizations/{organization_id}/datasets/{dataset_id} | Get the details of a Dataset|
18
+ |[**getDatasetAccessControl**](#getdatasetaccesscontrol) | **GET** /organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id} | Get a control access for the Dataset|
19
+ |[**getDatasetSecurity**](#getdatasetsecurity) | **GET** /organizations/{organization_id}/datasets/{dataset_id}/security | Get the Dataset security information|
20
+ |[**getDatasetSecurityUsers**](#getdatasetsecurityusers) | **GET** /organizations/{organization_id}/datasets/{dataset_id}/security/users | Get the Dataset security users list|
21
+ |[**getDatasetTwingraphStatus**](#getdatasettwingraphstatus) | **GET** /organizations/{organization_id}/datasets/{dataset_id}/status | Get the dataset\'s refresh job status|
22
+ |[**getTwingraphEntities**](#gettwingraphentities) | **GET** /organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type} | Get entities in a graph instance|
23
+ |[**linkWorkspace**](#linkworkspace) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/link | |
24
+ |[**refreshDataset**](#refreshdataset) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/refresh | Refresh data on dataset from dataset\'s source|
25
+ |[**removeAllDatasetCompatibilityElements**](#removealldatasetcompatibilityelements) | **DELETE** /organizations/{organization_id}/datasets/{dataset_id}/compatibility | Remove all Dataset Compatibility elements from the Dataset specified|
26
+ |[**removeDatasetAccessControl**](#removedatasetaccesscontrol) | **DELETE** /organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id} | Remove the specified access from the given Dataset|
27
+ |[**rollbackRefresh**](#rollbackrefresh) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/refresh/rollback | Rollback the dataset after a failed refresh|
28
+ |[**searchDatasets**](#searchdatasets) | **POST** /organizations/{organization_id}/datasets/search | Search Datasets by tags|
29
+ |[**setDatasetDefaultSecurity**](#setdatasetdefaultsecurity) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/security/default | Set the Dataset default security|
30
+ |[**twingraphBatchQuery**](#twingraphbatchquery) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/batch-query | Run a query on a graph instance and return the result as a zip file in async mode|
31
+ |[**twingraphBatchUpdate**](#twingraphbatchupdate) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/batch | Async batch update by loading a CSV file on a graph instance |
32
+ |[**twingraphQuery**](#twingraphquery) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/twingraph | Return the result of a query made on the graph instance as a json|
33
+ |[**unlinkWorkspace**](#unlinkworkspace) | **POST** /organizations/{organization_id}/datasets/{dataset_id}/unlink | |
34
+ |[**updateDataset**](#updatedataset) | **PATCH** /organizations/{organization_id}/datasets/{dataset_id} | Update a dataset|
35
+ |[**updateDatasetAccessControl**](#updatedatasetaccesscontrol) | **PATCH** /organizations/{organization_id}/datasets/{dataset_id}/security/access/{identity_id} | Update the specified access to User for a Dataset|
36
+ |[**updateTwingraphEntities**](#updatetwingraphentities) | **PATCH** /organizations/{organization_id}/datasets/{dataset_id}/twingraph/{type} | Update entities in a graph instance|
37
+ |[**uploadTwingraph**](#uploadtwingraph) | **POST** /organizations/{organization_id}/datasets/{dataset_id} | Upload data from zip file to dataset\'s twingraph|
38
+
39
+ # **addDatasetAccessControl**
40
+ > DatasetAccessControl addDatasetAccessControl(datasetAccessControl)
41
+
42
+
43
+ ### Example
44
+
45
+ ```typescript
46
+ import {
47
+ DatasetApi,
48
+ Configuration,
49
+ DatasetAccessControl
50
+ } from '@cosmotech/api-ts';
51
+
52
+ const configuration = new Configuration();
53
+ const apiInstance = new DatasetApi(configuration);
54
+
55
+ let organizationId: string; //the Organization identifier (default to undefined)
56
+ let datasetId: string; //the Dataset identifier (default to undefined)
57
+ let datasetAccessControl: DatasetAccessControl; //the new Dataset security access to add.
58
+
59
+ const { status, data } = await apiInstance.addDatasetAccessControl(
60
+ organizationId,
61
+ datasetId,
62
+ datasetAccessControl
63
+ );
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ |Name | Type | Description | Notes|
69
+ |------------- | ------------- | ------------- | -------------|
70
+ | **datasetAccessControl** | **DatasetAccessControl**| the new Dataset security access to add. | |
71
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
72
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
73
+
74
+
75
+ ### Return type
76
+
77
+ **DatasetAccessControl**
78
+
79
+ ### Authorization
80
+
81
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: application/json, application/yaml
86
+ - **Accept**: application/json
87
+
88
+
89
+ ### HTTP response details
90
+ | Status code | Description | Response headers |
91
+ |-------------|-------------|------------------|
92
+ |**201** | The Dataset access | - |
93
+ |**404** | the Dataset specified is unknown or you don\'t have access to it | - |
94
+
95
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
96
+
97
+ # **addOrReplaceDatasetCompatibilityElements**
98
+ > Array<DatasetCompatibility> addOrReplaceDatasetCompatibilityElements(datasetCompatibility)
99
+
100
+
101
+ ### Example
102
+
103
+ ```typescript
104
+ import {
105
+ DatasetApi,
106
+ Configuration
107
+ } from '@cosmotech/api-ts';
108
+
109
+ const configuration = new Configuration();
110
+ const apiInstance = new DatasetApi(configuration);
111
+
112
+ let organizationId: string; //the Organization identifier (default to undefined)
113
+ let datasetId: string; //the Dataset identifier (default to undefined)
114
+ let datasetCompatibility: Array<DatasetCompatibility>; //the Dataset Compatibility elements
115
+
116
+ const { status, data } = await apiInstance.addOrReplaceDatasetCompatibilityElements(
117
+ organizationId,
118
+ datasetId,
119
+ datasetCompatibility
120
+ );
121
+ ```
122
+
123
+ ### Parameters
124
+
125
+ |Name | Type | Description | Notes|
126
+ |------------- | ------------- | ------------- | -------------|
127
+ | **datasetCompatibility** | **Array<DatasetCompatibility>**| the Dataset Compatibility elements | |
128
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
129
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
130
+
131
+
132
+ ### Return type
133
+
134
+ **Array<DatasetCompatibility>**
135
+
136
+ ### Authorization
137
+
138
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: application/json
143
+ - **Accept**: application/json
144
+
145
+
146
+ ### HTTP response details
147
+ | Status code | Description | Response headers |
148
+ |-------------|-------------|------------------|
149
+ |**201** | the Dataset Compatibility elements | - |
150
+ |**400** | Bad request | - |
151
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
152
+
153
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
154
+
155
+ # **copyDataset**
156
+ > DatasetCopyParameters copyDataset(datasetCopyParameters)
157
+
158
+ Not implemented!
159
+
160
+ ### Example
161
+
162
+ ```typescript
163
+ import {
164
+ DatasetApi,
165
+ Configuration,
166
+ DatasetCopyParameters
167
+ } from '@cosmotech/api-ts';
168
+
169
+ const configuration = new Configuration();
170
+ const apiInstance = new DatasetApi(configuration);
171
+
172
+ let organizationId: string; //the Organization identifier (default to undefined)
173
+ let datasetCopyParameters: DatasetCopyParameters; //the Dataset copy parameters
174
+
175
+ const { status, data } = await apiInstance.copyDataset(
176
+ organizationId,
177
+ datasetCopyParameters
178
+ );
179
+ ```
180
+
181
+ ### Parameters
182
+
183
+ |Name | Type | Description | Notes|
184
+ |------------- | ------------- | ------------- | -------------|
185
+ | **datasetCopyParameters** | **DatasetCopyParameters**| the Dataset copy parameters | |
186
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
187
+
188
+
189
+ ### Return type
190
+
191
+ **DatasetCopyParameters**
192
+
193
+ ### Authorization
194
+
195
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
196
+
197
+ ### HTTP request headers
198
+
199
+ - **Content-Type**: application/json, application/yaml
200
+ - **Accept**: application/json
201
+
202
+
203
+ ### HTTP response details
204
+ | Status code | Description | Response headers |
205
+ |-------------|-------------|------------------|
206
+ |**201** | the Dataset copy operation parameters | - |
207
+ |**400** | Bad request | - |
208
+ |**404** | the Dataset specified as Source or Target is unknown or you don\&#39;t have access to it | - |
209
+
210
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
211
+
212
+ # **createDataset**
213
+ > Dataset createDataset(dataset)
214
+
215
+
216
+ ### Example
217
+
218
+ ```typescript
219
+ import {
220
+ DatasetApi,
221
+ Configuration,
222
+ Dataset
223
+ } from '@cosmotech/api-ts';
224
+
225
+ const configuration = new Configuration();
226
+ const apiInstance = new DatasetApi(configuration);
227
+
228
+ let organizationId: string; //the Organization identifier (default to undefined)
229
+ let dataset: Dataset; //the Dataset to create
230
+
231
+ const { status, data } = await apiInstance.createDataset(
232
+ organizationId,
233
+ dataset
234
+ );
235
+ ```
236
+
237
+ ### Parameters
238
+
239
+ |Name | Type | Description | Notes|
240
+ |------------- | ------------- | ------------- | -------------|
241
+ | **dataset** | **Dataset**| the Dataset to create | |
242
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
243
+
244
+
245
+ ### Return type
246
+
247
+ **Dataset**
248
+
249
+ ### Authorization
250
+
251
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: application/json, application/yaml
256
+ - **Accept**: application/json
257
+
258
+
259
+ ### HTTP response details
260
+ | Status code | Description | Response headers |
261
+ |-------------|-------------|------------------|
262
+ |**201** | the dataset details | - |
263
+ |**400** | Bad request | - |
264
+
265
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
266
+
267
+ # **createSubDataset**
268
+ > Dataset createSubDataset(subDatasetGraphQuery)
269
+
270
+ Create a copy of the dataset using the results of the list of queries given in parameter. Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
271
+
272
+ ### Example
273
+
274
+ ```typescript
275
+ import {
276
+ DatasetApi,
277
+ Configuration,
278
+ SubDatasetGraphQuery
279
+ } from '@cosmotech/api-ts';
280
+
281
+ const configuration = new Configuration();
282
+ const apiInstance = new DatasetApi(configuration);
283
+
284
+ let organizationId: string; //the Organization identifier (default to undefined)
285
+ let datasetId: string; //the Dataset identifier (default to undefined)
286
+ let subDatasetGraphQuery: SubDatasetGraphQuery; //the Cypher query to filter
287
+
288
+ const { status, data } = await apiInstance.createSubDataset(
289
+ organizationId,
290
+ datasetId,
291
+ subDatasetGraphQuery
292
+ );
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ |Name | Type | Description | Notes|
298
+ |------------- | ------------- | ------------- | -------------|
299
+ | **subDatasetGraphQuery** | **SubDatasetGraphQuery**| the Cypher query to filter | |
300
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
301
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
302
+
303
+
304
+ ### Return type
305
+
306
+ **Dataset**
307
+
308
+ ### Authorization
309
+
310
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: application/json
315
+ - **Accept**: application/json
316
+
317
+
318
+ ### HTTP response details
319
+ | Status code | Description | Response headers |
320
+ |-------------|-------------|------------------|
321
+ |**200** | Successful response | - |
322
+
323
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
324
+
325
+ # **createTwingraphEntities**
326
+ > string createTwingraphEntities(graphProperties)
327
+
328
+ Create new entities in a graph instance Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
329
+
330
+ ### Example
331
+
332
+ ```typescript
333
+ import {
334
+ DatasetApi,
335
+ Configuration
336
+ } from '@cosmotech/api-ts';
337
+
338
+ const configuration = new Configuration();
339
+ const apiInstance = new DatasetApi(configuration);
340
+
341
+ let organizationId: string; //the Organization identifier (default to undefined)
342
+ let datasetId: string; //the Dataset Identifier (default to undefined)
343
+ let type: 'node' | 'relationship'; //the entity model type (default to undefined)
344
+ let graphProperties: Array<GraphProperties>; //the entities to create
345
+
346
+ const { status, data } = await apiInstance.createTwingraphEntities(
347
+ organizationId,
348
+ datasetId,
349
+ type,
350
+ graphProperties
351
+ );
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ |Name | Type | Description | Notes|
357
+ |------------- | ------------- | ------------- | -------------|
358
+ | **graphProperties** | **Array<GraphProperties>**| the entities to create | |
359
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
360
+ | **datasetId** | [**string**] | the Dataset Identifier | defaults to undefined|
361
+ | **type** | [**&#39;node&#39; | &#39;relationship&#39;**]**Array<&#39;node&#39; &#124; &#39;relationship&#39;>** | the entity model type | defaults to undefined|
362
+
363
+
364
+ ### Return type
365
+
366
+ **string**
367
+
368
+ ### Authorization
369
+
370
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
371
+
372
+ ### HTTP request headers
373
+
374
+ - **Content-Type**: application/json
375
+ - **Accept**: application/json
376
+
377
+
378
+ ### HTTP response details
379
+ | Status code | Description | Response headers |
380
+ |-------------|-------------|------------------|
381
+ |**200** | Successful response | - |
382
+
383
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
384
+
385
+ # **deleteDataset**
386
+ > deleteDataset()
387
+
388
+
389
+ ### Example
390
+
391
+ ```typescript
392
+ import {
393
+ DatasetApi,
394
+ Configuration
395
+ } from '@cosmotech/api-ts';
396
+
397
+ const configuration = new Configuration();
398
+ const apiInstance = new DatasetApi(configuration);
399
+
400
+ let organizationId: string; //the Organization identifier (default to undefined)
401
+ let datasetId: string; //the Dataset identifier (default to undefined)
402
+
403
+ const { status, data } = await apiInstance.deleteDataset(
404
+ organizationId,
405
+ datasetId
406
+ );
407
+ ```
408
+
409
+ ### Parameters
410
+
411
+ |Name | Type | Description | Notes|
412
+ |------------- | ------------- | ------------- | -------------|
413
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
414
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
415
+
416
+
417
+ ### Return type
418
+
419
+ void (empty response body)
420
+
421
+ ### Authorization
422
+
423
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
424
+
425
+ ### HTTP request headers
426
+
427
+ - **Content-Type**: Not defined
428
+ - **Accept**: Not defined
429
+
430
+
431
+ ### HTTP response details
432
+ | Status code | Description | Response headers |
433
+ |-------------|-------------|------------------|
434
+ |**204** | Request successful | - |
435
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
436
+
437
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
438
+
439
+ # **deleteTwingraphEntities**
440
+ > deleteTwingraphEntities()
441
+
442
+ Delete entities in a graph instance Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
443
+
444
+ ### Example
445
+
446
+ ```typescript
447
+ import {
448
+ DatasetApi,
449
+ Configuration
450
+ } from '@cosmotech/api-ts';
451
+
452
+ const configuration = new Configuration();
453
+ const apiInstance = new DatasetApi(configuration);
454
+
455
+ let organizationId: string; //the Organization identifier (default to undefined)
456
+ let datasetId: string; //the Dataset Identifier (default to undefined)
457
+ let type: 'node' | 'relationship'; //the entity model type (default to undefined)
458
+ let ids: Array<string>; //the entities to delete (default to undefined)
459
+
460
+ const { status, data } = await apiInstance.deleteTwingraphEntities(
461
+ organizationId,
462
+ datasetId,
463
+ type,
464
+ ids
465
+ );
466
+ ```
467
+
468
+ ### Parameters
469
+
470
+ |Name | Type | Description | Notes|
471
+ |------------- | ------------- | ------------- | -------------|
472
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
473
+ | **datasetId** | [**string**] | the Dataset Identifier | defaults to undefined|
474
+ | **type** | [**&#39;node&#39; | &#39;relationship&#39;**]**Array<&#39;node&#39; &#124; &#39;relationship&#39;>** | the entity model type | defaults to undefined|
475
+ | **ids** | **Array&lt;string&gt;** | the entities to delete | defaults to undefined|
476
+
477
+
478
+ ### Return type
479
+
480
+ void (empty response body)
481
+
482
+ ### Authorization
483
+
484
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
485
+
486
+ ### HTTP request headers
487
+
488
+ - **Content-Type**: Not defined
489
+ - **Accept**: Not defined
490
+
491
+
492
+ ### HTTP response details
493
+ | Status code | Description | Response headers |
494
+ |-------------|-------------|------------------|
495
+ |**204** | Successful response | - |
496
+
497
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
498
+
499
+ # **downloadTwingraph**
500
+ > File downloadTwingraph()
501
+
502
+ Download the compressed graph reference by the hash in a zip file Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
503
+
504
+ ### Example
505
+
506
+ ```typescript
507
+ import {
508
+ DatasetApi,
509
+ Configuration
510
+ } from '@cosmotech/api-ts';
511
+
512
+ const configuration = new Configuration();
513
+ const apiInstance = new DatasetApi(configuration);
514
+
515
+ let organizationId: string; //the Organization identifier (default to undefined)
516
+ let hash: string; //the Graph download identifier (default to undefined)
517
+
518
+ const { status, data } = await apiInstance.downloadTwingraph(
519
+ organizationId,
520
+ hash
521
+ );
522
+ ```
523
+
524
+ ### Parameters
525
+
526
+ |Name | Type | Description | Notes|
527
+ |------------- | ------------- | ------------- | -------------|
528
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
529
+ | **hash** | [**string**] | the Graph download identifier | defaults to undefined|
530
+
531
+
532
+ ### Return type
533
+
534
+ **File**
535
+
536
+ ### Authorization
537
+
538
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
539
+
540
+ ### HTTP request headers
541
+
542
+ - **Content-Type**: Not defined
543
+ - **Accept**: application/octet-stream
544
+
545
+
546
+ ### HTTP response details
547
+ | Status code | Description | Response headers |
548
+ |-------------|-------------|------------------|
549
+ |**200** | Successful response | - |
550
+
551
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
552
+
553
+ # **findAllDatasets**
554
+ > Array<Dataset> findAllDatasets()
555
+
556
+
557
+ ### Example
558
+
559
+ ```typescript
560
+ import {
561
+ DatasetApi,
562
+ Configuration
563
+ } from '@cosmotech/api-ts';
564
+
565
+ const configuration = new Configuration();
566
+ const apiInstance = new DatasetApi(configuration);
567
+
568
+ let organizationId: string; //the Organization identifier (default to undefined)
569
+ let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
570
+ let size: number; //amount of result by page (optional) (default to undefined)
571
+
572
+ const { status, data } = await apiInstance.findAllDatasets(
573
+ organizationId,
574
+ page,
575
+ size
576
+ );
577
+ ```
578
+
579
+ ### Parameters
580
+
581
+ |Name | Type | Description | Notes|
582
+ |------------- | ------------- | ------------- | -------------|
583
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
584
+ | **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
585
+ | **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
586
+
587
+
588
+ ### Return type
589
+
590
+ **Array<Dataset>**
591
+
592
+ ### Authorization
593
+
594
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
595
+
596
+ ### HTTP request headers
597
+
598
+ - **Content-Type**: Not defined
599
+ - **Accept**: application/json
600
+
601
+
602
+ ### HTTP response details
603
+ | Status code | Description | Response headers |
604
+ |-------------|-------------|------------------|
605
+ |**200** | the list of Datasets | - |
606
+
607
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
608
+
609
+ # **findDatasetById**
610
+ > Dataset findDatasetById()
611
+
612
+
613
+ ### Example
614
+
615
+ ```typescript
616
+ import {
617
+ DatasetApi,
618
+ Configuration
619
+ } from '@cosmotech/api-ts';
620
+
621
+ const configuration = new Configuration();
622
+ const apiInstance = new DatasetApi(configuration);
623
+
624
+ let organizationId: string; //the Organization identifier (default to undefined)
625
+ let datasetId: string; //the Dataset identifier (default to undefined)
626
+
627
+ const { status, data } = await apiInstance.findDatasetById(
628
+ organizationId,
629
+ datasetId
630
+ );
631
+ ```
632
+
633
+ ### Parameters
634
+
635
+ |Name | Type | Description | Notes|
636
+ |------------- | ------------- | ------------- | -------------|
637
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
638
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
639
+
640
+
641
+ ### Return type
642
+
643
+ **Dataset**
644
+
645
+ ### Authorization
646
+
647
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
648
+
649
+ ### HTTP request headers
650
+
651
+ - **Content-Type**: Not defined
652
+ - **Accept**: application/json
653
+
654
+
655
+ ### HTTP response details
656
+ | Status code | Description | Response headers |
657
+ |-------------|-------------|------------------|
658
+ |**200** | the Dataset details | - |
659
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
660
+
661
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
662
+
663
+ # **getDatasetAccessControl**
664
+ > DatasetAccessControl getDatasetAccessControl()
665
+
666
+
667
+ ### Example
668
+
669
+ ```typescript
670
+ import {
671
+ DatasetApi,
672
+ Configuration
673
+ } from '@cosmotech/api-ts';
674
+
675
+ const configuration = new Configuration();
676
+ const apiInstance = new DatasetApi(configuration);
677
+
678
+ let organizationId: string; //the Organization identifier (default to undefined)
679
+ let datasetId: string; //the Dataset identifier (default to undefined)
680
+ let identityId: string; //the User identifier (default to undefined)
681
+
682
+ const { status, data } = await apiInstance.getDatasetAccessControl(
683
+ organizationId,
684
+ datasetId,
685
+ identityId
686
+ );
687
+ ```
688
+
689
+ ### Parameters
690
+
691
+ |Name | Type | Description | Notes|
692
+ |------------- | ------------- | ------------- | -------------|
693
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
694
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
695
+ | **identityId** | [**string**] | the User identifier | defaults to undefined|
696
+
697
+
698
+ ### Return type
699
+
700
+ **DatasetAccessControl**
701
+
702
+ ### Authorization
703
+
704
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
705
+
706
+ ### HTTP request headers
707
+
708
+ - **Content-Type**: Not defined
709
+ - **Accept**: application/json
710
+
711
+
712
+ ### HTTP response details
713
+ | Status code | Description | Response headers |
714
+ |-------------|-------------|------------------|
715
+ |**200** | The Dataset access | - |
716
+ |**404** | The Dataset or user specified is unknown or you don\&#39;t have access to it | - |
717
+
718
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
719
+
720
+ # **getDatasetSecurity**
721
+ > DatasetSecurity getDatasetSecurity()
722
+
723
+
724
+ ### Example
725
+
726
+ ```typescript
727
+ import {
728
+ DatasetApi,
729
+ Configuration
730
+ } from '@cosmotech/api-ts';
731
+
732
+ const configuration = new Configuration();
733
+ const apiInstance = new DatasetApi(configuration);
734
+
735
+ let organizationId: string; //the Organization identifier (default to undefined)
736
+ let datasetId: string; //the Dataset identifier (default to undefined)
737
+
738
+ const { status, data } = await apiInstance.getDatasetSecurity(
739
+ organizationId,
740
+ datasetId
741
+ );
742
+ ```
743
+
744
+ ### Parameters
745
+
746
+ |Name | Type | Description | Notes|
747
+ |------------- | ------------- | ------------- | -------------|
748
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
749
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
750
+
751
+
752
+ ### Return type
753
+
754
+ **DatasetSecurity**
755
+
756
+ ### Authorization
757
+
758
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
759
+
760
+ ### HTTP request headers
761
+
762
+ - **Content-Type**: Not defined
763
+ - **Accept**: application/json
764
+
765
+
766
+ ### HTTP response details
767
+ | Status code | Description | Response headers |
768
+ |-------------|-------------|------------------|
769
+ |**200** | The Dataset security | - |
770
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
771
+
772
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
773
+
774
+ # **getDatasetSecurityUsers**
775
+ > Array<string> getDatasetSecurityUsers()
776
+
777
+
778
+ ### Example
779
+
780
+ ```typescript
781
+ import {
782
+ DatasetApi,
783
+ Configuration
784
+ } from '@cosmotech/api-ts';
785
+
786
+ const configuration = new Configuration();
787
+ const apiInstance = new DatasetApi(configuration);
788
+
789
+ let organizationId: string; //the Organization identifier (default to undefined)
790
+ let datasetId: string; //the Dataset identifier (default to undefined)
791
+
792
+ const { status, data } = await apiInstance.getDatasetSecurityUsers(
793
+ organizationId,
794
+ datasetId
795
+ );
796
+ ```
797
+
798
+ ### Parameters
799
+
800
+ |Name | Type | Description | Notes|
801
+ |------------- | ------------- | ------------- | -------------|
802
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
803
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
804
+
805
+
806
+ ### Return type
807
+
808
+ **Array<string>**
809
+
810
+ ### Authorization
811
+
812
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
813
+
814
+ ### HTTP request headers
815
+
816
+ - **Content-Type**: Not defined
817
+ - **Accept**: application/json
818
+
819
+
820
+ ### HTTP response details
821
+ | Status code | Description | Response headers |
822
+ |-------------|-------------|------------------|
823
+ |**200** | The Dataset security users list | - |
824
+ |**404** | the Dataset or the User specified is unknown or you don\&#39;t have access to them | - |
825
+
826
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
827
+
828
+ # **getDatasetTwingraphStatus**
829
+ > string getDatasetTwingraphStatus()
830
+
831
+ Get the status of the import workflow lauch on the dataset\'s refresh. This endpoint needs to be called to update a dataset IngestionStatus or TwincacheStatus
832
+
833
+ ### Example
834
+
835
+ ```typescript
836
+ import {
837
+ DatasetApi,
838
+ Configuration
839
+ } from '@cosmotech/api-ts';
840
+
841
+ const configuration = new Configuration();
842
+ const apiInstance = new DatasetApi(configuration);
843
+
844
+ let organizationId: string; //the Organization identifier (default to undefined)
845
+ let datasetId: string; //the dataset identifier (default to undefined)
846
+
847
+ const { status, data } = await apiInstance.getDatasetTwingraphStatus(
848
+ organizationId,
849
+ datasetId
850
+ );
851
+ ```
852
+
853
+ ### Parameters
854
+
855
+ |Name | Type | Description | Notes|
856
+ |------------- | ------------- | ------------- | -------------|
857
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
858
+ | **datasetId** | [**string**] | the dataset identifier | defaults to undefined|
859
+
860
+
861
+ ### Return type
862
+
863
+ **string**
864
+
865
+ ### Authorization
866
+
867
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
868
+
869
+ ### HTTP request headers
870
+
871
+ - **Content-Type**: Not defined
872
+ - **Accept**: application/yaml, application/json
873
+
874
+
875
+ ### HTTP response details
876
+ | Status code | Description | Response headers |
877
+ |-------------|-------------|------------------|
878
+ |**200** | Successful response | - |
879
+
880
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
881
+
882
+ # **getTwingraphEntities**
883
+ > string getTwingraphEntities()
884
+
885
+ Get entities in a graph instance Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
886
+
887
+ ### Example
888
+
889
+ ```typescript
890
+ import {
891
+ DatasetApi,
892
+ Configuration
893
+ } from '@cosmotech/api-ts';
894
+
895
+ const configuration = new Configuration();
896
+ const apiInstance = new DatasetApi(configuration);
897
+
898
+ let organizationId: string; //the Organization identifier (default to undefined)
899
+ let datasetId: string; //the Dataset Identifier (default to undefined)
900
+ let type: 'node' | 'relationship'; //the entity model type (default to undefined)
901
+ let ids: Array<string>; //the entities to get (default to undefined)
902
+
903
+ const { status, data } = await apiInstance.getTwingraphEntities(
904
+ organizationId,
905
+ datasetId,
906
+ type,
907
+ ids
908
+ );
909
+ ```
910
+
911
+ ### Parameters
912
+
913
+ |Name | Type | Description | Notes|
914
+ |------------- | ------------- | ------------- | -------------|
915
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
916
+ | **datasetId** | [**string**] | the Dataset Identifier | defaults to undefined|
917
+ | **type** | [**&#39;node&#39; | &#39;relationship&#39;**]**Array<&#39;node&#39; &#124; &#39;relationship&#39;>** | the entity model type | defaults to undefined|
918
+ | **ids** | **Array&lt;string&gt;** | the entities to get | defaults to undefined|
919
+
920
+
921
+ ### Return type
922
+
923
+ **string**
924
+
925
+ ### Authorization
926
+
927
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
928
+
929
+ ### HTTP request headers
930
+
931
+ - **Content-Type**: Not defined
932
+ - **Accept**: application/json
933
+
934
+
935
+ ### HTTP response details
936
+ | Status code | Description | Response headers |
937
+ |-------------|-------------|------------------|
938
+ |**200** | Successful response | - |
939
+
940
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
941
+
942
+ # **linkWorkspace**
943
+ > Dataset linkWorkspace()
944
+
945
+
946
+ ### Example
947
+
948
+ ```typescript
949
+ import {
950
+ DatasetApi,
951
+ Configuration
952
+ } from '@cosmotech/api-ts';
953
+
954
+ const configuration = new Configuration();
955
+ const apiInstance = new DatasetApi(configuration);
956
+
957
+ let organizationId: string; //the Organization identifier (default to undefined)
958
+ let datasetId: string; //the Dataset identifier (default to undefined)
959
+ let workspaceId: string; //workspace id to be linked to (default to undefined)
960
+
961
+ const { status, data } = await apiInstance.linkWorkspace(
962
+ organizationId,
963
+ datasetId,
964
+ workspaceId
965
+ );
966
+ ```
967
+
968
+ ### Parameters
969
+
970
+ |Name | Type | Description | Notes|
971
+ |------------- | ------------- | ------------- | -------------|
972
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
973
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
974
+ | **workspaceId** | [**string**] | workspace id to be linked to | defaults to undefined|
975
+
976
+
977
+ ### Return type
978
+
979
+ **Dataset**
980
+
981
+ ### Authorization
982
+
983
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
984
+
985
+ ### HTTP request headers
986
+
987
+ - **Content-Type**: Not defined
988
+ - **Accept**: application/json
989
+
990
+
991
+ ### HTTP response details
992
+ | Status code | Description | Response headers |
993
+ |-------------|-------------|------------------|
994
+ |**200** | the dataset details | - |
995
+ |**400** | Bad request | - |
996
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
997
+
998
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
999
+
1000
+ # **refreshDataset**
1001
+ > DatasetTwinGraphInfo refreshDataset()
1002
+
1003
+ Refresh dataset from parent source. At date, sources can be: dataset (refresh from another dataset) Azure Digital twin Azure storage Local File (import a new file) During refresh, datas are overwritten Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1004
+
1005
+ ### Example
1006
+
1007
+ ```typescript
1008
+ import {
1009
+ DatasetApi,
1010
+ Configuration
1011
+ } from '@cosmotech/api-ts';
1012
+
1013
+ const configuration = new Configuration();
1014
+ const apiInstance = new DatasetApi(configuration);
1015
+
1016
+ let organizationId: string; //the Organization identifier (default to undefined)
1017
+ let datasetId: string; //the Dataset identifier (default to undefined)
1018
+
1019
+ const { status, data } = await apiInstance.refreshDataset(
1020
+ organizationId,
1021
+ datasetId
1022
+ );
1023
+ ```
1024
+
1025
+ ### Parameters
1026
+
1027
+ |Name | Type | Description | Notes|
1028
+ |------------- | ------------- | ------------- | -------------|
1029
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1030
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1031
+
1032
+
1033
+ ### Return type
1034
+
1035
+ **DatasetTwinGraphInfo**
1036
+
1037
+ ### Authorization
1038
+
1039
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1040
+
1041
+ ### HTTP request headers
1042
+
1043
+ - **Content-Type**: Not defined
1044
+ - **Accept**: application/json
1045
+
1046
+
1047
+ ### HTTP response details
1048
+ | Status code | Description | Response headers |
1049
+ |-------------|-------------|------------------|
1050
+ |**200** | Successful response | - |
1051
+
1052
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1053
+
1054
+ # **removeAllDatasetCompatibilityElements**
1055
+ > removeAllDatasetCompatibilityElements()
1056
+
1057
+
1058
+ ### Example
1059
+
1060
+ ```typescript
1061
+ import {
1062
+ DatasetApi,
1063
+ Configuration
1064
+ } from '@cosmotech/api-ts';
1065
+
1066
+ const configuration = new Configuration();
1067
+ const apiInstance = new DatasetApi(configuration);
1068
+
1069
+ let organizationId: string; //the Organization identifier (default to undefined)
1070
+ let datasetId: string; //the Dataset identifier (default to undefined)
1071
+
1072
+ const { status, data } = await apiInstance.removeAllDatasetCompatibilityElements(
1073
+ organizationId,
1074
+ datasetId
1075
+ );
1076
+ ```
1077
+
1078
+ ### Parameters
1079
+
1080
+ |Name | Type | Description | Notes|
1081
+ |------------- | ------------- | ------------- | -------------|
1082
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1083
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1084
+
1085
+
1086
+ ### Return type
1087
+
1088
+ void (empty response body)
1089
+
1090
+ ### Authorization
1091
+
1092
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1093
+
1094
+ ### HTTP request headers
1095
+
1096
+ - **Content-Type**: Not defined
1097
+ - **Accept**: Not defined
1098
+
1099
+
1100
+ ### HTTP response details
1101
+ | Status code | Description | Response headers |
1102
+ |-------------|-------------|------------------|
1103
+ |**204** | the operation succeeded | - |
1104
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
1105
+
1106
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1107
+
1108
+ # **removeDatasetAccessControl**
1109
+ > removeDatasetAccessControl()
1110
+
1111
+
1112
+ ### Example
1113
+
1114
+ ```typescript
1115
+ import {
1116
+ DatasetApi,
1117
+ Configuration
1118
+ } from '@cosmotech/api-ts';
1119
+
1120
+ const configuration = new Configuration();
1121
+ const apiInstance = new DatasetApi(configuration);
1122
+
1123
+ let organizationId: string; //the Organization identifier (default to undefined)
1124
+ let datasetId: string; //the Dataset identifier (default to undefined)
1125
+ let identityId: string; //the User identifier (default to undefined)
1126
+
1127
+ const { status, data } = await apiInstance.removeDatasetAccessControl(
1128
+ organizationId,
1129
+ datasetId,
1130
+ identityId
1131
+ );
1132
+ ```
1133
+
1134
+ ### Parameters
1135
+
1136
+ |Name | Type | Description | Notes|
1137
+ |------------- | ------------- | ------------- | -------------|
1138
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1139
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1140
+ | **identityId** | [**string**] | the User identifier | defaults to undefined|
1141
+
1142
+
1143
+ ### Return type
1144
+
1145
+ void (empty response body)
1146
+
1147
+ ### Authorization
1148
+
1149
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1150
+
1151
+ ### HTTP request headers
1152
+
1153
+ - **Content-Type**: Not defined
1154
+ - **Accept**: Not defined
1155
+
1156
+
1157
+ ### HTTP response details
1158
+ | Status code | Description | Response headers |
1159
+ |-------------|-------------|------------------|
1160
+ |**204** | Request succeeded | - |
1161
+ |**404** | The Dataset or the user specified is unknown or you don\&#39;t have access to them | - |
1162
+
1163
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1164
+
1165
+ # **rollbackRefresh**
1166
+ > string rollbackRefresh()
1167
+
1168
+ Rollback the twingraph on a dataset after a failed refresh Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1169
+
1170
+ ### Example
1171
+
1172
+ ```typescript
1173
+ import {
1174
+ DatasetApi,
1175
+ Configuration
1176
+ } from '@cosmotech/api-ts';
1177
+
1178
+ const configuration = new Configuration();
1179
+ const apiInstance = new DatasetApi(configuration);
1180
+
1181
+ let organizationId: string; //the Organization identifier (default to undefined)
1182
+ let datasetId: string; //the Dataset identifier (default to undefined)
1183
+
1184
+ const { status, data } = await apiInstance.rollbackRefresh(
1185
+ organizationId,
1186
+ datasetId
1187
+ );
1188
+ ```
1189
+
1190
+ ### Parameters
1191
+
1192
+ |Name | Type | Description | Notes|
1193
+ |------------- | ------------- | ------------- | -------------|
1194
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1195
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1196
+
1197
+
1198
+ ### Return type
1199
+
1200
+ **string**
1201
+
1202
+ ### Authorization
1203
+
1204
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1205
+
1206
+ ### HTTP request headers
1207
+
1208
+ - **Content-Type**: Not defined
1209
+ - **Accept**: application/json
1210
+
1211
+
1212
+ ### HTTP response details
1213
+ | Status code | Description | Response headers |
1214
+ |-------------|-------------|------------------|
1215
+ |**200** | Successful response | - |
1216
+
1217
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1218
+
1219
+ # **searchDatasets**
1220
+ > Array<Dataset> searchDatasets(datasetSearch)
1221
+
1222
+
1223
+ ### Example
1224
+
1225
+ ```typescript
1226
+ import {
1227
+ DatasetApi,
1228
+ Configuration,
1229
+ DatasetSearch
1230
+ } from '@cosmotech/api-ts';
1231
+
1232
+ const configuration = new Configuration();
1233
+ const apiInstance = new DatasetApi(configuration);
1234
+
1235
+ let organizationId: string; //the Organization identifier (default to undefined)
1236
+ let datasetSearch: DatasetSearch; //the Dataset search parameters
1237
+ let page: number; //page number to query (first page is at index 0) (optional) (default to undefined)
1238
+ let size: number; //amount of result by page (optional) (default to undefined)
1239
+
1240
+ const { status, data } = await apiInstance.searchDatasets(
1241
+ organizationId,
1242
+ datasetSearch,
1243
+ page,
1244
+ size
1245
+ );
1246
+ ```
1247
+
1248
+ ### Parameters
1249
+
1250
+ |Name | Type | Description | Notes|
1251
+ |------------- | ------------- | ------------- | -------------|
1252
+ | **datasetSearch** | **DatasetSearch**| the Dataset search parameters | |
1253
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1254
+ | **page** | [**number**] | page number to query (first page is at index 0) | (optional) defaults to undefined|
1255
+ | **size** | [**number**] | amount of result by page | (optional) defaults to undefined|
1256
+
1257
+
1258
+ ### Return type
1259
+
1260
+ **Array<Dataset>**
1261
+
1262
+ ### Authorization
1263
+
1264
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1265
+
1266
+ ### HTTP request headers
1267
+
1268
+ - **Content-Type**: application/json, application/yaml
1269
+ - **Accept**: application/json
1270
+
1271
+
1272
+ ### HTTP response details
1273
+ | Status code | Description | Response headers |
1274
+ |-------------|-------------|------------------|
1275
+ |**200** | the list of Datasets | - |
1276
+
1277
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1278
+
1279
+ # **setDatasetDefaultSecurity**
1280
+ > DatasetSecurity setDatasetDefaultSecurity(datasetRole)
1281
+
1282
+
1283
+ ### Example
1284
+
1285
+ ```typescript
1286
+ import {
1287
+ DatasetApi,
1288
+ Configuration,
1289
+ DatasetRole
1290
+ } from '@cosmotech/api-ts';
1291
+
1292
+ const configuration = new Configuration();
1293
+ const apiInstance = new DatasetApi(configuration);
1294
+
1295
+ let organizationId: string; //the Organization identifier (default to undefined)
1296
+ let datasetId: string; //the Dataset identifier (default to undefined)
1297
+ let datasetRole: DatasetRole; //This change the dataset default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the dataset.
1298
+
1299
+ const { status, data } = await apiInstance.setDatasetDefaultSecurity(
1300
+ organizationId,
1301
+ datasetId,
1302
+ datasetRole
1303
+ );
1304
+ ```
1305
+
1306
+ ### Parameters
1307
+
1308
+ |Name | Type | Description | Notes|
1309
+ |------------- | ------------- | ------------- | -------------|
1310
+ | **datasetRole** | **DatasetRole**| This change the dataset default security. The default security is the role assigned to any person not on the Access Control List. If the default security is None, then nobody outside of the ACL can access the dataset. | |
1311
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1312
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1313
+
1314
+
1315
+ ### Return type
1316
+
1317
+ **DatasetSecurity**
1318
+
1319
+ ### Authorization
1320
+
1321
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1322
+
1323
+ ### HTTP request headers
1324
+
1325
+ - **Content-Type**: application/json, application/yaml
1326
+ - **Accept**: application/json
1327
+
1328
+
1329
+ ### HTTP response details
1330
+ | Status code | Description | Response headers |
1331
+ |-------------|-------------|------------------|
1332
+ |**201** | The Dataset default visibility | - |
1333
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
1334
+
1335
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1336
+
1337
+ # **twingraphBatchQuery**
1338
+ > DatasetTwinGraphHash twingraphBatchQuery(datasetTwinGraphQuery)
1339
+
1340
+ Run a query on a graph instance and return the result as a zip file in async mode Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1341
+
1342
+ ### Example
1343
+
1344
+ ```typescript
1345
+ import {
1346
+ DatasetApi,
1347
+ Configuration,
1348
+ DatasetTwinGraphQuery
1349
+ } from '@cosmotech/api-ts';
1350
+
1351
+ const configuration = new Configuration();
1352
+ const apiInstance = new DatasetApi(configuration);
1353
+
1354
+ let organizationId: string; //the Organization identifier (default to undefined)
1355
+ let datasetId: string; //the Graph Identifier (default to undefined)
1356
+ let datasetTwinGraphQuery: DatasetTwinGraphQuery; //the query to run
1357
+
1358
+ const { status, data } = await apiInstance.twingraphBatchQuery(
1359
+ organizationId,
1360
+ datasetId,
1361
+ datasetTwinGraphQuery
1362
+ );
1363
+ ```
1364
+
1365
+ ### Parameters
1366
+
1367
+ |Name | Type | Description | Notes|
1368
+ |------------- | ------------- | ------------- | -------------|
1369
+ | **datasetTwinGraphQuery** | **DatasetTwinGraphQuery**| the query to run | |
1370
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1371
+ | **datasetId** | [**string**] | the Graph Identifier | defaults to undefined|
1372
+
1373
+
1374
+ ### Return type
1375
+
1376
+ **DatasetTwinGraphHash**
1377
+
1378
+ ### Authorization
1379
+
1380
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1381
+
1382
+ ### HTTP request headers
1383
+
1384
+ - **Content-Type**: application/json
1385
+ - **Accept**: application/json
1386
+
1387
+
1388
+ ### HTTP response details
1389
+ | Status code | Description | Response headers |
1390
+ |-------------|-------------|------------------|
1391
+ |**200** | Successful response | - |
1392
+
1393
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1394
+
1395
+ # **twingraphBatchUpdate**
1396
+ > TwinGraphBatchResult twingraphBatchUpdate(body)
1397
+
1398
+ Async batch update by loading a CSV file on a graph instance Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1399
+
1400
+ ### Example
1401
+
1402
+ ```typescript
1403
+ import {
1404
+ DatasetApi,
1405
+ Configuration,
1406
+ DatasetTwinGraphQuery
1407
+ } from '@cosmotech/api-ts';
1408
+
1409
+ const configuration = new Configuration();
1410
+ const apiInstance = new DatasetApi(configuration);
1411
+
1412
+ let organizationId: string; //the Organization identifier (default to undefined)
1413
+ let datasetId: string; //the Dataset Identifier (default to undefined)
1414
+ let twinGraphQuery: DatasetTwinGraphQuery; // (default to undefined)
1415
+ let body: File; //
1416
+
1417
+ const { status, data } = await apiInstance.twingraphBatchUpdate(
1418
+ organizationId,
1419
+ datasetId,
1420
+ twinGraphQuery,
1421
+ body
1422
+ );
1423
+ ```
1424
+
1425
+ ### Parameters
1426
+
1427
+ |Name | Type | Description | Notes|
1428
+ |------------- | ------------- | ------------- | -------------|
1429
+ | **body** | **File**| | |
1430
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1431
+ | **datasetId** | [**string**] | the Dataset Identifier | defaults to undefined|
1432
+ | **twinGraphQuery** | **DatasetTwinGraphQuery** | | defaults to undefined|
1433
+
1434
+
1435
+ ### Return type
1436
+
1437
+ **TwinGraphBatchResult**
1438
+
1439
+ ### Authorization
1440
+
1441
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1442
+
1443
+ ### HTTP request headers
1444
+
1445
+ - **Content-Type**: text/csv, application/octet-stream
1446
+ - **Accept**: application/json
1447
+
1448
+
1449
+ ### HTTP response details
1450
+ | Status code | Description | Response headers |
1451
+ |-------------|-------------|------------------|
1452
+ |**200** | csv file processed | - |
1453
+ |**400** | Bad request | - |
1454
+
1455
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1456
+
1457
+ # **twingraphQuery**
1458
+ > Array<object> twingraphQuery(datasetTwinGraphQuery)
1459
+
1460
+ Run a query on a graph instance and return the result as a json Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1461
+
1462
+ ### Example
1463
+
1464
+ ```typescript
1465
+ import {
1466
+ DatasetApi,
1467
+ Configuration,
1468
+ DatasetTwinGraphQuery
1469
+ } from '@cosmotech/api-ts';
1470
+
1471
+ const configuration = new Configuration();
1472
+ const apiInstance = new DatasetApi(configuration);
1473
+
1474
+ let organizationId: string; //the Organization identifier (default to undefined)
1475
+ let datasetId: string; //the Dataset identifier (default to undefined)
1476
+ let datasetTwinGraphQuery: DatasetTwinGraphQuery; //the query to run
1477
+
1478
+ const { status, data } = await apiInstance.twingraphQuery(
1479
+ organizationId,
1480
+ datasetId,
1481
+ datasetTwinGraphQuery
1482
+ );
1483
+ ```
1484
+
1485
+ ### Parameters
1486
+
1487
+ |Name | Type | Description | Notes|
1488
+ |------------- | ------------- | ------------- | -------------|
1489
+ | **datasetTwinGraphQuery** | **DatasetTwinGraphQuery**| the query to run | |
1490
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1491
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1492
+
1493
+
1494
+ ### Return type
1495
+
1496
+ **Array<object>**
1497
+
1498
+ ### Authorization
1499
+
1500
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1501
+
1502
+ ### HTTP request headers
1503
+
1504
+ - **Content-Type**: application/json
1505
+ - **Accept**: application/json
1506
+
1507
+
1508
+ ### HTTP response details
1509
+ | Status code | Description | Response headers |
1510
+ |-------------|-------------|------------------|
1511
+ |**200** | Successful response | - |
1512
+
1513
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1514
+
1515
+ # **unlinkWorkspace**
1516
+ > Dataset unlinkWorkspace()
1517
+
1518
+
1519
+ ### Example
1520
+
1521
+ ```typescript
1522
+ import {
1523
+ DatasetApi,
1524
+ Configuration
1525
+ } from '@cosmotech/api-ts';
1526
+
1527
+ const configuration = new Configuration();
1528
+ const apiInstance = new DatasetApi(configuration);
1529
+
1530
+ let organizationId: string; //the Organization identifier (default to undefined)
1531
+ let datasetId: string; //the Dataset identifier (default to undefined)
1532
+ let workspaceId: string; //workspace id to be linked to (default to undefined)
1533
+
1534
+ const { status, data } = await apiInstance.unlinkWorkspace(
1535
+ organizationId,
1536
+ datasetId,
1537
+ workspaceId
1538
+ );
1539
+ ```
1540
+
1541
+ ### Parameters
1542
+
1543
+ |Name | Type | Description | Notes|
1544
+ |------------- | ------------- | ------------- | -------------|
1545
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1546
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1547
+ | **workspaceId** | [**string**] | workspace id to be linked to | defaults to undefined|
1548
+
1549
+
1550
+ ### Return type
1551
+
1552
+ **Dataset**
1553
+
1554
+ ### Authorization
1555
+
1556
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1557
+
1558
+ ### HTTP request headers
1559
+
1560
+ - **Content-Type**: Not defined
1561
+ - **Accept**: application/json
1562
+
1563
+
1564
+ ### HTTP response details
1565
+ | Status code | Description | Response headers |
1566
+ |-------------|-------------|------------------|
1567
+ |**200** | the dataset details | - |
1568
+ |**400** | Bad request | - |
1569
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
1570
+
1571
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1572
+
1573
+ # **updateDataset**
1574
+ > Dataset updateDataset(dataset)
1575
+
1576
+
1577
+ ### Example
1578
+
1579
+ ```typescript
1580
+ import {
1581
+ DatasetApi,
1582
+ Configuration,
1583
+ Dataset
1584
+ } from '@cosmotech/api-ts';
1585
+
1586
+ const configuration = new Configuration();
1587
+ const apiInstance = new DatasetApi(configuration);
1588
+
1589
+ let organizationId: string; //the Organization identifier (default to undefined)
1590
+ let datasetId: string; //the Dataset identifier (default to undefined)
1591
+ let dataset: Dataset; //the new Dataset details. This endpoint can\'t be used to update security
1592
+
1593
+ const { status, data } = await apiInstance.updateDataset(
1594
+ organizationId,
1595
+ datasetId,
1596
+ dataset
1597
+ );
1598
+ ```
1599
+
1600
+ ### Parameters
1601
+
1602
+ |Name | Type | Description | Notes|
1603
+ |------------- | ------------- | ------------- | -------------|
1604
+ | **dataset** | **Dataset**| the new Dataset details. This endpoint can\&#39;t be used to update security | |
1605
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1606
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1607
+
1608
+
1609
+ ### Return type
1610
+
1611
+ **Dataset**
1612
+
1613
+ ### Authorization
1614
+
1615
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1616
+
1617
+ ### HTTP request headers
1618
+
1619
+ - **Content-Type**: application/json, application/yaml
1620
+ - **Accept**: application/json
1621
+
1622
+
1623
+ ### HTTP response details
1624
+ | Status code | Description | Response headers |
1625
+ |-------------|-------------|------------------|
1626
+ |**200** | the dataset details | - |
1627
+ |**400** | Bad request | - |
1628
+ |**404** | the Dataset specified is unknown or you don\&#39;t have access to it | - |
1629
+
1630
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1631
+
1632
+ # **updateDatasetAccessControl**
1633
+ > DatasetAccessControl updateDatasetAccessControl(datasetRole)
1634
+
1635
+
1636
+ ### Example
1637
+
1638
+ ```typescript
1639
+ import {
1640
+ DatasetApi,
1641
+ Configuration,
1642
+ DatasetRole
1643
+ } from '@cosmotech/api-ts';
1644
+
1645
+ const configuration = new Configuration();
1646
+ const apiInstance = new DatasetApi(configuration);
1647
+
1648
+ let organizationId: string; //the Organization identifier (default to undefined)
1649
+ let datasetId: string; //the Dataset identifier (default to undefined)
1650
+ let identityId: string; //the User identifier (default to undefined)
1651
+ let datasetRole: DatasetRole; //The new Dataset Access Control
1652
+
1653
+ const { status, data } = await apiInstance.updateDatasetAccessControl(
1654
+ organizationId,
1655
+ datasetId,
1656
+ identityId,
1657
+ datasetRole
1658
+ );
1659
+ ```
1660
+
1661
+ ### Parameters
1662
+
1663
+ |Name | Type | Description | Notes|
1664
+ |------------- | ------------- | ------------- | -------------|
1665
+ | **datasetRole** | **DatasetRole**| The new Dataset Access Control | |
1666
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1667
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1668
+ | **identityId** | [**string**] | the User identifier | defaults to undefined|
1669
+
1670
+
1671
+ ### Return type
1672
+
1673
+ **DatasetAccessControl**
1674
+
1675
+ ### Authorization
1676
+
1677
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1678
+
1679
+ ### HTTP request headers
1680
+
1681
+ - **Content-Type**: application/json
1682
+ - **Accept**: application/json
1683
+
1684
+
1685
+ ### HTTP response details
1686
+ | Status code | Description | Response headers |
1687
+ |-------------|-------------|------------------|
1688
+ |**200** | The Dataset access | - |
1689
+ |**404** | The Dataset specified is unknown or you don\&#39;t have access to it | - |
1690
+
1691
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1692
+
1693
+ # **updateTwingraphEntities**
1694
+ > string updateTwingraphEntities(graphProperties)
1695
+
1696
+ update entities in a graph instance
1697
+
1698
+ ### Example
1699
+
1700
+ ```typescript
1701
+ import {
1702
+ DatasetApi,
1703
+ Configuration
1704
+ } from '@cosmotech/api-ts';
1705
+
1706
+ const configuration = new Configuration();
1707
+ const apiInstance = new DatasetApi(configuration);
1708
+
1709
+ let organizationId: string; //the Organization identifier (default to undefined)
1710
+ let datasetId: string; //the Dataset Identifier (default to undefined)
1711
+ let type: 'node' | 'relationship'; //the entity model type (default to undefined)
1712
+ let graphProperties: Array<GraphProperties>; //The entities to update Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1713
+
1714
+ const { status, data } = await apiInstance.updateTwingraphEntities(
1715
+ organizationId,
1716
+ datasetId,
1717
+ type,
1718
+ graphProperties
1719
+ );
1720
+ ```
1721
+
1722
+ ### Parameters
1723
+
1724
+ |Name | Type | Description | Notes|
1725
+ |------------- | ------------- | ------------- | -------------|
1726
+ | **graphProperties** | **Array<GraphProperties>**| The entities to update Note: This endpoint is activated only if &#x60;csm.platform.twincache.useGraphModule&#x60; property is set to true | |
1727
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1728
+ | **datasetId** | [**string**] | the Dataset Identifier | defaults to undefined|
1729
+ | **type** | [**&#39;node&#39; | &#39;relationship&#39;**]**Array<&#39;node&#39; &#124; &#39;relationship&#39;>** | the entity model type | defaults to undefined|
1730
+
1731
+
1732
+ ### Return type
1733
+
1734
+ **string**
1735
+
1736
+ ### Authorization
1737
+
1738
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1739
+
1740
+ ### HTTP request headers
1741
+
1742
+ - **Content-Type**: application/json
1743
+ - **Accept**: application/json
1744
+
1745
+
1746
+ ### HTTP response details
1747
+ | Status code | Description | Response headers |
1748
+ |-------------|-------------|------------------|
1749
+ |**200** | Successful response | - |
1750
+
1751
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1752
+
1753
+ # **uploadTwingraph**
1754
+ > FileUploadValidation uploadTwingraph(body)
1755
+
1756
+ To create a new graph from flat files, you need to create a Zip file. This Zip file must countain two folders named Edges and Nodes. .zip hierarchy: *main_folder/Nodes *main_folder/Edges In each folder you can place one or multiple csv files containing your Nodes or Edges data. Your csv files must follow the following header (column name) requirements: The Nodes CSVs requires at least one column (the 1st).Column name = \'id\'. It will represent the nodes ID Ids must be populated with string The Edges CSVs require three columns named, in order, * source * target * id those colomns represent * The source of the edge * The target of the edge * The id of the edge All following columns content are up to you. Note: This endpoint is activated only if `csm.platform.twincache.useGraphModule` property is set to true
1757
+
1758
+ ### Example
1759
+
1760
+ ```typescript
1761
+ import {
1762
+ DatasetApi,
1763
+ Configuration
1764
+ } from '@cosmotech/api-ts';
1765
+
1766
+ const configuration = new Configuration();
1767
+ const apiInstance = new DatasetApi(configuration);
1768
+
1769
+ let organizationId: string; //the Organization identifier (default to undefined)
1770
+ let datasetId: string; //the Dataset identifier (default to undefined)
1771
+ let body: File; //
1772
+
1773
+ const { status, data } = await apiInstance.uploadTwingraph(
1774
+ organizationId,
1775
+ datasetId,
1776
+ body
1777
+ );
1778
+ ```
1779
+
1780
+ ### Parameters
1781
+
1782
+ |Name | Type | Description | Notes|
1783
+ |------------- | ------------- | ------------- | -------------|
1784
+ | **body** | **File**| | |
1785
+ | **organizationId** | [**string**] | the Organization identifier | defaults to undefined|
1786
+ | **datasetId** | [**string**] | the Dataset identifier | defaults to undefined|
1787
+
1788
+
1789
+ ### Return type
1790
+
1791
+ **FileUploadValidation**
1792
+
1793
+ ### Authorization
1794
+
1795
+ [oAuth2AuthCode](../README.md#oAuth2AuthCode)
1796
+
1797
+ ### HTTP request headers
1798
+
1799
+ - **Content-Type**: application/octet-stream
1800
+ - **Accept**: application/json
1801
+
1802
+
1803
+ ### HTTP response details
1804
+ | Status code | Description | Response headers |
1805
+ |-------------|-------------|------------------|
1806
+ |**202** | File uploaded successfully. Processing... | - |
1807
+
1808
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1809
+