- IDMesh APIs
- 使用文档
- 管理 API
- 用户
- 应用
- 创建应用POST
- 更新应用基本信息PATCH
- 查询应用模板列表GET
- 查询应用列表GET
- 按条件查询应用GET
- 按 ID 查询应用GET
- 启用应用POST
- 禁用应用POST
- 删除应用DELETE
- 刷新应用安全码POST
- 查询应用配置信息GET
- 更新应用配置PATCH
- 禁用应用单点登录POST
- 启用应用多子账号登录POST
- 禁用应用多子账号登录POST
- 启用应用单点登录POST
- 启用应用多因素认证配置POST
- 禁用应用多因素认证配置DELETE
- 创建应用认证源POST
- 删除应用认证源DELETE
- 启用应用认证协议POST
- 禁用应用认证协议POST
- 重置应用认证协议密钥POST
- 查询应用认证协议列表GET
- 查询应用认证协议GET
- 更新应用认证协议PUT
- 更新应用子账号PUT
- 创建应用子账号POST
- 更新应用子账号PATCH
- 启用应用子账号POST
- 禁用应用子账号POST
- 删除应用子账号DELETE
- 按 APP ID 查询应用子账号列表GET
- 按条件查询应用子账号列表GET
- 按条件查询应用子账号GET
- 按 ID 查询应用子账号GET
- 更新应用 LogoPOST
- 批量创建应用子账号POST
- 权限及资源
- 组织关系
- 身份源
- KV 存储
- 定时任务
- 事件
- BFF
更新应用基本信息
PATCH
/v1/applications/{id}
type_mgmtdocprogrammer-docmodule_application
请求参数
Path 参数
id
string
必需
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
name
string
应用名称
domain_sn
string
应用 Domain SN
type
string
应用类型
app_id
string
应用key
app_secret
string
应用secret
category
string
应用分类
descr
string
应用描述
logo
string
logo路径
login_url
string
登录路径
redirect_url
string
重定向路径
logout_url
string
登出路径
sub_account_policy
string
子账号策略
sys_ext_props
object
系统扩展属性
free_ext_props
object
自定义扩展属性
status
string
状态
template_params
object
应用模板参数
version
string
应用模板版本
params
object
参数
protocols
object
协议配置
key: 协议名称
value: 协议配置,格式: {"config": <配置内容json内容>}
oidc
object
可选
saml
object
可选
oatuh2
object
可选
sxp
object
可选
cas
object
可选
示例
{
"name": "string",
"domain_sn": "string",
"type": "string",
"app_id": "string",
"app_secret": "string",
"category": "string",
"descr": "string",
"logo": "string",
"login_url": "string",
"redirect_url": "string",
"logout_url": "string",
"sub_account_policy": "string",
"sys_ext_props": {},
"free_ext_props": {},
"status": "string",
"template_params": {
"version": "string",
"params": {}
},
"protocols": {
"oidc": {
"config": "string"
},
"saml": {
"config": "string"
},
"oatuh2": {
"config": "string"
},
"sxp": {
"config": "string"
},
"cas": {
"config": "string"
}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://127.0.0.1/v1/applications/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"domain_sn": "string",
"type": "string",
"app_id": "string",
"app_secret": "string",
"category": "string",
"descr": "string",
"logo": "string",
"login_url": "string",
"redirect_url": "string",
"logout_url": "string",
"sub_account_policy": "string",
"sys_ext_props": {},
"free_ext_props": {},
"status": "string",
"template_params": {
"version": "string",
"params": {}
},
"protocols": {
"oidc": {
"config": "string"
},
"saml": {
"config": "string"
},
"oatuh2": {
"config": "string"
},
"sxp": {
"config": "string"
},
"cas": {
"config": "string"
}
}
}'
返回响应
🟢200成功
application/json
Body
message
string
可选
data
number
可选
示例
{
"message": "string",
"data": 0
}
🟠400参数错误