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

POST /admin/tenants/{id}/app-types

为租户创建自定义应用类型

租户服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 租户ID

Request Body

Schema: handler.createAppTypeRequest

FieldTypeRequiredExampleConstraintsDescription
code string Yes
name string Yes
description string No

Responses

StatusDescriptionSchema
201创建成功dto.ApplicationTypeDetailResponse
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应用类型Code冲突gitee_com_linmes_authms_base_dto.SimpleResponse
500服务器内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.ApplicationTypeDetailResponse

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

dto.ApplicationTypeResponse

FieldTypeRequiredExampleConstraintsDescription
code string No custom-crm
created_at string No 2026-01-01T00:00:00Z
description string No 租户自定义应用类型
id string No 550e8400-e29b-41d4-a716-446655440000
name string No 自定义 CRM
tenant_id string No tenant-123
updated_at string No 2026-01-01T00:00:00Z

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No