---
title: "修改部门接口"
method: PUT
path: "/api/v1/dept/update"
tags: ["System系统管理"]
---

# 修改部门接口

`PUT /api/v1/dept/update`

修改部门接口

## Request body

- ModelSysDept
  - `children` ModelSysDept[] — 子集
  - `createTime` UtilHTime
    - `time.Time` string
  - `deptName` string — 部门名称
  - `deptStatus` integer — 部门状态（1->正常 2->停用）
  - `deptType` integer — 部门类型（1->公司, 2->中心，3->部门）
  - `id` integer — ID
  - `parentId` integer — 父id

## Response `200`

OK

- ResultResult
  - `code` integer — 状态码
  - `data` unknown
  - `message` string — 提示信息

---

[API](https://skmtc.net/opsre/apis/devops.md) · [All operations](https://skmtc.net/opsre/apis/devops/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opsre/devops/versions/25cac8835c4c/schema)
