Skip to content

Create



POST /api/v1/notify_object/create

Overview

Create a notification target

Body Request Parameters

Parameter Name Type Required Description
type string Y Trigger rule type, default is trigger
Can be empty: True
Optional values: ['dingTalkRobot', 'HTTPRequest', 'wechatRobot', 'mailGroup', 'feishuRobot', 'sms', 'simpleHTTPRequest', 'slackIncomingWebhook', 'teamsWorkflowWebhook']
name string Y Notification target name
Can be empty: False
optSet json Alert settings
Can be empty: False
openPermissionSet boolean Enable custom permission configuration, (default false: not enabled), after enabling the operation permissions for this rule will be based on permissionSet
Can be empty: False
permissionSet array Operation permission configuration, can configure (roles (except owner), member UUIDs, team UUIDs)
Example: ['wsAdmin', 'acnt_xxxx', 'group_yyyy']
Can be empty: False

Additional Parameter Explanations

Data Explanation.

**Request Parameter Explanation: ** | Parameter Name | Type | Description | | ---------------- | ---- | ---------------------------------------------------- | | name | string | Notification target name | | type | string | Trigger rule type | | optSet | dict | Alert settings | | openPermissionSet | boolean | Whether to enable custom permission configuration, default false | | permissionSet | array | Operation permission configuration |

**1. type=dingTalkRobot optSet parameters **

key Type Required Description
webhook String Required DingTalk bot invocation address
secret String Required DingTalk bot invocation secret key (add bot - security settings - sign)

**2. type=HTTPRequest when optSet parameters **

key Type Required Description
url String Required HTTP invocation address

**3. type=wechatRobot when optSet parameters **

key Type Required Description
webhook String Required Bot invocation address

**4. type=mailGroup when optSet parameters **

key Type Required Description
to Array Required Member account list

**5. type=feishuRobot optSet parameters **

key Type Required Description
webhook String Required Lark bot invocation address
secret String Required Lark bot invocation secret key (add bot - security settings - sign)

**6. type=sms when optSet parameters **

key Type Required Description
to Array Required Phone number list

**7. type=simpleHTTPRequest when optSet parameters **

key Type Required Description
url String Required HTTP invocation address

8. type=slackIncomingWebhook when optSet parameters (Added in iteration 2025-03-26)

key Type Required Description
webhook String Required Bot invocation address

9. type=teamsWorkflowWebhook when optSet parameters (Added in iteration 2025-03-26)

key Type Required Description
webhook String Required Bot invocation address

**permissionSet, openPermissionSet Field Explanation (Fields added in iteration 2024-06-26): ** After enabling the notification target configuration openPermissionSet, only the workspace owner and roles, teams, members configured in permissionSet can edit/delete. When the notification target configuration openPermissionSet is disabled (default), the delete/edit permissions follow the original interface edit/delete permissions.

The permissionSet field can be configured with role UUIDs (wsAdmin, general, readOnly, role_xxxxx), team UUIDs (group_yyyy), member UUIDs (acnt_xxx). Example of permissionSet field:

  ["wsAdmin", "general", "group_yyyy", "acnt_xxxx"]

Response


Feedback

Is this page helpful? ×