- 授权
- 验证码
- GitHub OAuth2
- LinuxDo OAuth2
- 系统API
- 系统Casbin权限
- 系统部门
- 系统字典数据
- 系统字典类型
- 系统角色
- 系统用户
- 登录日志
- 操作日志
- redis监控
- 服务器监控
- 代码生成
- 任务
- 系统数据权限规则
- 系统通知公告
- 系统参数配置
- 系统菜单
- 系统令牌
- 系统上传
- 系统插件
更新部门
PUT
/api/v1/sys/depts/{pk}
系统部门
最后修改时间:2025-04-16 13:07:52
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
pk
integer
Pk
Body 参数application/json
更新部门参数
name
string
Name
parent_id
Parent Id
Any of
sort
integer
Sort
>= 0
默认值:
0
leader
Leader
Any of
phone
Phone
Any of
正则匹配:
^1[3-9]\d{9}$
email
Email
Any of
status
enum<integer>
状态
枚举值:
01
示例
{
"name": "string",
"parent_id": 0,
"sort": 0,
"leader": "string",
"phone": "string",
"email": "user@example.com",
"status": 0
}
返回响应
🟢200成功
application/json
Body
不包含返回数据 schema 的通用型统一返回模型
code
integer
Code
默认值:
200
msg
string
Msg
默认值:
请求成功
data
Data
Any of
示例
{
"code": 200,
"msg": "请求成功",
"data": null
}
🟠422参数错误