POST
/
v1
/
notifications
/
subscriptions
/
preferences
curl --request POST \
  --url https://platform.thena.ai/v1/notifications/subscriptions/preferences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "eventType": "ticket_created",
  "isEnabled": true
}'
{
  "eventType": "ticket_created",
  "isEnabled": true,
  "createdAt": "2021-01-01",
  "updatedAt": "2021-01-01"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Body

application/json
eventType
string
required

The event type of the notification

Example:

"ticket_created"

isEnabled
boolean
required

Whether the notification is enabled

Example:

true

Response

201
application/json
Operation successful
eventType
string
required

The event type of the notification

Example:

"ticket_created"

isEnabled
boolean
required

Whether the notification is enabled

Example:

true

createdAt
string
required

The created at date of the notification subscription preference

Example:

"2021-01-01"

updatedAt
string
required

The updated at date of the notification subscription preference

Example:

"2021-01-01"