A AuthMS API Wiki API Reference iam.tianv.com →

POST /admin/tenants/{id}/org-chart

更新指定租户的组织架构图配置,支持批量调整部门关系与展示样式

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Request Body

Schema: domain.UpdateOrgChartRequest

FieldTypeRequiredExampleConstraintsDescription
nodes array of

See domain.OrgChartNode

No

Responses

StatusDescriptionSchema
200更新成功dto.DataClassificationDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证gitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足gitee_com_linmes_authms_base_dto.SimpleResponse
409资源冲突gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

domain.OrgChartNode

FieldTypeRequiredExampleConstraintsDescription
id string No
name string No
parent_id string No

dto.DataClassification

数据分类项

FieldTypeRequiredExampleConstraintsDescription
color string No #FF0000 颜色
description string No 机密数据 描述
label string No 机密 标签
level string No confidential 级别

dto.DataClassificationDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.DataClassificationResponse No
message string No
timestamp string No

dto.DataClassificationResponse

租户数据分类分级配置

FieldTypeRequiredExampleConstraintsDescription
classifications array of

See dto.DataClassification

No 分类列表
tenant_id string No tnt_abc123 租户ID
updated_at string No 2026-04-10T14:20:00Z 更新时间

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No