Skip to content

Creates alert channel
Stable

Request

Returns instance of alert channel

Security
apiKey
Path
enterprise_idstringrequired

A UUID string identifying this enterprise.

Bodyapplication/jsonrequired
idinteger
propertiesobject
namestring
typestring

format of alert. e.g. email

created_onstring, (date-time)
updated_onstring, (date-time)
enterprisestring, (uuid)
cURL
curl -i -X POST \
  'https://develop-api.esper.io/_mock/openapi/v1/enterprise/{enterprise_id}/alertchannels/' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "id": 0,
    "properties": {
      "to_address": "user@example.com"
    },
    "name": "string",
    "type": "string",
    "created_on": "2019-08-24T14:15:22Z",
    "updated_on": "2019-08-24T14:15:22Z",
    "enterprise": "796caaf9-a7de-4817-9ffa-39d04bf83de9"
  }'

Responses

successful operation

Bodyapplication/json
idinteger
propertiesobject
namestring
typestring

format of alert. e.g. email

created_onstring, (date-time)
updated_onstring, (date-time)
enterprisestring, (uuid)
linked_alertsArray of strings
Response
{ "id": 0, "properties": { "to_address": "user@example.com" }, "name": "string", "type": "string", "created_on": "2019-08-24T14:15:22Z", "updated_on": "2019-08-24T14:15:22Z", "enterprise": "796caaf9-a7de-4817-9ffa-39d04bf83de9", "linked_alerts": [ "string" ] }