Back to Apitable

.WorkbenchNodeShareApiApi

packages/api-client/WorkbenchNodeShareApiApi.md

1.13.0-beta.17.9 KB
Original Source

.WorkbenchNodeShareApiApi

All URIs are relative to http://backend/api/v1

MethodHTTP requestDescription
disableSharePOST /node/disableShare/{nodeId}Disable node sharing
nodeShareInfoGET /node/shareSettings/{nodeId}Get node share info
readShareInfoGET /node/readShareInfo/{shareId}Get share node info
storeShareDataPOST /node/storeShareDataSotre share data
updateNodeSharePOST /node/updateShare/{nodeId}Update node share setting

disableShare

ResponseDataVoid disableShare()

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);

let body:.WorkbenchNodeShareApiApiDisableShareRequest = {
  // string | node id
  nodeId: "nodRTGSy43DJ9",
};

apiInstance.disableShare(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
nodeId[string]node iddefaults to undefined

Return type

ResponseDataVoid

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

nodeShareInfo

ResponseDataNodeShareSettingInfoVO nodeShareInfo()

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);

let body:.WorkbenchNodeShareApiApiNodeShareInfoRequest = {
  // string | node id
  nodeId: "nodRTGSy43DJ9",
};

apiInstance.nodeShareInfo(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
nodeId[string]node iddefaults to undefined

Return type

ResponseDataNodeShareSettingInfoVO

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

readShareInfo

ResponseDataNodeShareInfoVO readShareInfo()

get shared content according to share id

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);

let body:.WorkbenchNodeShareApiApiReadShareInfoRequest = {
  // string | share id
  shareId: "shrRTGSy43DJ9",
};

apiInstance.readShareInfo(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
shareId[string]share iddefaults to undefined

Return type

ResponseDataNodeShareInfoVO

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

storeShareData

ResponseDataStoreNodeInfoVO storeShareData(storeShareNodeRo)

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);

let body:.WorkbenchNodeShareApiApiStoreShareDataRequest = {
  // StoreShareNodeRo
  storeShareNodeRo: {
    spaceId: "spc20cjiwis2",
    shareId: "shrSJ921CNsj",
  },
  // string | user socket id (optional)
  xSocketId: "QkKp9XJEl",
};

apiInstance.storeShareData(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
storeShareNodeRoStoreShareNodeRo
xSocketId[string]user socket id(optional) defaults to undefined

Return type

ResponseDataStoreNodeInfoVO

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateNodeShare

ResponseDataShareBaseInfoVo updateNodeShare(updateNodeShareSettingRo, )

Update node share setting stringObjectParams share setting parameter description: There are three option parameters for sharing settings. Only one can be set true, and more than two cannot be set to true at the same time. onlyRead: Bool, whether to set sharing only for others to view. canBeEdited: Bool, whether to set up sharing to others for collaborative editing. canBeStored: Bool, whether to set up sharing to others and save as a copy. Example: Set <Share Only for Others to View>, parameters:{"onlyRead": true}

Example

typescript
import {  } from '';
import * as fs from 'fs';

const configuration = .createConfiguration();
const apiInstance = new .WorkbenchNodeShareApiApi(configuration);

let body:.WorkbenchNodeShareApiApiUpdateNodeShareRequest = {
  // UpdateNodeShareSettingRo
  updateNodeShareSettingRo: {
    props: "{"onlyRead": true}",
  },
  // string | node id
  nodeId: "nodRTGSy43DJ9",
};

apiInstance.updateNodeShare(body).then((data:any) => {
  console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));

Parameters

NameTypeDescriptionNotes
updateNodeShareSettingRoUpdateNodeShareSettingRo
nodeId[string]node iddefaults to undefined

Return type

ResponseDataShareBaseInfoVo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status codeDescriptionResponse headers
200OK-
500Internal Server Error-

[Back to top] [Back to API list] [Back to Model list] [Back to README]