Skip to content

Commit 07bbc8a

Browse files
author
github-actions
committed
Update REST API documentation Sat Apr 26 12:57:01 UTC 2025
1 parent 65b71af commit 07bbc8a

File tree

1 file changed

+118
-13
lines changed

1 file changed

+118
-13
lines changed

restapi.json

+118-13
Original file line numberDiff line numberDiff line change
@@ -795,13 +795,7 @@
795795
"content": {
796796
"application/json": {
797797
"schema": {
798-
"properties": {
799-
"message": {
800-
"type": "string",
801-
"example": "There is no session with that ID."
802-
}
803-
},
804-
"type": "object"
798+
"$ref": "#/components/schemas/NotFoundErrorResponse"
805799
}
806800
}
807801
}
@@ -951,7 +945,14 @@
951945
}
952946
},
953947
"404": {
954-
"description": "Not Found"
948+
"description": "Failure",
949+
"content": {
950+
"application/json": {
951+
"schema": {
952+
"$ref": "#/components/schemas/NotFoundErrorResponse"
953+
}
954+
}
955+
}
955956
}
956957
}
957958
},
@@ -1055,7 +1056,14 @@
10551056
}
10561057
},
10571058
"404": {
1058-
"description": "Not Found"
1059+
"description": "Failure",
1060+
"content": {
1061+
"application/json": {
1062+
"schema": {
1063+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1064+
}
1065+
}
1066+
}
10591067
}
10601068
}
10611069
},
@@ -1101,7 +1109,14 @@
11011109
}
11021110
},
11031111
"404": {
1104-
"description": "Not Found"
1112+
"description": "Failure",
1113+
"content": {
1114+
"application/json": {
1115+
"schema": {
1116+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1117+
}
1118+
}
1119+
}
11051120
}
11061121
}
11071122
}
@@ -1157,6 +1172,16 @@
11571172
}
11581173
}
11591174
}
1175+
},
1176+
"404": {
1177+
"description": "Failure",
1178+
"content": {
1179+
"application/json": {
1180+
"schema": {
1181+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1182+
}
1183+
}
1184+
}
11601185
}
11611186
}
11621187
},
@@ -1228,6 +1253,16 @@
12281253
}
12291254
}
12301255
},
1256+
"400": {
1257+
"description": "Failure",
1258+
"content": {
1259+
"application/json": {
1260+
"schema": {
1261+
"$ref": "#/components/schemas/BadRequestResponse"
1262+
}
1263+
}
1264+
}
1265+
},
12311266
"403": {
12321267
"description": "Failure",
12331268
"content": {
@@ -1238,12 +1273,12 @@
12381273
}
12391274
}
12401275
},
1241-
"400": {
1276+
"404": {
12421277
"description": "Failure",
12431278
"content": {
12441279
"application/json": {
12451280
"schema": {
1246-
"$ref": "#/components/schemas/BadRequestResponse"
1281+
"$ref": "#/components/schemas/NotFoundErrorResponse"
12471282
}
12481283
}
12491284
}
@@ -1321,7 +1356,14 @@
13211356
}
13221357
},
13231358
"404": {
1324-
"description": "Subscriber or subscription not found."
1359+
"description": "Failure",
1360+
"content": {
1361+
"application/json": {
1362+
"schema": {
1363+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1364+
}
1365+
}
1366+
}
13251367
}
13261368
}
13271369
}
@@ -1580,6 +1622,69 @@
15801622
}
15811623
}
15821624
}
1625+
},
1626+
"404": {
1627+
"description": "Failure",
1628+
"content": {
1629+
"application/json": {
1630+
"schema": {
1631+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1632+
}
1633+
}
1634+
}
1635+
}
1636+
}
1637+
},
1638+
"delete": {
1639+
"tags": [
1640+
"templates"
1641+
],
1642+
"summary": "Deletes a template.",
1643+
"description": "Deletes template by id.",
1644+
"operationId": "b0dc1b522ff76c9a1af1e4a714f30e6d",
1645+
"parameters": [
1646+
{
1647+
"name": "session",
1648+
"in": "header",
1649+
"description": "Session ID",
1650+
"required": true,
1651+
"schema": {
1652+
"type": "string"
1653+
}
1654+
},
1655+
{
1656+
"name": "templateId",
1657+
"in": "path",
1658+
"description": "Template ID",
1659+
"required": true,
1660+
"schema": {
1661+
"type": "string"
1662+
}
1663+
}
1664+
],
1665+
"responses": {
1666+
"204": {
1667+
"description": "Success"
1668+
},
1669+
"403": {
1670+
"description": "Failure",
1671+
"content": {
1672+
"application/json": {
1673+
"schema": {
1674+
"$ref": "#/components/schemas/UnauthorizedResponse"
1675+
}
1676+
}
1677+
}
1678+
},
1679+
"404": {
1680+
"description": "Failure",
1681+
"content": {
1682+
"application/json": {
1683+
"schema": {
1684+
"$ref": "#/components/schemas/NotFoundErrorResponse"
1685+
}
1686+
}
1687+
}
15831688
}
15841689
}
15851690
}

0 commit comments

Comments
 (0)