Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
12712 lines (12712 loc) · 424 KB
/
Copy pathopenapi.json
File metadata and controls
12712 lines (12712 loc) · 424 KB
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": "Revdoku API",
"version": "9.0.0",
"description": "A project is one support portal: docs from a GitHub repository, help articles, a site with Ask, and support tickets. Create projects, publish sites, write articles, and read and answer support tickets. Guide: https://support.revdoku.com/docs/api/. Create an account at https://app.revdoku.com/users/sign_up. A request body holds the fields of the resource, without a wrapper object. A read of the one site, preview, GitHub link, webhook or draft of a parent answers null until it exists. Times are UTC with six fraction digits, such as 2026-11-24T17:38:29.123456Z, and a calendar day is a plain date YYYY-MM-DD. Every answer has the headers X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (a Unix time): the requests per minute of the key's account."
},
"servers": [
{
"url": "https://api.revdoku.com",
"description": "Revdoku application API"
}
],
"security": [
{
"bearerAuth": []
}
],
"tags": [
{
"name": "Accounts",
"description": "The connection of your key, the accounts that it reaches and their limits. An agency also creates client accounts here."
},
{
"name": "Projects",
"description": "A project is one support portal: its docs, its articles, its site and its support tickets. List, create, rename, archive and delete projects."
},
{
"name": "Tickets",
"description": "Support requests from the contact form, Ask and email. Read each ticket and its messages, reply to the requester, ask the AI reply drafter for a draft, and solve tickets."
},
{
"name": "Events",
"description": "Get an event when a ticket opens or a new message arrives: one signed webhook per project, or a live WebSocket subscription."
},
{
"name": "Articles",
"description": "The knowledge base of a project: the articles of the Help Center, which the site publishes, and the private notes, which only your team and the AI reply drafter read. Write, move, delete and restore them, add images, and scan a website for articles."
},
{
"name": "Files",
"description": "A project's files: the read-only copy of the GitHub repository (`_repo/`) and the knowledge base (`_kb/`). List the files, read one and its versions. Write the knowledge base with the Articles operations."
},
{
"name": "Publications",
"description": "The site of a project: publish it, make a 24-hour preview, read its status and analytics, change its settings, or take it down."
},
{
"name": "GitHub",
"description": "Connect a GitHub repository to a project. Its docs become the project's `_repo/` folder, and each push updates them. Revdoku only reads the repository."
},
{
"name": "Authentication",
"description": "Sign-in for command-line tools and AI agents: email a code and exchange it for an API key. A server application uses an API key from the dashboard instead."
}
],
"paths": {
"/v1/status": {
"get": {
"operationId": "getStatus",
"tags": [
"Accounts"
],
"summary": "Read the connection and selected account",
"description": "Works with every API key, including project-scoped keys. The answer is status: the account, the connection, the user and the versions. Read quotas with GET /v1/account/limits.",
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
},
{
"$ref": "#/components/parameters/Reason"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"$ref": "#/components/schemas/Status"
}
}
}
}
},
"example": {
"success": true,
"data": {
"status": {
"connected": true,
"default_account_id": "acct_example",
"accounts": [
{
"id": "acct_example",
"name": "Acme",
"account_kind": "standard",
"client_name": null,
"agency_account": null,
"region": "us",
"status": "active",
"status_reason": null,
"previous_status": null,
"status_updated_at": null,
"restriction": null,
"support_email": null,
"billing_message": null,
"can_create_client_account": false,
"can_manage_billing": true,
"permissions": {
"scope": "project_admin",
"project_access": "all",
"can_create_projects": true
}
}
],
"server_version": "1.0.575",
"client_version": "1.0.575",
"features": {
"email_domains": true
},
"account": {
"id": "acct_example",
"name": "Acme",
"account_kind": "standard",
"client_name": null,
"agency_account": null,
"region": "us",
"status": "active",
"status_reason": null,
"previous_status": null,
"status_updated_at": null,
"restriction": null,
"support_email": null,
"billing_message": null,
"can_create_client_account": false,
"can_manage_billing": true,
"permissions": {
"scope": "project_admin",
"project_access": "all",
"can_create_projects": true
}
},
"user": {
"id": "user_example",
"email": "ada@example.com",
"name": "Ada Lovelace"
},
"dashboard_url": "https://app.revdoku.com/projects?account_id=acct_example",
"connection": {
"id": "atok_example",
"api_key": null,
"label": "Orders backend",
"token_type": "api",
"scope": "project_admin",
"account_id": "acct_example",
"account_name": "Acme",
"expires_at": "2027-10-11T12:00:00.000000Z",
"last_used_at": "2026-10-11T12:20:00.000000Z",
"project_access": "all",
"project_ids": [],
"denied_project_ids": [],
"project_permissions": {},
"permissions": {
"read": true,
"write": true,
"admin": true
},
"agent": null,
"transport": "api_key",
"renewal": {
"recommended": false,
"next_action": null,
"browser_url": null
},
"manage_access_url": "https://app.revdoku.com/account/access?key=atok_example"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/accounts": {
"get": {
"operationId": "listAccounts",
"tags": [
"Accounts"
],
"summary": "List accounts granted to this credential",
"description": "Works with every API key. Lists the account of this credential and the client accounts that an agency owner granted to it. Send an id from this list as account_id to act in that account.",
"parameters": [
{
"$ref": "#/components/parameters/Limit"
},
{
"$ref": "#/components/parameters/Cursor"
},
{
"$ref": "#/components/parameters/Reason"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"$ref": "#/components/schemas/AccountList"
}
}
},
"example": {
"success": true,
"data": {
"default_account_id": "acct_example",
"accounts": [
{
"id": "acct_example",
"name": "Acme",
"account_kind": "standard",
"client_name": null,
"agency_account": null,
"region": "us",
"status": "active",
"status_reason": null,
"previous_status": null,
"status_updated_at": null,
"restriction": null,
"support_email": null,
"billing_message": null,
"can_create_client_account": false,
"can_manage_billing": true,
"permissions": {
"scope": "project_admin",
"project_access": "all",
"can_create_projects": true
}
}
],
"pagination": {
"limit": 50,
"has_more": false,
"next_cursor": null
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
},
"post": {
"operationId": "createClientAccount",
"tags": [
"Accounts"
],
"summary": "Create a client account",
"description": "Requires an agency owner credential with client-account access. The credential default does not change; send the new account_id on later requests. Never retry it automatically after an unknown result: read the resource first.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"client_name": {
"type": "string",
"maxLength": 100,
"description": "Optional client person or business name."
},
"account_id": {
"type": "string",
"description": "Granted agency account that owns the new client account."
},
"reason": {
"$ref": "#/components/schemas/ActionReason"
}
},
"required": [
"name"
]
}
}
}
},
"responses": {
"201": {
"description": "Created",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"account"
],
"properties": {
"account": {
"$ref": "#/components/schemas/Account"
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/accounts/{account_id}": {
"get": {
"operationId": "getAccount",
"tags": [
"Accounts"
],
"summary": "Read one granted account",
"description": "Works with every API key. Returns the name, kind, region and status of one account that this credential can use, and the permissions of the credential in it. Other account IDs return 403.",
"parameters": [
{
"$ref": "#/components/parameters/AccountPathId"
},
{
"$ref": "#/components/parameters/Reason"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"account"
],
"properties": {
"account": {
"$ref": "#/components/schemas/Account"
}
}
}
}
},
"example": {
"success": true,
"data": {
"account": {
"id": "acct_example",
"name": "Acme",
"account_kind": "standard",
"client_name": null,
"agency_account": null,
"region": "us",
"status": "active",
"status_reason": null,
"previous_status": null,
"status_updated_at": null,
"restriction": null,
"support_email": null,
"billing_message": null,
"can_create_client_account": false,
"can_manage_billing": true,
"permissions": {
"scope": "project_admin",
"project_access": "all",
"can_create_projects": true
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/account/limits": {
"get": {
"operationId": "getAccountLimits",
"tags": [
"Accounts"
],
"summary": "Read effective account limits",
"description": "Answers one resource, limits. Values come from the plan and account overrides. Zero means no allowance; null means no cap. Storage, project and email traffic allowances are shared within a billing group. limits.credit_balance is the balance now, with the plan's monthly pool and its next refill. limits.usage is null for a connection that may not read it.",
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
},
{
"$ref": "#/components/parameters/Reason"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"limits"
],
"properties": {
"limits": {
"$ref": "#/components/schemas/AccountLimits"
}
}
}
}
},
"example": {
"success": true,
"data": {
"limits": {
"account_id": "acct_example",
"max_projects": 3,
"max_project_creations_per_month": 12,
"max_files_per_project": 25000,
"max_current_files": 40000,
"max_storage_bytes": 2147483648,
"max_file_size_bytes": 52428800,
"max_file_versions_per_file": 15,
"max_email_aliases_per_project": 4,
"max_email_domains": 3,
"max_received_emails_per_month": 1500,
"max_received_email_bytes_per_month": 268435456,
"max_received_email_message_bytes": 20971520,
"max_sent_emails_per_month": 750,
"max_email_address_rotations_per_month": 6,
"max_account_members": 3,
"max_api_keys": 4,
"max_agent_connections": 7,
"api_rate_limit_requests_per_minute": 240,
"audit_retention_days": 45,
"credit_balance": {
"left": 8840,
"monthly": 10000,
"next_refill_at": "2026-12-01T00:00:00.000000Z"
},
"usage": {
"project_creations": {
"monthly_limit": 12,
"used": 2,
"remaining": 10,
"resets_at": "2026-11-01T00:00:00.000000Z"
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/projects": {
"get": {
"operationId": "listProjects",
"tags": [
"Projects"
],
"summary": "List projects",
"description": "Lists active projects by default, newest first. Counts and pages cover only projects this credential can access. Reads no email content.",
"parameters": [
{
"$ref": "#/components/parameters/AccountId"
},
{
"$ref": "#/components/parameters/Reason"
},
{
"name": "status",
"in": "query",
"required": false,
"schema": {
"type": "string",
"enum": [
"active",
"archived",
"all"
],
"default": "active"
}
},
{
"name": "q",
"in": "query",
"required": false,
"schema": {
"type": "string",
"maxLength": 500
},
"description": "Case-insensitive text in the project ID, or in the title or address when the key can see the address."
},
{
"$ref": "#/components/parameters/Limit"
},
{
"$ref": "#/components/parameters/Cursor"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"$ref": "#/components/schemas/ProjectList"
}
}
},
"example": {
"success": true,
"data": {
"projects": [
{
"id": "prj_example",
"account_id": "acct_example",
"title": "acme-orders",
"description": null,
"metadata": {},
"metadata_version": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"email": {
"address": "support@acme-orders.revdoku.net",
"message_count": 1,
"unread_count": 1,
"last_received_at": "2026-10-11T12:05:00.000000Z",
"receiving_enabled": true,
"sending_enabled": true,
"receiving_blocked_reason": null,
"sending_blocked_reason": null
},
"status": "active",
"archived_at": null,
"lock": {
"locked": false,
"expires_at": null,
"kind": null,
"message": null,
"progress": null,
"locked_by": null,
"locked_by_api_key": null
},
"storage_bytes": 51840,
"files_count": 3,
"project_version": "prjrv_example",
"version_number": 0,
"created_at": "2026-10-11T12:00:00.000000Z",
"updated_at": "2026-10-11T12:05:00.000000Z",
"dashboard_url": "https://app.revdoku.com/projects/view?account_id=acct_example&id=prj_example",
"archive": {
"allowed": true,
"blocked_reason": null,
"required_action": null,
"confirmation": null
},
"unarchive": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": null,
"confirmation": null
},
"delete": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": "archive_first",
"confirmation": "delete prj_example"
}
}
],
"counts": {
"active": 1,
"archived": 0,
"total": 1
},
"pagination": {
"limit": 50,
"has_more": false,
"next_cursor": null
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
},
"post": {
"operationId": "createProject",
"tags": [
"Projects"
],
"summary": "Create a project",
"description": "Waits until the address can receive email. Every project gets the address support@<name>.revdoku.net. On this built-in domain, email.username is the project's name: lowercase letters, digits and single hyphens, 3 to 63 characters, also the name of its site. A name that another project uses as an address or a site address, or that another account used, returns EMAIL_ALREADY_EXISTS; your account can use its own earlier names again. Without email.username the address takes the title's name when it is free, else two readable words. A custom domain takes the exact name. If confirmation does not finish, EMAIL_NOT_READY returns the created project_id in error.details: read that project instead of creating another. The title defaults to email.username; a title that another active project uses returns 409 PROJECT_TITLE_TAKEN. Its files come from a GitHub repository: connect one with the GitHub operations. Never retry a creation automatically.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectCreate"
}
}
}
},
"responses": {
"201": {
"description": "Created",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"project"
],
"properties": {
"project": {
"$ref": "#/components/schemas/Project"
}
}
}
}
},
"example": {
"success": true,
"data": {
"project": {
"id": "prj_example",
"account_id": "acct_example",
"title": "acme-orders",
"description": null,
"metadata": {},
"metadata_version": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"email": {
"address": "support@acme-orders.revdoku.net",
"message_count": 0,
"unread_count": 0,
"last_received_at": null,
"receiving_enabled": true,
"sending_enabled": true,
"receiving_blocked_reason": null,
"sending_blocked_reason": null
},
"status": "active",
"archived_at": null,
"lock": {
"locked": false,
"expires_at": null,
"kind": null,
"message": null,
"progress": null,
"locked_by": null,
"locked_by_api_key": null
},
"storage_bytes": 0,
"files_count": 0,
"project_version": "prjrv_example",
"version_number": 0,
"created_at": "2026-10-11T12:00:00.000000Z",
"updated_at": "2026-10-11T12:00:00.000000Z",
"dashboard_url": "https://app.revdoku.com/projects/view?account_id=acct_example&id=prj_example",
"archive": {
"allowed": true,
"blocked_reason": null,
"required_action": null,
"confirmation": null
},
"unarchive": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": null,
"confirmation": null
},
"delete": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": "archive_first",
"confirmation": "delete prj_example"
}
}
}
}
}
}
},
"401": {
"description": "Missing or invalid API key",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
},
"example": {
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Authentication required",
"request_id": "req_example",
"details": null,
"docs_url": "https://support.revdoku.com/docs/api#errors",
"occurred_at": "2026-11-24T10:00:00.000000Z",
"recoverable": true,
"next_action": "authenticate",
"browser_url": null
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
}
},
"/v1/projects/{project_id}": {
"get": {
"operationId": "getProject",
"tags": [
"Projects"
],
"summary": "Read a project",
"description": "Reading never changes the project. Read address settings, emails and files through their own endpoints.",
"parameters": [
{
"$ref": "#/components/parameters/ProjectId"
},
{
"$ref": "#/components/parameters/AccountId"
},
{
"$ref": "#/components/parameters/Reason"
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"project"
],
"properties": {
"project": {
"$ref": "#/components/schemas/Project"
}
}
}
}
},
"example": {
"success": true,
"data": {
"project": {
"id": "prj_example",
"account_id": "acct_example",
"title": "acme-orders",
"description": null,
"metadata": {},
"metadata_version": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"email": {
"address": "support@acme-orders.revdoku.net",
"message_count": 1,
"unread_count": 1,
"last_received_at": "2026-10-11T12:05:00.000000Z",
"receiving_enabled": true,
"sending_enabled": true,
"receiving_blocked_reason": null,
"sending_blocked_reason": null
},
"status": "active",
"archived_at": null,
"lock": {
"locked": false,
"expires_at": null,
"kind": null,
"message": null,
"progress": null,
"locked_by": null,
"locked_by_api_key": null
},
"storage_bytes": 51840,
"files_count": 3,
"project_version": "prjrv_example",
"version_number": 0,
"created_at": "2026-10-11T12:00:00.000000Z",
"updated_at": "2026-10-11T12:05:00.000000Z",
"dashboard_url": "https://app.revdoku.com/projects/view?account_id=acct_example&id=prj_example",
"archive": {
"allowed": true,
"blocked_reason": null,
"required_action": null,
"confirmation": null
},
"unarchive": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": null,
"confirmation": null
},
"delete": {
"allowed": false,
"blocked_reason": "not_archived",
"required_action": "archive_first",
"confirmation": "delete prj_example"
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
},
"patch": {
"operationId": "updateProject",
"tags": [
"Projects"
],
"summary": "Update a project title, description or metadata",
"description": "metadata must be a JSON object. It replaces the stored object; {} clears it. Send expected_metadata_version from your last read; a stale value changes nothing and returns PROJECT_METADATA_CONFLICT. Titles are unique among active projects; a used title returns 409 PROJECT_TITLE_TAKEN.",
"parameters": [
{
"$ref": "#/components/parameters/ProjectId"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProjectUpdate"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"success",
"data"
],
"properties": {
"success": {
"type": "boolean",
"const": true
},
"data": {
"type": "object",
"required": [
"project"
],
"properties": {
"project": {
"$ref": "#/components/schemas/Project"
}
}
}
}
}
}
}
},
"default": {
"$ref": "#/components/responses/Error"
}
}
},
"delete": {
"operationId": "deleteProject",
"tags": [