Skip to content

Create/Update notification group

Request

Update a notification group exists if exists, create a new one otherwise.

Security
api_key
Bodyapplication/jsonrequired

A notification group to send alerts to.

emailsArray of strings, (email)
idstring or null, (uuid)
namestringrequired
organisationIdstring, (uuid)required
statestring
Enum:"active""deleted"
webhookobject
curl -i -X PUT \
  https://coreapi.hoxton.ai/_mock/v1/notification-groups \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "emails": [
      "user@example.com"
    ],
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string",
    "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98",
    "state": "active",
    "webhook": {}
  }'

Responses

OK.

Bodyapplication/json
deletedAtstring or null, (date-time)read-only
emailsArray of strings, (email)
idstring or null, (uuid)
namestringrequired
organisationIdstring, (uuid)required
statestring
Enum:"active""deleted"
webhookobject
Response
{ "deletedAt": "2019-08-24T14:15:22Z", "emails": [ "user@example.com" ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "organisationId": "c9b3f279-e3b5-4204-ad99-646257417f98", "state": "active", "webhook": {} }