POST
/
v1
/
notifications
/
preferences
/
profiles
curl --request POST \
  --url https://platform.thena.ai/v1/notifications/preferences/profiles \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "description": "Out of office profile",
  "isCurrent": false,
  "isDefault": true,
  "groupingType": "no_grouping",
  "batchingType": "no_batching",
  "batchCount": 123,
  "batchDuration": 123,
  "title": "Out of office",
  "configuration": [
    {
      "eventType": "ticket_created",
      "channelType": "push",
      "isEnabled": true
    }
  ]
}'
{
  "id": "<string>",
  "title": "<string>",
  "description": "<string>",
  "isCurrent": true,
  "isDefault": true,
  "configuration": [
    {
      "eventType": "ticket_created",
      "channelType": "push",
      "isEnabled": true
    }
  ],
  "groupingType": "no_grouping",
  "batchingType": "no_batching",
  "batchCount": 123,
  "batchDuration": 123,
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

x-api-key
string
header
required

Enter your API key

Body

application/json

Response

201
application/json

Operation successful

The response is of type object.