- 首页
- 标准版(推荐)
- 开放版
- 复杂版
修改匹配规则
POST
http://127.0.0.1:8091/email/email/role/edit
请求参数
Header 参数
Safe-Key
string
可选
Body 参数application/json
id
string
必需
roleTitle
string
规则名称
roleUseType
string
匹配命中方式
roleUseContent
string
特定内容
roleRegType
string
匹配内容方式
roleRegText1
string
截取前,变量[n][r]
roleRegText2
string
截取后,变量[n][r]
roleRegContent
string
正则表达式
removeNr
string
去除换行符
status
string
状态
roleDoRun
string
命中后执行
roleRegText1Add
string
结果前补内容
roleRegText2Add
string
结果后补内容
示例
{
"id": "fe67829b0f404f2ca86548f5239683b2",
"roleTitle": "苹果iPhone验证码",
"roleUseType": "0",
"roleUseContent": "@id.apple.com",
"roleRegType": "0",
"roleRegText1": "请在电子邮件验证页面输入下方验证码:[n][n]",
"roleRegText2": "[n]",
"roleRegContent": "",
"removeNr": "0",
"status": "0"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:8091/email/email/role/edit' \
--header 'Safe-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "fe67829b0f404f2ca86548f5239683b2",
"roleTitle": "苹果iPhone验证码",
"roleUseType": "0",
"roleUseContent": "@id.apple.com",
"roleRegType": "0",
"roleRegText1": "请在电子邮件验证页面输入下方验证码:[n][n]",
"roleRegText2": "[n]",
"roleRegContent": "",
"removeNr": "0",
"status": "0"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
data
object
必需
createId
null
必需
createTime
string
必需
updateId
null
必需
updateTime
string
必需
isDelete
integer
必需
id
string
必需
host
string
必需
port
string
必需
type
string
必需
user
string
必需
password
string
必需
useNum
integer
必需
status
string
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "操作成功",
"data": {
"createId": null,
"createTime": "2024-01-01 14:15:09",
"updateId": null,
"updateTime": "2024-01-02 12:21:30",
"isDelete": 0,
"id": "54e442d5b201be4c8fb9472ec81c2623",
"host": "127.0.0.1",
"port": "7890",
"type": "http",
"user": "",
"password": "",
"useNum": 1,
"status": "0"
},
"timestamp": 1704186596455
}
修改于 2024-03-17 05:51:04