{
"enabled": true,
"provider": "string",
"name": "string",
"logo": "string",
"description": null,
"fields": [
{
"key": "string",
"value": "string"
}
]
}
curl --location --request POST 'https://core.authing.cn/api/v2/email/provider' \
--header 'Authorization: Bearer token' \
--header 'x-authing-userpool-id: 59f86b4832eb28071bdd9214' \
--header 'Content-Type: application/json' \
--data-raw '{
"enabled": true,
"provider": "string",
"name": "string",
"logo": "string",
"description": null,
"fields": [
{
"key": "string",
"value": "string"
}
]
}'
{
"code": 200,
"message": "更新成功",
"data": {
"id": "61c9307ba9e5de5a02f59a06",
"createdAt": "2021-12-27T03:18:19.330Z",
"updatedAt": "2022-01-12T09:25:21.671Z",
"userPoolId": "59f86b4832eb28071bdd9214",
"enabled": true,
"provider": "custom",
"name": "",
"logo": "",
"description": null,
"fields": [
{
"key": "smtp_host",
"value": "http://hhhhh"
},
{
"key": "smtp_port",
"value": 296
}
]
}
}