aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/viewsets
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps/api/viewsets')
-rw-r--r--pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py7
-rw-r--r--pydis_site/apps/api/viewsets/bot/aoc_link.py1
2 files changed, 5 insertions, 3 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py b/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py
index 8e7d821c..d3167d7b 100644
--- a/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py
+++ b/pydis_site/apps/api/viewsets/bot/aoc_completionist_block.py
@@ -23,7 +23,7 @@ class AocCompletionistBlockViewSet(
>>> [
... {
... "user": 2,
- ... "is_blocked": False
+ ... "is_blocked": False,
... "reason": "Too good to be true"
... }
... ]
@@ -36,7 +36,7 @@ class AocCompletionistBlockViewSet(
>>>
... {
... "user": 2,
- ... "is_blocked": False
+ ... "is_blocked": False,
... "reason": "Too good to be true"
... }
@@ -50,7 +50,7 @@ class AocCompletionistBlockViewSet(
#### Request body
>>> {
... "user": int,
- ... "is_blocked": bool
+ ... "is_blocked": bool,
... "reason": string
... }
@@ -60,6 +60,7 @@ class AocCompletionistBlockViewSet(
### DELETE /bot/aoc-completionist-blocks/<user__id:int>
Deletes the AoC Completionist block item with the given `user__id`.
+
#### Status codes
- 204: returned on success
- 404: if the AoC Completionist block with the given user__id does not exist
diff --git a/pydis_site/apps/api/viewsets/bot/aoc_link.py b/pydis_site/apps/api/viewsets/bot/aoc_link.py
index c3fa6854..5f6f3a84 100644
--- a/pydis_site/apps/api/viewsets/bot/aoc_link.py
+++ b/pydis_site/apps/api/viewsets/bot/aoc_link.py
@@ -59,6 +59,7 @@ class AocAccountLinkViewSet(
### DELETE /bot/aoc-account-links/<user__id:int>
Deletes the AoC account link item with the given `user__id`.
+
#### Status codes
- 204: returned on success
- 404: if the AoC account link with the given user__id does not exist