添加自定义字段
POST
/api/v2/udfs/add
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer token
x-authing-userpool-id
string
用户池 ID
示例值:
59f86b4832eb28071bdd9214
Body 参数application/json
targetType
string
必需
dataType
string
必需
userVisible
boolean
可选
adminVisible
boolean
控制台是否可见
key
string
字段 Key
label
string
显示名称
options
object
其余参数
validateRules
string
验证规则
appIds
array[string]
应用 ID 列表
encrypted
boolean
是否加密审计日志
accessControl
boolean
可选
description
string
字段说明
示例
{
"targetType": "string",
"dataType": "string",
"userVisible": true,
"adminVisible": true,
"key": "string",
"label": "string",
"options": {},
"validateRules": "string",
"appIds": [
"string"
],
"encrypted": true,
"accessControl": true,
"description": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://core.authing.cn/api/v2/udfs/add' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 200,
"message": "操作成功"
}
修改于 2022-01-14 11:58:00