批量添加模块绑定
POST
/api/v1/system/tenant/app/module/multi-create
iThings-apisvr/系统管理new/租户管理/应用管理/模块管理
请求参数
Header 参数
iThings-token
string
可选
示例值:
{{iThings-token}}
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
code
string
必需
appCode
string
必需
modules
array[object (租户app模块) {3}]
可选
code
string
模块code
menuIDs
array[integer]
菜单id列表
apiIDs
array[integer]
可选
示例
{
"code": "default",
"menuIDs": [
12,
85,
23,
83
],
"apiIDs": [
24,
77,
6,
57
],
"appCode": "core",
"moduleCode": "systemManage"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/tenant/app/module/multi-create' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-token;' \
--header 'iThings-project-id: 1764806234122309632{{iThings-token}}' \
--header 'iThings-project-id;' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-app-code;' \
--header 'iThings-user-role: 1' \
--header 'iThings-user-role;' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "default",
"menuIDs": [
12,
85,
23,
83
],
"apiIDs": [
24,
77,
6,
57
],
"appCode": "core",
"moduleCode": "systemManage"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
示例
{
"code": 0,
"msg": "success"
}

扫码加入 iThings微信交流群

