@@ -10,7 +10,7 @@ nav_order: 6
1010Headers
1111
1212```
13- Authorization: Bearer < access_token>
13+ Cookie: access_token=<jwt >
1414```
1515
1616Request
@@ -57,7 +57,7 @@ Response 200
5757Errors:
5858
5959- 400 ` invalid input `
60- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
60+ - 401 ` invalid token ` or ` missing access_token cookie `
6161- 403 ` forbidden `
6262
6363Notes:
7373Headers
7474
7575```
76- Authorization: Bearer < access_token>
76+ Cookie: access_token=<jwt >
7777```
7878
7979Response 200
@@ -165,7 +165,7 @@ Notes:
165165
166166Errors:
167167
168- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
168+ - 401 ` invalid token ` or ` missing access_token cookie `
169169- 403 ` forbidden `
170170
171171---
@@ -177,7 +177,7 @@ Errors:
177177Headers
178178
179179```
180- Authorization: Bearer < access_token>
180+ Cookie: access_token=<jwt >
181181```
182182
183183Request
@@ -215,7 +215,7 @@ Response 201
215215Errors:
216216
217217- 400 ` invalid input `
218- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
218+ - 401 ` invalid token ` or ` missing access_token cookie `
219219- 403 ` forbidden `
220220
221221Validation notes:
@@ -231,7 +231,7 @@ Validation notes:
231231Headers
232232
233233```
234- Authorization: Bearer < access_token>
234+ Cookie: access_token=<jwt >
235235```
236236
237237Response 200
@@ -263,7 +263,7 @@ Response 200
263263
264264Errors:
265265
266- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
266+ - 401 ` invalid token ` or ` missing access_token cookie `
267267- 403 ` forbidden `
268268
269269---
@@ -275,7 +275,7 @@ Errors:
275275Headers
276276
277277```
278- Authorization: Bearer < access_token>
278+ Cookie: access_token=<jwt >
279279```
280280
281281Request
@@ -301,7 +301,7 @@ Response 201
301301Errors:
302302
303303- 400 ` invalid input `
304- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
304+ - 401 ` invalid token ` or ` missing access_token cookie `
305305- 403 ` forbidden `
306306
307307---
@@ -331,7 +331,7 @@ Response 201
331331Errors:
332332
333333- 400 ` invalid input `
334- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
334+ - 401 ` invalid token ` or ` missing access_token cookie `
335335- 403 ` forbidden `
336336
337337---
@@ -343,7 +343,7 @@ Errors:
343343Headers
344344
345345```
346- Authorization: Bearer < access_token>
346+ Cookie: access_token=<jwt >
347347```
348348
349349Request
@@ -372,7 +372,7 @@ Response 200
372372Errors:
373373
374374- 400 ` invalid input `
375- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
375+ - 401 ` invalid token ` or ` missing access_token cookie `
376376- 403 ` forbidden `
377377- 404 ` not found `
378378
@@ -385,7 +385,7 @@ Errors:
385385Headers
386386
387387```
388- Authorization: Bearer < access_token>
388+ Cookie: access_token=<jwt >
389389```
390390
391391Request
@@ -414,7 +414,7 @@ Response 200
414414Errors:
415415
416416- 400 ` invalid input `
417- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
417+ - 401 ` invalid token ` or ` missing access_token cookie `
418418- 403 ` forbidden `
419419- 404 ` not found `
420420
@@ -427,7 +427,7 @@ Errors:
427427Headers
428428
429429```
430- Authorization: Bearer < access_token>
430+ Cookie: access_token=<jwt >
431431```
432432
433433Response 200
@@ -448,7 +448,7 @@ Response 200
448448Errors:
449449
450450- 400 ` invalid input `
451- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
451+ - 401 ` invalid token ` or ` missing access_token cookie `
452452- 403 ` forbidden `
453453- 404 ` not found `
454454
@@ -461,7 +461,7 @@ Errors:
461461Headers
462462
463463```
464- Authorization: Bearer < access_token>
464+ Cookie: access_token=<jwt >
465465```
466466
467467Request
@@ -522,7 +522,7 @@ Notes:
522522Errors:
523523
524524- 400 ` invalid input `
525- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
525+ - 401 ` invalid token ` or ` missing access_token cookie `
526526- 403 ` forbidden `
527527
528528---
@@ -534,7 +534,7 @@ Errors:
534534Headers
535535
536536```
537- Authorization: Bearer < access_token>
537+ Cookie: access_token=<jwt >
538538```
539539
540540Request
@@ -544,19 +544,19 @@ To keep existing values, omit the field entirely.
544544
545545Field behavior:
546546
547- | Field | Type | Omit | null | Empty/Whitespace String | Other |
548- | ----------------------- | ------ | ------------- | ------------ | ----------------------- | --------------------------------------------------------- |
549- | ` title ` | string | Keep existing | Error | Allowed | Allowed |
550- | ` description ` | string | Keep existing | Error | Allowed | Allowed |
551- | ` category ` | string | Keep existing | Error | Error | Must be a valid category |
552- | ` points ` | int | Keep existing | Error | Error | Must be >= 0 |
553- | ` minimum_points ` | int | Keep existing | Error | Error | Must be >= 0 and <= ` points ` |
554- | ` flag ` | string | Keep existing | Error | Error | Updates flag |
555- | ` previous_challenge_id ` | int | Keep existing | Clears value | Error | Must be a valid challenge id (not self) |
556- | ` is_active ` | bool | Keep existing | Error | Error | Sets value |
557- | ` stack_enabled ` | bool | Keep existing | Error | Error | If ` false ` , clears ` stack_target_ports ` + ` stack_pod_spec ` |
547+ | Field | Type | Omit | null | Empty/Whitespace String | Other |
548+ | ----------------------- | ------ | ------------- | ------------ | ----------------------- | -------------------------------------------------------------------------- |
549+ | ` title ` | string | Keep existing | Error | Allowed | Allowed |
550+ | ` description ` | string | Keep existing | Error | Allowed | Allowed |
551+ | ` category ` | string | Keep existing | Error | Error | Must be a valid category |
552+ | ` points ` | int | Keep existing | Error | Error | Must be >= 0 |
553+ | ` minimum_points ` | int | Keep existing | Error | Error | Must be >= 0 and <= ` points ` |
554+ | ` flag ` | string | Keep existing | Error | Error | Updates flag |
555+ | ` previous_challenge_id ` | int | Keep existing | Clears value | Error | Must be a valid challenge id (not self) |
556+ | ` is_active ` | bool | Keep existing | Error | Error | Sets value |
557+ | ` stack_enabled ` | bool | Keep existing | Error | Error | If ` false ` , clears ` stack_target_ports ` + ` stack_pod_spec ` |
558558| ` stack_target_ports ` | array | Keep existing | Error | Error | Requires ` stack_enabled ` true; container port 1-65535 and protocol TCP/UDP |
559- | ` stack_pod_spec ` | string | Keep existing | Error | Error | Requires ` stack_enabled ` true and non-empty value |
559+ | ` stack_pod_spec ` | string | Keep existing | Error | Error | Requires ` stack_enabled ` true and non-empty value |
560560
561561If ` stack_enabled ` is true after updates, ` stack_target_ports ` and ` stack_pod_spec ` are required (non-empty).
562562To clear stack fields, set ` stack_enabled ` to ` false ` (and omit ` stack_target_ports ` / ` stack_pod_spec ` ).
@@ -613,7 +613,7 @@ Notes:
613613Errors:
614614
615615- 400 ` invalid input `
616- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
616+ - 401 ` invalid token ` or ` missing access_token cookie `
617617- 403 ` forbidden `
618618- 404 ` challenge not found `
619619
@@ -630,7 +630,7 @@ Validation notes:
630630Headers
631631
632632```
633- Authorization: Bearer < access_token>
633+ Cookie: access_token=<jwt >
634634```
635635
636636Response 200
@@ -666,7 +666,7 @@ Notes:
666666
667667Errors:
668668
669- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
669+ - 401 ` invalid token ` or ` missing access_token cookie `
670670- 403 ` forbidden `
671671- 404 ` challenge not found `
672672
@@ -679,7 +679,7 @@ Errors:
679679Headers
680680
681681```
682- Authorization: Bearer < access_token>
682+ Cookie: access_token=<jwt >
683683```
684684
685685Response 200
@@ -692,7 +692,7 @@ Response 200
692692
693693Errors:
694694
695- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
695+ - 401 ` invalid token ` or ` missing access_token cookie `
696696- 403 ` forbidden `
697697- 404 ` challenge not found `
698698
@@ -703,7 +703,7 @@ Errors:
703703Headers
704704
705705```
706- Authorization: Bearer < access_token>
706+ Cookie: access_token=<jwt >
707707```
708708
709709### List All Stacks
@@ -735,7 +735,7 @@ Response 200
735735
736736Errors:
737737
738- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
738+ - 401 ` invalid token ` or ` missing access_token cookie `
739739- 403 ` forbidden `
740740- 503 ` stack feature disabled ` or ` stack provisioner unavailable `
741741
@@ -766,7 +766,7 @@ Response 200
766766
767767Errors:
768768
769- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
769+ - 401 ` invalid token ` or ` missing access_token cookie `
770770- 403 ` forbidden `
771771- 404 ` stack not found `
772772- 503 ` stack feature disabled ` or ` stack provisioner unavailable `
@@ -786,7 +786,7 @@ Response 200
786786
787787Errors:
788788
789- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
789+ - 401 ` invalid token ` or ` missing access_token cookie `
790790- 403 ` forbidden `
791791- 404 ` stack not found `
792792- 503 ` stack feature disabled ` or ` stack provisioner unavailable `
@@ -800,7 +800,7 @@ Errors:
800800Headers
801801
802802```
803- Authorization: Bearer < access_token>
803+ Cookie: access_token=<jwt >
804804```
805805
806806Request
@@ -846,7 +846,7 @@ Notes:
846846Errors:
847847
848848- 400 ` invalid input `
849- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
849+ - 401 ` invalid token ` or ` missing access_token cookie `
850850- 403 ` forbidden `
851851- 404 ` challenge not found `
852852- 503 ` storage unavailable `
@@ -860,7 +860,7 @@ Errors:
860860Headers
861861
862862```
863- Authorization: Bearer < access_token>
863+ Cookie: access_token=<jwt >
864864```
865865
866866Response 200
@@ -882,7 +882,7 @@ Response 200
882882
883883Errors:
884884
885- - 401 ` invalid token ` or ` missing authorization ` or ` invalid authorization `
885+ - 401 ` invalid token ` or ` missing access_token cookie `
886886- 403 ` forbidden `
887887- 404 ` challenge not found ` or ` challenge file not found `
888888- 503 ` storage unavailable `
0 commit comments