PUT /admin/communication/providers/{id}
更新指定服务商配置的凭据、激活状态和优先级。支持部分更新(仅传需要修改的字段)。配置凭据以加密方式存储。参考:ePrivacy Directive 2002/58/EC、CAN-SPAM Act。
通信服务 `bearerAuth` application/json
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
id |
path |
string |
Yes |
|
|
|
服务商配置ID |
Request Body
Schema: dto.UpdateProviderConfigRequest
| Field | Type | Required | Example | Constraints | Description |
config |
string |
No |
|
|
|
is_active |
boolean |
No |
|
|
|
priority |
integer |
No |
|
|
|
Referenced Schemas
dto.ProviderConfigDataResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
data |
dto.ProviderConfigResponse |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|
dto.ProviderConfigResponse
| Field | Type | Required | Example | Constraints | Description |
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
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
|
|
|
message |
string |
No |
|
|
|
timestamp |
string |
No |
|
|
|