Skip to main content
POST
/
api
/
notification
/
new
/
template
/
modify
编辑模板
curl --request POST \
  --url https://api.example.com/api/notification/new/template/modify \
  --header 'Authentication: <authentication>' \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "smsKey": "your_sms_key",
  "smsContent": "您的验证码是{code}",
  "templateName": "验证码模板",
  "emailContent": "尊敬的用户,您的验证码是{code}",
  "status": 1,
  "copyId": "template_copy_id",
  "agency": "your_agency",
  "type": "sms",
  "sendTarget": "user1,user2",
  "sendTargetType": "user",
  "userId": "your_user_id",
  "userName": "your_user_name",
  "agencyId": "your_agency_id"
}
'
{}

Headers

Content-Type
string
required
Authorization
string
required
Authentication
string
default:{{token_1}}
required

Body

application/json
id
string
required
smsKey
string
required
smsContent
string
required
templateName
string
required
emailContent
string
required
status
integer
required
sendTarget
string
required
sendTargetType
string
required

Response

200 - application/json

The response is of type object.