- Development Guide
- Filter
- Filter Demo
- ErrorCode
- app
- worksheet
- Create Worksheet POST
- Get worksheet structure informationPOST
- Get ListPOST
- Create Row Record POST
- Batch Create Row Records POST
- Get Row Record Details GET
- Get row record detailsPOST
- Update Row Record Details POST
- Batch Update Row Record Details POST
- Delete Row RecordPOST
- Get associated recordPOST
- Get Record Share LinkPOST
- Get total row count of worksheet POST
- Get Row Record LogPOST
- Application Role
- Options Set
- Get regional InformationPOST
Create Application Role
fromal
https://api.mingdao.com
fromal
https://api.mingdao.com
POST
/v1/open/app/createRole
Information includes: role name, description, permission information
Request
Body Params application/json
name
string
required
description
string
required
permissionWay
string
required
hideAppForMembers
string
required
generalAdd
object
optional
enable
boolean
required
gneralShare
object
optional
enable
boolean
required
generalImport
object
optional
enable
boolean
required
generalExport
object
optional
enable
boolean
required
generalDiscussion
object
optional
enable
boolean
required
generalSystemPrinting
object
optional
enable
boolean
required
generalAttachmentDownload
object
optional
enable
boolean
required
generalLogging
object
optional
enable
boolean
required
worksheetAddRecord
object
optional
enable
boolean
required
worksheetShareView
object
optional
enable
boolean
required
worksheetImport
object
optional
enable
boolean
required
worksheetExport
object
optional
enable
boolean
required
worksheetDiscuss
object
optional
enable
boolean
required
worksheetLogging
object
optional
enable
boolean
required
worksheetBatchOperation
object
optional
enable
boolean
required
recordShare
object
optional
enable
boolean
required
recordDiscussion
object
optional
enable
boolean
required
recordSystemPrinting
object
optional
enable
boolean
required
recordAttachmentDownload
object
optional
enable
boolean
required
recordLogging
object
optional
enable
boolean
required
payment
object
optional
enable
boolean
required
extendAttrs
array[string]
optional
optionalControls
array[string]
optional
sheets
array [object {7}]
optional
sheetId
string
required
canAdd
string
required
readLevelId
string
required
editLevelId
string
required
removeLevel
string
required
removeLevelId
array [object {6}]
required
navigateHide
string
required
pages
array [object {6}]
required
pageId
string
optional
name
string
optional
checked
boolean
optional
navigateHide
boolean
optional
sortIndex
integer
optional
iconUrl
string
optional
Example
{
"appKey": "422e5a5d0e570105",
"sign": "MzkzMDY3Mzk1NjM0YjkyNjE1YzI2N2ZhNDEzZGE3ZTQwMzQ3ZWJkNzI1ZDc2NjcxYTdkY2ViMzVhZGJlNTI0Yg==",
"appId": "bd75405e-4c8e-4dba-8b43-9820c0b53ec2",
"projectId": "28447959-cf7f-4ae9-9074-8977ce48e2a0",
"hideAppForMembers": false,
"roleType": 0,
"permissionWay": 0,
"sheets": [
{
"sheetId": "67cff5821131169abf7ef611",
"sheetName": " Organization Management ",
"canAdd": true,
"readLevel": 100,
"editLevel": 100,
"removeLevel": 100,
"views": [
{
"viewId": "67cff5821131169abf7ef615",
"viewName": " All ",
"canRead": true,
"canEdit": true,
"canRemove": true,
"type": 0
}
],
"fields": [
{
"fieldId": "ownerid",
"type": 26,
"fieldName": " Owner ",
"notRead": false,
"notEdit": false,
"notAdd": false,
"isDecrypt": false,
"isReadField": false,
"hideWhenAdded": true,
"isHide": false
}
],
"worksheetAddRecord": {
"enable": true
},
"worksheetShareView": {
"enable": true
},
"worksheetImport": {
"enable": true
},
"worksheetExport": {
"enable": true
},
"worksheetDiscuss": {
"enable": true
},
"worksheetLogging": {
"enable": true
},
"worksheetBatchOperation": {
"enable": true
},
"recordShare": {
"enable": true
},
"recordDiscussion": {
"enable": true
},
"recordSystemPrinting": {
"enable": true
},
"recordAttachmentDownload": {
"enable": true
},
"recordLogging": {
"enable": true
},
"payment": {
"enable": true
}
}
],
"extendAttrs": [],
"optionalControls": [],
"pages": [
{
"pageId": "67617eef1657b7ae33be5ae2",
"name": "0",
"checked": true,
"navigateHide": false,
"sortIndex": 8,
"iconUrl": "https://fp1.mingdaoyun.cn/customIcon/dashboard.svg"
}
],
"roleCategory": 0,
"generalAdd": {
"enable": true
},
"gneralShare": {
"enable": true
},
"generalImport": {
"enable": true
},
"generalExport": {
"enable": true
},
"generalDiscussion": {
"enable": true
},
"generalSystemPrinting": {
"enable": true
},
"generalAttachmentDownload": {
"enable": true
},
"generalLogging": {
"enable": true
},
"description": "",
"name": " New Character 40"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.mingdao.com/v1/open/app/createRole' \
--header 'Content-Type: application/json' \
--data-raw '{
"appKey": "422e5a5d0e570105",
"sign": "MzkzMDY3Mzk1NjM0YjkyNjE1YzI2N2ZhNDEzZGE3ZTQwMzQ3ZWJkNzI1ZDc2NjcxYTdkY2ViMzVhZGJlNTI0Yg==",
"appId": "bd75405e-4c8e-4dba-8b43-9820c0b53ec2",
"projectId": "28447959-cf7f-4ae9-9074-8977ce48e2a0",
"hideAppForMembers": false,
"roleType": 0,
"permissionWay": 0,
"sheets": [
{
"sheetId": "67cff5821131169abf7ef611",
"sheetName": " Organization Management ",
"canAdd": true,
"readLevel": 100,
"editLevel": 100,
"removeLevel": 100,
"views": [
{
"viewId": "67cff5821131169abf7ef615",
"viewName": " All ",
"canRead": true,
"canEdit": true,
"canRemove": true,
"type": 0
}
],
"fields": [
{
"fieldId": "ownerid",
"type": 26,
"fieldName": " Owner ",
"notRead": false,
"notEdit": false,
"notAdd": false,
"isDecrypt": false,
"isReadField": false,
"hideWhenAdded": true,
"isHide": false
}
],
"worksheetAddRecord": {
"enable": true
},
"worksheetShareView": {
"enable": true
},
"worksheetImport": {
"enable": true
},
"worksheetExport": {
"enable": true
},
"worksheetDiscuss": {
"enable": true
},
"worksheetLogging": {
"enable": true
},
"worksheetBatchOperation": {
"enable": true
},
"recordShare": {
"enable": true
},
"recordDiscussion": {
"enable": true
},
"recordSystemPrinting": {
"enable": true
},
"recordAttachmentDownload": {
"enable": true
},
"recordLogging": {
"enable": true
},
"payment": {
"enable": true
}
}
],
"extendAttrs": [],
"optionalControls": [],
"pages": [
{
"pageId": "67617eef1657b7ae33be5ae2",
"name": "0",
"checked": true,
"navigateHide": false,
"sortIndex": 8,
"iconUrl": "https://fp1.mingdaoyun.cn/customIcon/dashboard.svg"
}
],
"roleCategory": 0,
"generalAdd": {
"enable": true
},
"gneralShare": {
"enable": true
},
"generalImport": {
"enable": true
},
"generalExport": {
"enable": true
},
"generalDiscussion": {
"enable": true
},
"generalSystemPrinting": {
"enable": true
},
"generalAttachmentDownload": {
"enable": true
},
"generalLogging": {
"enable": true
},
"description": "",
"name": " New Character 40"
}'
Responses
🟢200成功
application/json
Body
data
object
required
roleId
string
Role id
name
string
Role name
roleType
integer
Role Type
desc
string
Description
users
array[string]
User Information
departments
array[string]
Department
departmentTrees
array[string]
Department Tree
projectOrganizes
array[string]
Organization Role
jobs
array[string]
Position
success
boolean
required
error_code
integer
required
Example
{
"data": {
"roleId": "6825715d-92cc-4e15-83ce-8e39d1a667bc",
"name": " New Character 40",
"roleType": 0,
"desc": "",
"users": [],
"departments": [],
"departmentTrees": [],
"projectOrganizes": [],
"jobs": []
},
"success": true,
"error_code": 1
}
🟠401没有权限
🟠404记录不存在
Modified at 2025-04-07 02:46:23