atproto blogging
at main 57 lines 1.6 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.communication.createTemplate", 4 "defs": { 5 "main": { 6 "type": "procedure", 7 "description": "Administrative action to create a new, re-usable communication (email for now) template.", 8 "input": { 9 "encoding": "application/json", 10 "schema": { 11 "type": "object", 12 "required": [ 13 "subject", 14 "contentMarkdown", 15 "name" 16 ], 17 "properties": { 18 "contentMarkdown": { 19 "type": "string", 20 "description": "Content of the template, markdown supported, can contain variable placeholders." 21 }, 22 "createdBy": { 23 "type": "string", 24 "description": "DID of the user who is creating the template.", 25 "format": "did" 26 }, 27 "lang": { 28 "type": "string", 29 "description": "Message language.", 30 "format": "language" 31 }, 32 "name": { 33 "type": "string", 34 "description": "Name of the template." 35 }, 36 "subject": { 37 "type": "string", 38 "description": "Subject of the message, used in emails." 39 } 40 } 41 } 42 }, 43 "output": { 44 "encoding": "application/json", 45 "schema": { 46 "type": "ref", 47 "ref": "tools.ozone.communication.defs#templateView" 48 } 49 }, 50 "errors": [ 51 { 52 "name": "DuplicateTemplateName" 53 } 54 ] 55 } 56 } 57}