更新通知组
本地
http://127.0.0.1:9999
本地
http://127.0.0.1:9999
PUT
http://127.0.0.1:9999
通知组
请求参数
Path 参数
id
string
通知组ID
Header 参数
x-token
string
可选
默认值:
{{x-token}}
Body 参数application/json
description
string
通知组描述
name
string
通知组名称
notification_config
string
通知配置
示例值:
{"data":123}
notification_type
string
通知类型
示例值:
MEMBER
remark
string
备注
status
string
通知组状态
示例
{
"description": "string",
"name": "string",
"notification_config": "{\"data\":123}",
"notification_type": "MEMBER",
"remark": "string",
"status": "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/notification_group/' \
--header 'x-token: {{x-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"name": "string",
"notification_config": "{\"data\":123}",
"notification_type": "MEMBER",
"remark": "string",
"status": "string"
}'
返回响应
🟢200更新通知组成功
application/json
Body
code
integer
可选
data
object (api.UpdateNotificationGroupOutSchema)
可选
description
string
可选
name
string
可选
notification_config
string
可选
notification_type
string
可选
remark
string
可选
status
string
可选
tenant_id
string
可选
updated_at
string
可选
message
string
可选
示例
{
"code": 0,
"data": {
"description": "string",
"name": "string",
"notification_config": "string",
"notification_type": "string",
"remark": "string",
"status": "string",
"tenant_id": "string",
"updated_at": "string"
},
"message": "string"
}