PATCH
/
template
/
{id}
curl --request PATCH \
  --url https://demo.enneo.ai/api/mind/template/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "tagId": 1,
  "emailTemplateId": 1,
  "description": "Zählerstand erfolgreich hinterlegt",
  "message": "<p>Wir haben den Zählerstand von {{intent.data.reading}} kWh für den {{formatDateDE intent.data.date}} erfasst und im System hinterlegt.</p>",
  "subject": "Wir brauchen Deine Unterstützung",
  "exampleTicketIds": [
    1
  ],
  "mergedTemplate": "Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt.",
  "template": "<p>Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt.</p>",
  "success": true
}'
{
  "success": true
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Path Parameters

id
number
required

The id of the template

Body

application/json
id
integer

The id of the template

Example:

1

tagId
integer

The id of the tag that the template belongs to

Example:

1

emailTemplateId
integer

The id of the email template that is used for wrapping

Example:

1

description
string

The description of the intent template

Example:

"Zählerstand erfolgreich hinterlegt"

message
string

The template itself

Example:

"<p>Wir haben den Zählerstand von {{intent.data.reading}} kWh für den {{formatDateDE intent.data.date}} erfasst und im System hinterlegt.</p>"

subject
string

The subject of the email for outgoing emails

Example:

"Wir brauchen Deine Unterstützung"

exampleTicketIds
integer[]

The ids of the tickets that are used as examples for the intent template

mergedTemplate
string

The merged template

Example:

"Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt."

template
string

The template itself

Example:

"<p>Wir haben den Zählerstand von 123 kWh für den 01.01.2022 erfasst und im System hinterlegt.</p>"

success
boolean

If true, the template is successful

Example:

true

Response

200
application/json
Successful operation

Data format of Enneo success messages

success
boolean

Operation was successful

Example:

true