notification.group.create

The notification.group.create command creates a new notification group.

Requires Org-Admin rights.

TR50 Request


                        {
    "cmd": {
        "command": "notification.group.create",
        "params": {
            "key": "notificationgroup1",
            "name": "Notification Group 1",
            "desc": "A notification group.",
            "public": false
        }
    }
}
      

Request Parameters

Name

Type

Required

Description

key

String

Yes

The key of the group.

name

String

Yes

The name of the group.

desc

String

 

The description of the group.

public

Boolean

 

If the group is public or private. Defaults to true.

TR50 Response

If the command is sent successfully a success message and the id of the newly created notification group is returned. Otherwise, an error and error message will be returned.


                        {
  "cmd": {
    "success": true,
    "params": {
      "id": "500000000000000000000001"
    }
  }
}