|
1121 | 1121 | } |
1122 | 1122 | } |
1123 | 1123 | }, |
| 1124 | + "/messages/{messageID}": { |
| 1125 | + "delete": { |
| 1126 | + "security": [ |
| 1127 | + { |
| 1128 | + "ApiKeyAuth": [] |
| 1129 | + } |
| 1130 | + ], |
| 1131 | + "description": "Delete a message from the database and removes the message content from the list of threads.", |
| 1132 | + "consumes": ["application/json"], |
| 1133 | + "produces": ["application/json"], |
| 1134 | + "tags": ["Messages"], |
| 1135 | + "summary": "Delete a message from the database.", |
| 1136 | + "parameters": [ |
| 1137 | + { |
| 1138 | + "type": "string", |
| 1139 | + "default": "32343a19-da5e-4b1b-a767-3298a73703ca", |
| 1140 | + "description": "ID of the message", |
| 1141 | + "name": "messageID", |
| 1142 | + "in": "path", |
| 1143 | + "required": true |
| 1144 | + } |
| 1145 | + ], |
| 1146 | + "responses": { |
| 1147 | + "204": { |
| 1148 | + "description": "No Content", |
| 1149 | + "schema": { |
| 1150 | + "$ref": "#/definitions/responses.NoContent" |
| 1151 | + } |
| 1152 | + }, |
| 1153 | + "400": { |
| 1154 | + "description": "Bad Request", |
| 1155 | + "schema": { |
| 1156 | + "$ref": "#/definitions/responses.BadRequest" |
| 1157 | + } |
| 1158 | + }, |
| 1159 | + "401": { |
| 1160 | + "description": "Unauthorized", |
| 1161 | + "schema": { |
| 1162 | + "$ref": "#/definitions/responses.Unauthorized" |
| 1163 | + } |
| 1164 | + }, |
| 1165 | + "404": { |
| 1166 | + "description": "Not Found", |
| 1167 | + "schema": { |
| 1168 | + "$ref": "#/definitions/responses.NotFound" |
| 1169 | + } |
| 1170 | + }, |
| 1171 | + "422": { |
| 1172 | + "description": "Unprocessable Entity", |
| 1173 | + "schema": { |
| 1174 | + "$ref": "#/definitions/responses.UnprocessableEntity" |
| 1175 | + } |
| 1176 | + }, |
| 1177 | + "500": { |
| 1178 | + "description": "Internal Server Error", |
| 1179 | + "schema": { |
| 1180 | + "$ref": "#/definitions/responses.InternalServerError" |
| 1181 | + } |
| 1182 | + } |
| 1183 | + } |
| 1184 | + } |
| 1185 | + }, |
1124 | 1186 | "/messages/{messageID}/events": { |
1125 | 1187 | "post": { |
1126 | 1188 | "security": [ |
|
2024 | 2086 | "request_id", |
2025 | 2087 | "request_received_at", |
2026 | 2088 | "scheduled_at", |
| 2089 | + "scheduled_send_time", |
2027 | 2090 | "send_attempt_count", |
2028 | 2091 | "send_time", |
2029 | 2092 | "sent_at", |
|
2102 | 2165 | "type": "string", |
2103 | 2166 | "example": "2022-06-05T14:26:09.527976+03:00" |
2104 | 2167 | }, |
| 2168 | + "scheduled_send_time": { |
| 2169 | + "type": "string", |
| 2170 | + "example": "2022-06-05T14:26:09.527976+03:00" |
| 2171 | + }, |
2105 | 2172 | "send_attempt_count": { |
2106 | 2173 | "type": "integer", |
2107 | 2174 | "example": 0 |
|
2281 | 2348 | "ultra-yearly", |
2282 | 2349 | "pro-lifetime", |
2283 | 2350 | "20k-monthly", |
2284 | | - "20k-yearly" |
| 2351 | + "100k-monthly", |
| 2352 | + "20k-yearly", |
| 2353 | + "100k-yearly" |
2285 | 2354 | ], |
2286 | 2355 | "x-enum-varnames": [ |
2287 | 2356 | "SubscriptionNameFree", |
|
2291 | 2360 | "SubscriptionNameUltraYearly", |
2292 | 2361 | "SubscriptionNameProLifetime", |
2293 | 2362 | "SubscriptionName20KMonthly", |
2294 | | - "SubscriptionName20KYearly" |
| 2363 | + "SubscriptionName100KMonthly", |
| 2364 | + "SubscriptionName20KYearly", |
| 2365 | + "SubscriptionName100KYearly" |
2295 | 2366 | ] |
2296 | 2367 | }, |
2297 | 2368 | "entities.User": { |
|
2570 | 2641 | "type": "string", |
2571 | 2642 | "example": "153554b5-ae44-44a0-8f4f-7bbac5657ad4" |
2572 | 2643 | }, |
| 2644 | + "send_at": { |
| 2645 | + "description": "SendAt is an optional parameter used to schedule a message to be sent at a later time", |
| 2646 | + "type": "string", |
| 2647 | + "example": "2022-06-05T14:26:09.527976+03:00" |
| 2648 | + }, |
2573 | 2649 | "to": { |
2574 | 2650 | "type": "string", |
2575 | 2651 | "example": "+18005550100" |
|
0 commit comments