Zum Hauptinhalt springen
POST
/
settings
/
subchannel
Add a new Subchannel
curl --request POST \
  --url https://demo.enneo.ai/api/mind/settings/subchannel \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "channel": "email",
  "name": "Support",
  "isDefault": false,
  "interface": "internal",
  "enabled": true,
  "data": {}
}
'
{
  "success": true,
  "id": 12345
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Body

application/json

The new Subchannel that should be created. The ID does not need to be included in the payload, as it will be generated automatically.

Subchannel object

id
integer
Beispiel:

1

channel
enum<string>

Channel of ticket

Verfügbare Optionen:
email,
portal,
phone,
letter,
system,
chat,
walkIn
Beispiel:

"email"

name
string
Beispiel:

"Support"

isDefault
boolean
Standard:false

Whether this subchannel is the default for its channel. Only one subchannel per channel can be default.

Beispiel:

false

interface
enum<string>

The underlying data source of this subchannel.

Currently only 'internal' is supported, meaning the subchannel is managed directly by Enneo.

Verfügbare Optionen:
internal
Beispiel:

"internal"

enabled
boolean
Standard:true
Beispiel:

true

data
object

Channel-specific properties of this subchannel, e.g. IMAP Username and password for emails

Antwort

Subchannel added successfully

success
boolean

Indicates if the operation was successful

Beispiel:

true

id
integer

The ID of the added Subchannel

Beispiel:

12345