post https://api.authing.cn/api/v3/update-department
Log in to see full request history
Responses
xxxxxxxxxx
19import { 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.updateDepartment({
departmentId: '6267c25597f8fd5757943b65',
parentDepartmentId: '6267ba6f09caf94dbe2ad291',
code: 'one',
leaderUserId: '60b49eb83fd80adb96f26e68',
organizationCode: 'steamory',
name: '客户第一',
});
})();
Try It!
to start a request and see the response here! Or choose an example: