更新转发规则
开发中
本地
本地
PUT
http://127.0.0.1:9999/api/v1/forwarding/rule
请求参数
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
id
string
必需
name
string
必需
script_id
string
可选
is_enabled
boolean
必需
description
string
可选
示例
{
"id": "string",
"name": "string",
"script_id": "string",
"is_enabled": true,
"description": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://127.0.0.1:9999/api/v1/forwarding/rule' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
id
string
必需
name
string
必需
script_id
null
必需
is_enabled
boolean
必需
created_at
string
必需
updated_at
string
必需
description
string
必需
tenant_id
string
必需
示例
{
"code": 200,
"message": "successfully",
"data": {
"id": "c5daf683-20a1-0a4f-0283-05b9249fcdb4",
"name": "型政期",
"script_id": null,
"is_enabled": true,
"created_at": "2024-10-17T21:34:33.889316Z",
"updated_at": "2024-10-18T09:32:07.1971789+08:00",
"description": "思办须斗便先各根布收则领我级处。求发机始果表做素作天资集来标程。业四支局步国常史确矿完起自积切式。难那书转取周风太在线石制外南院今王。发受动红社小很装而须心石统根三。如厂传解道三音即备区性其住方温完连通。",
"tenant_id": "9c3f8a70"
}
}
修改于 2024-10-18 01:34:49