atproto blogging
1{
2 "lexicon": 1,
3 "id": "tools.ozone.communication.updateTemplate",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "id"
14 ],
15 "properties": {
16 "contentMarkdown": {
17 "type": "string",
18 "description": "Content of the template, markdown supported, can contain variable placeholders."
19 },
20 "disabled": {
21 "type": "boolean"
22 },
23 "id": {
24 "type": "string",
25 "description": "ID of the template to be updated."
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 "updatedBy": {
41 "type": "string",
42 "description": "DID of the user who is updating the template.",
43 "format": "did"
44 }
45 }
46 }
47 },
48 "output": {
49 "encoding": "application/json",
50 "schema": {
51 "type": "ref",
52 "ref": "tools.ozone.communication.defs#templateView"
53 }
54 },
55 "errors": [
56 {
57 "name": "DuplicateTemplateName"
58 }
59 ]
60 }
61 }
62}