-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathopenapi.json
5273 lines (5273 loc) · 211 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"info": {
"title": "HotCRP REST API",
"version": "2024-12-09:74fb3c4fc",
"summary": "HotCRP conference management software API",
"description": "[HotCRP](https://github.com/kohler/hotcrp) is conference review software. It\nis open source; a supported version runs on [hotcrp.com](https://hotcrp.com/).\nThis documentation is for the HotCRP REST-like API.\n\nTo request documentation for an API method, please open a [GitHub\nissue](https://github.com/kohler/hotcrp/issues). We also welcome [pull\nrequests](https://github.com/kohler/hotcrp/pulls).\n\n\n## Overview\n\nHotCRP parameters are generally provided using [form\nencoding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST),\neither in query strings or in the request body. Some parameters are formatted\nas JSON. Complex requests generally use structured keys, such as\n`named_search/1/q`. Use `multipart/form-data`\nfor requests that include uploaded files.\n\nThe common `p` parameter defines a submission ID. It can appear either in the\nquery string or immediately following `api/` in the query path:\n`api/comment?p=1` and `api/1/comment` are the same API call. `p` is a positive\ndecimal integer, but some API calls accept `p=new` when defining a new\nsubmission.\n\nResponses are formatted as JSON. Every response has an `ok` property; `ok` is\n`true` if the request succeeded and `false` otherwise. Messages about the\nrequest, if any, are expressed in a `message_list` property.\n\nThe `GET` method is used to retrieve information and the `POST` method to\nmodify information. Other methods are generally not used; for instance,\ndeleting a comment uses a `delete=1` parameter for a `POST` request, rather\nthan a `DELETE` request.\n\n\n### Authentication\n\nExternal applications should authenticate to HotCRP’s API using bearer tokens\n(an `Authorization: bearer` HTTP header). Obtain an API token using Account\nsettings > Developer.\n\nHotCRP Javascript makes API calls using session cookies for authentication.\n"
},
"paths": {
"/paper": {
"get": {
"summary": "Retrieve submission",
"description": "This endpoint retrieves JSON-formatted information about a submission. All\nvisible information about submission fields, tags, and overall status are\nreturned in as the response’s `paper` property. Error messages—for instance,\nabout permission errors or nonexistent submissions—are returned in\n`message_list`.\n\nThe returned `paper` property is a submission object. Submission objects are\nformatted based on the submission form. Every paper object has an `object`\nproperty set to `\"paper\"`, a `pid`, and a `status`. Other properties are\nprovided based on which submission fields exist and whether the accessing user\ncan see them.\n",
"tags": [
"Submissions"
],
"parameters": [
{
"$ref": "#/components/parameters/p.opt"
},
{
"name": "forceShow",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "False to not override administrator conflict"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"properties": {
"paper": {
"$ref": "#/components/schemas/paper"
}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
},
"post": {
"summary": "Create or modify submission",
"description": "This endpoint modifies the submission specified by the `p` parameter. Setting\n`p=new` will create a new submission; the response will contain the chosen\nsubmission ID.\n\nModifications are specified using a JSON object. There are three ways to\nprovide that JSON, depending on the content-type of the request:\n\n1. As a JSON request body with content-type `application/json`.\n2. In a ZIP archive request body with content-type `application/zip`, as a\n file named `data.json`.\n3. As a parameter named `json` in a normal `application/x-www-form-urlencoded`\n or `multipart/form-data` body.\n\nHowever it is provided, the JSON must define an object interpretable as a\nsubmission (or a subset of a submission). The properties of this object define\nthe modifications to be applied to the submission.\n\nThe `p` parameter is optional; if unset, HotCRP uses the `pid` from the\nsupplied JSON. If the `p` parameter and the JSON `pid` property are both\npresent, then they must match.\n\nTo test a modification, supply a `dry_run=1` parameter. This will test the\nuploaded JSON but make no changes to the database.\n\n\n### ZIP and form uploads\n\nA ZIP upload should contain a file named `data.json` (`PREFIX-data.json` is\nalso acceptable). This file’s content is parsed as JSON. Submission fields in\nthe JSON can refer to other files in the ZIP. For instance, this shell session\nuploads a new submission with content `paper.pdf`:\n\n```\n$ cat data.json\n{\n\t\"object\": \"paper\",\n\t\"pid\": \"new\",\n\t\"title\": \"Aught: A Methodology for the Visualization of Scheme\",\n\t\"authors\": [{\"name\": \"Nevaeh Gomez\", \"email\": \"ngomez@example.edu\"}],\n\t\"submission\": {\"content_file\": \"paper.pdf\"},\n\t\"status\": \"submitted\"\n}\n$ zip upload.zip data.json paper.pdf\n$ curl -H \"Authorization: bearer hct_XXX\" --data-binary @upload.zip -H \"Content-Type: application/zip\" SITEURL/api/paper\n```\n\nThis shell session does the same, but using `multipart/form-data`.\n\n```\n$ curl -H \"Authorization: bearer hct_XXX\" -F \"json=<data.json\" -F paper.pdf=@paper.pdf SITEURL/api/paper\n```\n\n### Responses\n\nIf the modification succeeds, the response’s `paper` property contains the\nmodified submission object.\n\nThe `change_list` property is a list of names of the modified fields. New\nsubmissions have `\"pid\"` as the first item in the list. `change_list` contains\nfields that the request *attempted* to modify; successful requests, erroneous\nrequests, and dry-run requests can all return nonempty `change_list`s.\n\nThe `valid` property is `true` if and only if the modification was valid. In\nnon-dry-run requests, `valid: true` indicates that database changes were\ncommitted.\n\nDry-run requests return `change_list` and `valid` properties, but not `paper`\nproperties, since no modifications are performed.\n\n\n### Administrator use\n\nAdministrators can use this endpoint to set some submission properties, such\nas `decision`, that have other endpoints as well.\n\nAdministrators can choose specific IDs for new submissions; just set `p` (or\nJSON `pid`) to the chosen ID. Such a request will either modify an existing\nsubmission or create a new submission with that ID. To avoid overwriting an\nexisting submission, set the JSON’s `status`.`if_unmodified_since` to `0`.\n",
"tags": [
"Submissions"
],
"parameters": [
{
"$ref": "#/components/parameters/p.opt"
},
{
"name": "dry_run",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True checks input for errors, but does not save changes"
},
{
"name": "disable_users",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True disables any newly-created users (administrators only)"
},
{
"name": "add_topics",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True automatically adds topics from input papers (administrators only)"
},
{
"name": "notify",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "False does not notify contacts of changes (administrators only)"
},
{
"$ref": "#/components/parameters/forceShow"
},
{
"name": "json",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"properties": {
"paper": {
"$ref": "#/components/schemas/paper",
"description": "JSON version of modified paper"
},
"dry_run": {
"type": "boolean",
"description": "True for `dry_run` requests"
},
"change_list": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of changed fields"
},
"valid": {
"type": "boolean",
"description": "True if the modification was valid"
}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/papers": {
"get": {
"summary": "Retrieve multiple submissions",
"description": "This endpoint retrieves JSON-formatted information about multiple submissions\nbased on a search. The search is specified in the `q` parameter; all matching\nvisible papers are returned. Other search parameters (`t`, `qt`) are accepted\ntoo. The response property `papers` is an array of matching submission objects.\n\nSince searches silently filter out non-viewable submissions, `/papers?q=1010`\nand `/paper?p=1010` can return different error messages. The `/paper` request\nmight return an error like `Submission #1010 does not exist` or `You aren’t\nallowed to view submission #10110`, whereas the `/papers` request will return\nno errors. To obtain warnings for missing submissions that were explicitly\nlisted in a query, supply a `warn_missing=1` parameter.\n",
"tags": [
"Submissions"
],
"parameters": [
{
"$ref": "#/components/parameters/q"
},
{
"$ref": "#/components/parameters/t"
},
{
"$ref": "#/components/parameters/qt"
},
{
"$ref": "#/components/parameters/scoresort"
},
{
"$ref": "#/components/parameters/sort"
},
{
"$ref": "#/components/parameters/reviewer"
},
{
"name": "warn_missing",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "Get warnings for missing submissions"
},
{
"$ref": "#/components/parameters/forceShow"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"properties": {
"papers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/paper"
}
}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
},
"post": {
"summary": "Create or modify multiple submissions",
"description": "This administrator-only endpoint modifies multiple submissions at once. Its\nrequest formats are similar to that of `POST /{p}/paper`: it can accept a\nJSON, ZIP, or form-encoded request body with a `json` parameter, and ZIP and\nform-encoded requests can also include attached files.\n\nThe JSON provided for `/papers` should be an *array* of JSON objects. Response\nproperties `papers`, `change_lists`, and `valid` are arrays with the same\nnumber of elements as the input JSON; component *i* of each response property\ncontains the result for the *i*th submission object in the input JSON.\n\nAlternately, you can provide a `q` search query parameter and a *single* JSON\nobject. The JSON object must not have a `pid` property. The JSON modification\nwill be applied to all papers returned by the `q` search query.\n\nThe response `message_list` contains messages relating to all modified\nsubmissions. To filter out the messages for a single submission, use the\nmessages’ `landmark` properties. `landmark` is set to the integer index of the\nrelevant submission in the input JSON.\n\n",
"tags": [
"Submissions"
],
"parameters": [
{
"name": "json",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "dry_run",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True checks input for errors, but does not save changes"
},
{
"name": "disable_users",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True disables any newly-created users (administrators only)"
},
{
"name": "add_topics",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "True automatically adds topics from input papers (administrators only)"
},
{
"name": "notify",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
},
"description": "False does not notify contacts of changes (administrators only)"
},
{
"$ref": "#/components/parameters/forceShow"
},
{
"name": "q",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/search_string"
},
"description": "Search query for match requests"
},
{
"name": "t",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/search_collection"
},
"description": "Collection to search; defaults to `viewable`"
},
{
"$ref": "#/components/parameters/qt"
},
{
"$ref": "#/components/parameters/sort"
},
{
"$ref": "#/components/parameters/scoresort"
},
{
"$ref": "#/components/parameters/reviewer"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"properties": {
"papers": {
"type": "array",
"items": {
"$ref": "#/components/schemas/paper"
},
"description": "List of JSON versions of modified papers"
},
"dry_run": {
"type": "boolean",
"description": "True for `dry_run` requests"
},
"change_lists": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "List of lists of changed fields"
},
"valid": {
"type": "array",
"items": {
"type": "boolean"
},
"description": "List of validity checks"
}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/formatcheck": {
"get": {
"summary": "Check PDF format",
"tags": [
"Documents"
],
"parameters": [
{
"$ref": "#/components/parameters/p.opt"
},
{
"name": "doc",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/document_name"
}
},
{
"name": "soft",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "dt",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/document_type"
}
},
{
"name": "docid",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/document_id"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"npages",
"nwords",
"problem_fields",
"has_error",
"docid"
],
"properties": {
"npages": {},
"nwords": {},
"problem_fields": {},
"has_error": {},
"docid": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/upload": {
"post": {
"summary": "Upload file",
"description": "The `POST /upload` endpoint uploads documents to the server. It is intended\nfor large documents, and can upload a file over multiple requests, each\ncontaining a slice of the data.\n\nTo start an upload, set `start=1` and include the `size` of the whole uploaded\nfile. The response will include a `token` field, a string like\n`hcupwhvGDVmHNYyDKdqeqA` that identifies the upload in progress. All further\nrequests for the upload must include the `token` as parameter.\n\nEach request adds a chunk of data to the upload. The `offset` parameter gives\nthe byte offset of the uploaded chunk; the `blob` attachment parameter\ncontains the chunk itself. The request that completes the upload should set\n`finish=1`; this request will fail unless all chunks have been received.\n\nThe `ranges` response field represents the ranges of bytes received so far.\nThe response to a `finish=1` request will include a `hash` field, which is the\nhash of the uploaded document.\n\nThe upload API is only available on sites that have enabled the document\nstore.\n",
"tags": [
"Documents"
],
"parameters": [
{
"$ref": "#/components/parameters/p.opt"
},
{
"name": "dtype",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/document_type"
}
},
{
"name": "start",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Offset of `blob` in uploaded file"
},
{
"name": "size",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 0
},
"description": "Size of uploaded file"
},
{
"name": "finish",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
}
},
{
"name": "token",
"in": "query",
"required": false,
"schema": {
"$ref": "#/components/schemas/upload_token"
}
},
{
"name": "cancel",
"in": "query",
"required": false,
"schema": {
"type": "boolean"
}
}
],
"requestBody": {
"description": "",
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"mimetype": {
"$ref": "#/components/schemas/mimetype"
},
"filename": {
"type": "string"
},
"blob": {}
}
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"token"
],
"properties": {
"token": {
"$ref": "#/components/schemas/upload_token"
},
"dtype": {
"$ref": "#/components/schemas/document_type"
},
"filename": {
"type": "string"
},
"mimetype": {
"$ref": "#/components/schemas/mimetype"
},
"size": {
"type": "integer",
"minimum": 0
},
"ranges": {
"type": "array",
"items": {
"$ref": "#/components/schemas/offset_range"
}
},
"hash": {
"type": "string"
},
"server_progress_loaded": {
"type": "integer"
},
"server_progress_max": {
"type": "integer"
}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/assign": {
"post": {
"summary": "Assignments",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.opt"
},
{
"$ref": "#/components/parameters/redirect"
}
],
"requestBody": {
"description": "",
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": [
"assignments"
],
"properties": {
"assignments": {}
}
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/minimal_response"
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/{p}/decision": {
"get": {
"summary": "Retrieve submission decision",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"decision",
"decision_html"
],
"properties": {
"decision": {},
"decision_html": {},
"editable": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
},
"post": {
"summary": "Change submission decision",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"requestBody": {
"description": "",
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": [
"decision"
],
"properties": {
"decision": {}
}
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"decision",
"decision_html"
],
"properties": {
"decision": {},
"decision_html": {},
"editable": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/{p}/lead": {
"get": {
"summary": "Retrieve submission discussion lead",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"lead",
"lead_html"
],
"properties": {
"lead": {},
"lead_html": {},
"color_classes": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
},
"post": {
"summary": "Change submission discussion lead",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"requestBody": {
"description": "",
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": [
"lead"
],
"properties": {
"lead": {}
}
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"lead",
"lead_html"
],
"properties": {
"lead": {},
"lead_html": {},
"color_classes": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
}
},
"/{p}/manager": {
"get": {
"summary": "Retrieve submission administrator",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/minimal_response"
},
{
"type": "object",
"required": [
"manager",
"manager_html"
],
"properties": {
"manager": {},
"manager_html": {},
"color_classes": {}
}
}
]
}
}
}
},
"default": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error_response"
}
}
}
}
}
},
"post": {
"summary": "Change submission administrator",
"tags": [
"Submission administration"
],
"parameters": [
{
"$ref": "#/components/parameters/p.path"
}
],
"requestBody": {
"description": "",
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": [
"manager"
],
"properties": {