Application API
  1. Application Role
Application API
  • V3 (AI-friendly-beta)
    • Overview
    • Field Type Comparison Table
    • Guidelines for Using Filters
    • Error Code
    • application
      • Get application information
    • worksheet
      • Get worksheet structure information
      • Edit the worksheet
      • Delete worksheets
      • Create worksheet
    • worksheet Row Records
      • Get a list of line records
      • Get line record details
      • Update line records
      • Delete line records
      • Get relation records
      • Create a new row record
      • Add new line records in batches
      • Batch update line records
      • Batch delete row records
      • Obtain line record perspective data
      • Get record sharing links
      • Get a row record log
      • Get line record discussion
    • option set
      • Get a list of option sets
      • Create an option set
      • Edit option set
      • Delete option set
    • workflow
      • Get a list of processes
      • Get process details
      • Trigger process
    • role
      • Get a list of roles
      • create role
      • Get role details
      • remove roles
      • Add role members
      • Remove role members
      • Members withdraw from all roles
    • public query
      • find members
      • Find departments
      • Get regional information
  • V2
    • Development Guide
    • ErrorCode
    • Filter Demo
    • Filter
    • Options Set
      • Add Option Set
      • Get Option Set
      • Edit Option Set
      • Delete Option Set
    • Application Role
      • Get Application Role List GET
        GET
      • Create Application Role
        POST
      • Delete Application Role
        POST
      • Add Application Role Member
        POST
      • Remove Application Role Member
        POST
      • Exit application
        POST
      • Get Role Details
        GET
    • worksheet
      • Create Worksheet
      • Get worksheet structure information
      • Get List
      • Create Row Record
      • Batch Create Row Records
      • Get Row Record Details
      • Get row record details
      • Update Row Record Details
      • Batch Update Row Record Details
      • Delete Row Record
      • Get associated record
      • Get Record Share Link
      • Get total row count of worksheet
      • Get Row Record Log
    • app
      • Get Application Information
    • Public Inquiries
      • Get regional Information
    • Get Row Record Discussions
      POST
  1. Application Role

Create Application Role

fromal
https://api.mingdao.com
fromal
https://api.mingdao.com
POST
/v1/open/app/createRole
Create a role
Information includes: role name, description, permission information

Request

Body Params application/json

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 Code 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

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
Previous
Get Application Role List GET
Next
Delete Application Role
Built with