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

PUT /admin/communication/providers/{id}

更新指定服务商配置的凭据、激活状态和优先级。支持部分更新(仅传需要修改的字段)。配置凭据以加密方式存储。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。

通信服务 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 服务商配置ID

Request Body

Schema: dto.UpdateProviderConfigRequest

FieldTypeRequiredExampleConstraintsDescription
config string No
is_active boolean No
priority integer No

Responses

StatusDescriptionSchema
200更新成功,返回更新后的配置详情(凭据已脱敏)dto.ProviderConfigDataResponse
400请求参数错误dto.SimpleResponse
401未认证或令牌无效dto.SimpleResponse
403无权访问该资源dto.SimpleResponse
404配置不存在dto.SimpleResponse
500服务内部错误dto.SimpleResponse

Referenced Schemas

dto.ProviderConfigDataResponse

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

dto.ProviderConfigResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No
channel string No
config string No
created_at string No
id string No
is_active boolean No
priority integer No
provider string No
tenant_id string No
updated_at string No

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No