post https://api.authing.cn/api/v3/set-custom-fields
创建扩展字段
Log in to see full request history
Responses
创建扩展字段
xxxxxxxxxx
31import { ManagementClient } from 'authing-node-sdk';
// 在 Node.js 中引用:
// const { ManagementClient } = require('authing-node-sdk');
const managementClient = new ManagementClient({
accessKeyId: 'AUTHING_USERPOOL_ID',
accessKeySecret: 'AUTHING_USERPOOL_SECRET',
});
(async () => {
const result = await managementClient.setCustomFields(
{
list: [
{
"targetType": "USER",
"dataType": "STRING",
"key": "school",
"label": "学校",
"description": "学校",
"encrypted": false,
"options": [
{
"value": "pku",
"label": "北京大学"
}
]
}
]
}
Try It!
to start a request and see the response here! Or choose an example: