packages/api-client/InternalServiceDataTableFieldPermissionInterfaceApi.md
All URIs are relative to http://backend/api/v1
| Method | HTTP request | Description |
|---|---|---|
| disableRoles | POST /internal/datasheet/{dstId}/field/permission/disable | turn off multiple field permissions |
| getFieldPermission | GET /internal/node/{nodeId}/field/permission | get field permissions |
| getMultiFieldPermissionViews | POST /internal/node/field/permission | get field permission set for multiple nodes |
ResponseDataVoid disableRoles()
room layer ot delete field operation call
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceDataTableFieldPermissionInterfaceApi(configuration);
let body:.InternalServiceDataTableFieldPermissionInterfaceApiDisableRolesRequest = {
// string | table id
dstId: "dstGxznHFXf9pvF1LZ",
// string | list of field ids
fieldIds: "fldB7uWmwYrQf,fldB7uWmwYrQf",
};
apiInstance.disableRoles(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| dstId | [string] | table id | defaults to undefined |
| fieldIds | [string] | list of field ids | defaults to undefined |
ResponseDataVoid
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataFieldPermissionView getFieldPermission()
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceDataTableFieldPermissionInterfaceApi(configuration);
let body:.InternalServiceDataTableFieldPermissionInterfaceApiGetFieldPermissionRequest = {
// string | node id
nodeId: "dstCgcfixAKyeeNsaP",
// string | user id
userId: "123",
// string | share id (optional)
shareId: "shrFPXT8qnyFJglX6elJi",
};
apiInstance.getFieldPermission(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| nodeId | [string] | node id | defaults to undefined |
| userId | [string] | user id | defaults to undefined |
| shareId | [string] | share id | (optional) defaults to undefined |
ResponseDataFieldPermissionView
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseDataListFieldPermissionView getMultiFieldPermissionViews(internalPermissionRo)
import { } from '';
import * as fs from 'fs';
const configuration = .createConfiguration();
const apiInstance = new .InternalServiceDataTableFieldPermissionInterfaceApi(configuration);
let body:.InternalServiceDataTableFieldPermissionInterfaceApiGetMultiFieldPermissionViewsRequest = {
// InternalPermissionRo
internalPermissionRo: {
nodeIds: ["fomtujwf5eSWKiMaVw","dstbw4CZFURbchgP17"],
shareId: "shr8T8vAfehg3yj3McmDG",
userId: "usrddddd",
},
};
apiInstance.getMultiFieldPermissionViews(body).then((data:any) => {
console.log('API called successfully. Returned data: ' + data);
}).catch((error:any) => console.error(error));
| Name | Type | Description | Notes |
|---|---|---|---|
| internalPermissionRo | InternalPermissionRo |
ResponseDataListFieldPermissionView
No authorization required
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]