服务组编辑。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
POST /services/group/modify HTTP/1.1
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
|---|---|---|---|---|
| body | object | 否 | 请求 Body。  | |
| serviceGroupId | long | 是 | 服务组 ID。  | 1 | 
| enableWebhook | string | 是 | 是否开启 webhook: 
  | ENABLE | 
| webhookType | string | 是 | 
  | WEIXIN_GROUP | 
| webhookLink | string | 是 | webhook 地址。  | wwwwwww | 
| serviceGroupName | string | 是 | 服务组名字。  | 我的服务组 | 
| serviceGroupDescription | string | 否 | 服务组描述。  | 服务组描述 | 
| userIds | array | 是 | 用户 ID 数组。  | |
| long | 是 | 用户 ID。  | 55 | |
| monitorSourceTemplates | array<object> | 否 | 消息模版列表。  | |
| object | 否 | 消息模版列表。  | ||
| templateId | long | 否 | 消息模版 ID。  | 1111 | 
| monitorSourceId | long | 否 | 监控源 ID。  | 11111 | 
| monitorSourceName | string | 否 | 监控源名字。  | zabbix | 
| templateContent | string | 否 | 模版内容。  | 内容 | 
| clientToken | string | 否 | 幂等号。  | C4BE3837-1A13-413B-A225-2C88188E8A43 | 
返回参数
示例
正常返回示例
JSON格式
{
  "requestId": "C4BE3837-1A13-413B-A225-2C88188E8A43"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | ServiceGroupNotExisted | The service group does not exist. | 服务组不存在 | 
| 400 | EditServiceGroupFail | Failed to edit the service group. | 编辑服务组失败 | 
| 400 | ServiceGroupWebHookLinkAlreadyExisted | The webhook link is already in use. | webhooklink已经被使用 | 
| 400 | ServiceGroupNameAlreadyExisted | The service group name is already in use. | 服务组名字已经被使用 | 
| 405 | openFailed | open Failed | 灰度开通阶段,如需开通请联系我们 | 
访问错误中心查看更多错误码。
