You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
*bimdata.CollaborationApi* | [**updateFolder**](docs/CollaborationApi.md#updateFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Update some fields of a folder
328
328
*bimdata.CollaborationApi* | [**updateGroupFolder**](docs/CollaborationApi.md#updateGroupFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/group/{id} | Update the permission of a group on a folder. When propagate is set to True, the permission of all children in the folder will be updated.
329
329
*bimdata.CollaborationApi* | [**updateManageGroup**](docs/CollaborationApi.md#updateManageGroup) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/group/{id} | Update some fields of a group
330
+
*bimdata.CollaborationApi* | [**updatePreviewFile**](docs/CollaborationApi.md#updatePreviewFile) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id}/preview-file | Update preview of the document
330
331
*bimdata.CollaborationApi* | [**updateProject**](docs/CollaborationApi.md#updateProject) | **PATCH** /cloud/{cloud_pk}/project/{id} | Update some fields of a project
331
332
*bimdata.CollaborationApi* | [**updateProjectAccessToken**](docs/CollaborationApi.md#updateProjectAccessToken) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/access-token/{token} | Update some fields of a token
332
333
*bimdata.CollaborationApi* | [**updateProjectUser**](docs/CollaborationApi.md#updateProjectUser) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} | Change the user role in the cloud
[**updateFolder**](CollaborationApi.md#updateFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{id} | Update some fields of a folder
104
104
[**updateGroupFolder**](CollaborationApi.md#updateGroupFolder) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/folder/{folder_pk}/group/{id} | Update the permission of a group on a folder. When propagate is set to True, the permission of all children in the folder will be updated.
105
105
[**updateManageGroup**](CollaborationApi.md#updateManageGroup) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/group/{id} | Update some fields of a group
106
+
[**updatePreviewFile**](CollaborationApi.md#updatePreviewFile) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/document/{id}/preview-file | Update preview of the document
106
107
[**updateProject**](CollaborationApi.md#updateProject) | **PATCH** /cloud/{cloud_pk}/project/{id} | Update some fields of a project
107
108
[**updateProjectAccessToken**](CollaborationApi.md#updateProjectAccessToken) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/access-token/{token} | Update some fields of a token
108
109
[**updateProjectUser**](CollaborationApi.md#updateProjectUser) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/user/{id} | Change the user role in the cloud
@@ -954,7 +955,7 @@ Name | Type | Description | Notes
954
955
955
956
Create a document
956
957
957
-
Create a document. If the document is one of {'POINT_CLOUD', 'DAE', 'GLTF', 'IFC', 'OBJ', 'DWG', 'BFX', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
958
+
Create a document. If the document is one of {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
958
959
959
960
### Example
960
961
@@ -987,7 +988,6 @@ let opts = {
987
988
'parentId':56, // Number |
988
989
'fileName':"fileName_example", // String | Full name of the file
989
990
'description':"description_example", // String | Description of the file
990
-
'size':789, // Number | Size of the file.
991
991
'modelSource':"modelSource_example", // String | Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
992
992
'ifcSource':"ifcSource_example", // String | DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
993
993
'successorOf':56// Number | Old document version to replace. Only for create
@@ -1012,7 +1012,6 @@ Name | Type | Description | Notes
1012
1012
**parentId** | **Number**| | [optional]
1013
1013
**fileName** | **String**| Full name of the file | [optional]
1014
1014
**description** | **String**| Description of the file | [optional]
1015
-
**size** | **Number**| Size of the file. | [optional]
1016
1015
**modelSource** | **String**| Define the model.source field if the upload is a Model (IFC, PDF, DWG...) | [optional]
1017
1016
**ifcSource** | **String**| DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) | [optional]
1018
1017
**successorOf** | **Number**| Old document version to replace. Only for create | [optional]
@@ -6544,6 +6543,75 @@ Name | Type | Description | Notes
Update preview of the document Required scopes: document:write
6553
+
6554
+
### Example
6555
+
6556
+
```javascript
6557
+
importbimdatafrom'@bimdata/bimdata-api-client';
6558
+
let defaultClient =bimdata.ApiClient.instance;
6559
+
// Configure API key authorization: ApiKey
6560
+
let ApiKey =defaultClient.authentications['ApiKey'];
6561
+
ApiKey.apiKey='YOUR API KEY';
6562
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
6563
+
//ApiKey.apiKeyPrefix = 'Token';
6564
+
// Configure OAuth2 access token for authorization: BIMData_Connect
6565
+
let BIMData_Connect =defaultClient.authentications['BIMData_Connect'];
6566
+
BIMData_Connect.accessToken='YOUR ACCESS TOKEN';
6567
+
// Configure OAuth2 access token for authorization: BIMData_Connect
6568
+
let BIMData_Connect =defaultClient.authentications['BIMData_Connect'];
6569
+
BIMData_Connect.accessToken='YOUR ACCESS TOKEN';
6570
+
// Configure API key authorization: Bearer
6571
+
let Bearer =defaultClient.authentications['Bearer'];
6572
+
Bearer.apiKey='YOUR API KEY';
6573
+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
6574
+
//Bearer.apiKeyPrefix = 'Token';
6575
+
6576
+
let apiInstance =newbimdata.CollaborationApi();
6577
+
let cloudPk =56; // Number | A unique integer value identifying this cloud.
6578
+
let id =56; // Number | A unique integer value identifying this document.
6579
+
let projectPk =56; // Number | A unique integer value identifying this project.
6580
+
let opts = {
6581
+
'officePreview':"/path/to/file"// File | Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt
**cloudPk** | **Number**| A unique integer value identifying this cloud. |
6597
+
**id** | **Number**| A unique integer value identifying this document. |
6598
+
**projectPk** | **Number**| A unique integer value identifying this project. |
6599
+
**officePreview** | **File**| Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt | [optional]
**modelType** | **String** | Model's type. Values can be IFC, DWG, DXF, GLTF, PDF, JPEG, PNG, OBJ, POINT_CLOUD | [readonly]
22
22
**ifcId** | **Number** | DEPRECATED: Use 'model_id' instead. | [readonly]
23
23
**userPermission** | **Number** | Aggregate of group user permissions and folder default permission | [readonly]
24
24
**isHeadVersion** | **Boolean** | Document is a head of version or is owned by another document | [readonly]
25
+
**officePreview** | **String** | Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt | [readonly]
25
26
26
27
27
28
@@ -44,10 +45,6 @@ Name | Type | Description | Notes
**officePreview** | **String** | Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt |
Copy file name to clipboardExpand all lines: docs/PatchedDocumentRequest.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
9
9
**fileName** | **String** | Full name of the file | [optional]
10
10
**description** | **String** | Description of the file | [optional]
11
11
**file** | **File** | | [optional]
12
-
**size** | **Number** | Size of the file. | [optional]
13
12
**modelSource** | **String** | Define the model.source field if the upload is a Model (IFC, PDF, DWG...) | [optional]
14
13
**ifcSource** | **String** | DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...) | [optional]
15
14
**successorOf** | **Number** | Old document version to replace. Only for create | [optional]
**type** | **String** | DEPRECATED: Use 'nature' instead. Values can be 'Folder', 'Document' or 'Ifc'. It is usefull to parse the tree and discriminate folders and files | [readonly]
11
11
**nature** | **String** | Values can be 'Folder', 'Document' or 'Model'. It is usefull to parse the tree and discriminate folders and files | [readonly]
@@ -857,7 +858,7 @@ export default class CollaborationApi {
857
858
858
859
/**
859
860
* Create a document
860
-
* Create a document. If the document is one of {'POINT_CLOUD', 'DAE', 'GLTF', 'IFC', 'OBJ', 'DWG', 'BFX', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
861
+
* Create a document. If the document is one of {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
861
862
* @param {Number} cloudPk A unique integer value identifying this cloud.
862
863
* @param {Number} projectPk A unique integer value identifying this project.
863
864
* @param {String} name Shown name of the file
@@ -866,7 +867,6 @@ export default class CollaborationApi {
866
867
* @param {Number} opts.parentId
867
868
* @param {String} opts.fileName Full name of the file
868
869
* @param {String} opts.description Description of the file
869
-
* @param {Number} opts.size Size of the file.
870
870
* @param {module:model/String} opts.modelSource Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
871
871
* @param {module:model/String} opts.ifcSource DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
872
872
* @param {Number} opts.successorOf Old document version to replace. Only for create
@@ -906,7 +906,6 @@ export default class CollaborationApi {
906
906
'file_name': opts['fileName'],
907
907
'description': opts['description'],
908
908
'file': file,
909
-
'size': opts['size'],
910
909
'model_source': opts['modelSource'],
911
910
'ifc_source': opts['ifcSource'],
912
911
'successor_of': opts['successorOf']
@@ -925,7 +924,7 @@ export default class CollaborationApi {
925
924
926
925
/**
927
926
* Create a document
928
-
* Create a document. If the document is one of {'POINT_CLOUD', 'DAE', 'GLTF', 'IFC', 'OBJ', 'DWG', 'BFX', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
927
+
* Create a document. If the document is one of {'OBJ', 'IFC', 'DWG', 'POINT_CLOUD', 'GLTF', 'DXF'}, a model will be created and attached to this document Required scopes: document:write
929
928
* @param {Number} cloudPk A unique integer value identifying this cloud.
930
929
* @param {Number} projectPk A unique integer value identifying this project.
931
930
* @param {String} name Shown name of the file
@@ -934,7 +933,6 @@ export default class CollaborationApi {
934
933
* @param {Number} opts.parentId
935
934
* @param {String} opts.fileName Full name of the file
936
935
* @param {String} opts.description Description of the file
937
-
* @param {Number} opts.size Size of the file.
938
936
* @param {module:model/String} opts.modelSource Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
939
937
* @param {module:model/String} opts.ifcSource DEPRECATED: Use 'model_source' instead. Define the model.source field if the upload is a Model (IFC, PDF, DWG...)
940
938
* @param {Number} opts.successorOf Old document version to replace. Only for create
@@ -6074,6 +6072,74 @@ export default class CollaborationApi {
6074
6072
}
6075
6073
6076
6074
6075
+
/**
6076
+
* Update preview of the document
6077
+
* Update preview of the document Required scopes: document:write
6078
+
* @param {Number} cloudPk A unique integer value identifying this cloud.
6079
+
* @param {Number} id A unique integer value identifying this document.
6080
+
* @param {Number} projectPk A unique integer value identifying this project.
6081
+
* @param {Object} opts Optional parameters
6082
+
* @param {File} opts.officePreview Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt
6083
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DocumentPreviewFile} and HTTP response
* Update preview of the document Required scopes: document:write
6128
+
* @param {Number} cloudPk A unique integer value identifying this cloud.
6129
+
* @param {Number} id A unique integer value identifying this document.
6130
+
* @param {Number} projectPk A unique integer value identifying this project.
6131
+
* @param {Object} opts Optional parameters
6132
+
* @param {File} opts.officePreview Office files will be converted as pdf to provide a web preview. Supported extensions are .ppt, .pptx, .odp, .xls, .xlsx, .ods, .doc, .docx, .odt
6133
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DocumentPreviewFile}
0 commit comments