{ "lexicon": 1, "id": "tools.ozone.communication.createTemplate", "defs": { "main": { "type": "procedure", "description": "Administrative action to create a new, re-usable communication (email for now) template.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": [ "subject", "contentMarkdown", "name" ], "properties": { "contentMarkdown": { "type": "string", "description": "Content of the template, markdown supported, can contain variable placeholders." }, "createdBy": { "type": "string", "description": "DID of the user who is creating the template.", "format": "did" }, "lang": { "type": "string", "description": "Message language.", "format": "language" }, "name": { "type": "string", "description": "Name of the template." }, "subject": { "type": "string", "description": "Subject of the message, used in emails." } } } }, "output": { "encoding": "application/json", "schema": { "type": "ref", "ref": "tools.ozone.communication.defs#templateView" } }, "errors": [ { "name": "DuplicateTemplateName" } ] } } }