Skip to content

tools.ozone.communication.updateTemplate

Lexicon Version: 1

Type: procedure

Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.

Parameters: (None defined)

Input:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
idstringID of the template to be updated.
namestringName of the template.
langstringMessage language.Format: language
contentMarkdownstringContent of the template, markdown supported, can contain variable placeholders.
subjectstringSubject of the message, used in emails.
updatedBystringDID of the user who is updating the template.Format: did
disabledboolean
Output:
  • Encoding: application/json
  • Schema:

Schema Type: tools.ozone.communication.defs#templateView

Possible Errors:

  • DuplicateTemplateName

{
"lexicon": 1,
"id": "tools.ozone.communication.updateTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "ID of the template to be updated."
},
"name": {
"type": "string",
"description": "Name of the template."
},
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
},
"subject": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"updatedBy": {
"type": "string",
"format": "did",
"description": "DID of the user who is updating the template."
},
"disabled": {
"type": "boolean"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
},
"errors": [
{
"name": "DuplicateTemplateName"
}
]
}
}
}