-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
4234 lines (3970 loc) · 130 KB
/
openapi.yaml
File metadata and controls
4234 lines (3970 loc) · 130 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: Nexus Hosting API
version: 1.0.0
description: |
Production-grade federated static site hosting network.
Every node exposes this API. Authentication uses session cookies (browser)
or Bearer API tokens (CLI / CI). Inter-node requests use Ed25519 signatures.
contact:
name: The No Hands Company
url: https://github.com/The-No-Hands-company/Nexus-Hosting
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: /api
description: Local node API
tags:
- name: health
description: Liveness and readiness probes
- name: auth
description: Browser OIDC and mobile auth
- name: nodes
description: Federation node registry
- name: sites
description: Hosted site management
- name: deploy
description: File upload and deployment
- name: federation
description: Inter-node federation protocol
- name: gossip
description: Peer discovery via gossip
- name: analytics
description: Site traffic analytics
- name: tokens
description: Long-lived API tokens
- name: access
description: Site membership and visibility
- name: domains
description: Custom domain management
- name: admin
description: Node operator dashboard
- name: capacity
description: Storage and bandwidth tracking
- name: storage
description: Object storage endpoints
- name: nlpl
description: NLPL and Node.js/Python dynamic site process management
- name: builds
description: Git-connected build pipeline
- name: forms
description: Form submission inbox
- name: tls
description: TLS certificate management and ACME challenges
- name: storage
description: Internal object storage access
paths:
# ── Health ──────────────────────────────────────────────────────────────────
/health:
get:
operationId: healthCheck
tags: [health]
summary: Full health check with service dependencies
responses:
"200":
description: Health status
content:
application/json:
schema:
$ref: "#/components/schemas/HealthStatus"
/health/live:
get:
operationId: livenessProbe
tags: [health]
summary: Kubernetes liveness probe
responses:
"200":
description: Node is alive
/health/ready:
get:
operationId: readinessProbe
tags: [health]
summary: Kubernetes readiness probe
responses:
"200":
description: Node is ready to serve traffic
"503":
description: Node not ready
/stats:
get:
operationId: getFederationStats
tags: [nodes]
summary: Network-wide federation statistics
responses:
"200":
description: Federation statistics
content:
application/json:
schema:
$ref: "#/components/schemas/FederationStats"
# ── Auth ────────────────────────────────────────────────────────────────────
/auth/user:
get:
operationId: getCurrentAuthUser
tags: [auth]
summary: Get the currently authenticated user
parameters:
- $ref: "#/components/parameters/AuthorizationSessionHeader"
- $ref: "#/components/parameters/SessionCookie"
responses:
"200":
description: Auth status
content:
application/json:
schema:
$ref: "#/components/schemas/GetCurrentAuthUserResponse"
/login:
get:
operationId: beginBrowserLogin
tags: [auth]
summary: Start the browser OIDC login flow
parameters:
- name: returnTo
in: query
required: false
schema:
type: string
responses:
"302":
description: Redirect to OIDC authorization endpoint
/callback:
get:
operationId: handleBrowserLoginCallback
tags: [auth]
summary: Complete the browser OIDC login flow
responses:
"302":
description: Redirect to returnTo or /api/login on failure
/logout:
get:
operationId: logoutBrowserSession
tags: [auth]
summary: Clear session and begin OIDC logout
responses:
"302":
description: Redirect to OIDC logout URL
/mobile-auth/token-exchange:
post:
operationId: exchangeMobileAuthorizationCode
tags: [auth]
summary: Exchange a mobile OIDC code for a session token
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/ExchangeMobileAuthorizationCodeBody"
responses:
"200":
description: Session token created
content:
application/json:
schema:
$ref: "#/components/schemas/ExchangeMobileAuthorizationCodeResponse"
"400":
$ref: "#/components/responses/BadRequest"
/mobile-auth/logout:
post:
operationId: logoutMobileSession
tags: [auth]
summary: Revoke a mobile session token
parameters:
- $ref: "#/components/parameters/AuthorizationSessionHeader"
responses:
"200":
description: Logged out
content:
application/json:
schema:
$ref: "#/components/schemas/LogoutMobileSessionResponse"
# ── API Tokens ──────────────────────────────────────────────────────────────
/tokens:
get:
operationId: listTokens
tags: [tokens]
summary: List active API tokens for the current user
security:
- sessionAuth: []
- bearerToken: []
responses:
"200":
description: List of tokens (hashes never returned)
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ApiToken"
"401":
$ref: "#/components/responses/Unauthorized"
post:
operationId: createToken
tags: [tokens]
summary: Create a new API token (plaintext returned once)
security:
- sessionAuth: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateTokenBody"
responses:
"201":
description: Token created — plaintext in `token` field, shown once only
content:
application/json:
schema:
$ref: "#/components/schemas/CreatedToken"
"401":
$ref: "#/components/responses/Unauthorized"
/tokens/{id}:
delete:
operationId: revokeToken
tags: [tokens]
summary: Revoke an API token
security:
- sessionAuth: []
- bearerToken: []
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
"204":
description: Token revoked
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
# ── Nodes ───────────────────────────────────────────────────────────────────
/nodes:
get:
operationId: listNodes
tags: [nodes]
summary: List all federation nodes (paginated)
parameters:
- $ref: "#/components/parameters/PageParam"
- $ref: "#/components/parameters/LimitParam"
responses:
"200":
description: Paginated node list
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedNodes"
post:
operationId: createNode
tags: [nodes]
summary: Register a new node
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateNodeBody"
responses:
"201":
description: Node registered
content:
application/json:
schema:
$ref: "#/components/schemas/Node"
"400":
$ref: "#/components/responses/BadRequest"
/nodes/{id}:
get:
operationId: getNode
tags: [nodes]
summary: Get node by ID
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Node details
content:
application/json:
schema:
$ref: "#/components/schemas/Node"
"404":
$ref: "#/components/responses/NotFound"
patch:
operationId: updateNode
tags: [nodes]
summary: Update a node
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateNodeBody"
responses:
"200":
description: Updated node
content:
application/json:
schema:
$ref: "#/components/schemas/Node"
"404":
$ref: "#/components/responses/NotFound"
delete:
operationId: deleteNode
tags: [nodes]
summary: Remove a node from the federation
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"204":
description: Node removed
"404":
$ref: "#/components/responses/NotFound"
/nodes/{id}/generate-keys:
post:
operationId: generateNodeKeys
tags: [nodes]
summary: Generate or rotate Ed25519 key pair for a node
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: New key pair generated (private key stored, not returned)
content:
application/json:
schema:
type: object
properties:
nodeId:
type: integer
publicKey:
type: string
message:
type: string
/nodes/{id}/capacity:
get:
operationId: getNodeCapacity
tags: [capacity]
summary: Get capacity stats for a specific node
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Node capacity details
content:
application/json:
schema:
$ref: "#/components/schemas/NodeCapacity"
# ── Sites ───────────────────────────────────────────────────────────────────
/sites:
get:
operationId: listSites
tags: [sites]
summary: List all sites (paginated, filterable)
parameters:
- $ref: "#/components/parameters/PageParam"
- $ref: "#/components/parameters/LimitParam"
- name: search
in: query
schema:
type: string
- name: status
in: query
schema:
type: string
enum: [active, suspended, migrating]
- name: ownerId
in: query
schema:
type: string
responses:
"200":
description: Paginated site list
content:
application/json:
schema:
$ref: "#/components/schemas/PaginatedSites"
post:
operationId: createSite
tags: [sites]
summary: Register a new site
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateSiteBody"
responses:
"201":
description: Site registered
content:
application/json:
schema:
$ref: "#/components/schemas/Site"
"400":
$ref: "#/components/responses/BadRequest"
"409":
$ref: "#/components/responses/Conflict"
/sites/{id}:
get:
operationId: getSite
tags: [sites]
summary: Get site by ID
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Site details
content:
application/json:
schema:
$ref: "#/components/schemas/Site"
"404":
$ref: "#/components/responses/NotFound"
patch:
operationId: updateSite
tags: [sites]
summary: Update site metadata
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateSiteBody"
responses:
"200":
description: Updated site
content:
application/json:
schema:
$ref: "#/components/schemas/Site"
"404":
$ref: "#/components/responses/NotFound"
delete:
operationId: deleteSite
tags: [sites]
summary: Delete a site and all its files
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"204":
description: Site deleted
"404":
$ref: "#/components/responses/NotFound"
# ── Deployment ──────────────────────────────────────────────────────────────
/sites/{id}/files/upload-url:
post:
operationId: getSiteFileUploadUrl
tags: [deploy]
summary: Get a presigned URL to upload a site file
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/SiteFileUploadUrlBody"
responses:
"200":
description: Presigned upload URL
content:
application/json:
schema:
$ref: "#/components/schemas/SiteFileUploadUrlResponse"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
/sites/{id}/files:
get:
operationId: listSiteFiles
tags: [deploy]
summary: List all files registered for a site
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: List of site files
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/SiteFile"
post:
operationId: registerSiteFile
tags: [deploy]
summary: Register an uploaded file for a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RegisterSiteFileBody"
responses:
"201":
description: File registered
content:
application/json:
schema:
$ref: "#/components/schemas/SiteFile"
"401":
$ref: "#/components/responses/Unauthorized"
/sites/{id}/deploy:
post:
operationId: deploySite
tags: [deploy]
summary: Atomically deploy all pending files and notify federation peers
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Deployment activated with replication results
content:
application/json:
schema:
$ref: "#/components/schemas/DeployResult"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
/sites/{id}/deployments:
get:
operationId: listSiteDeployments
tags: [deploy]
summary: List deployment history for a site
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Deployment history
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/SiteDeployment"
/sites/{id}/deployments/{depId}/rollback:
post:
operationId: rollbackDeployment
tags: [deploy]
summary: Roll back to a specific previous deployment version
description: |
Creates a new active deployment pointing to the files from the target
deployment. The current active deployment is marked as rolled_back.
History is fully preserved — rollback is a forward operation.
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
- name: depId
in: path
required: true
schema:
type: integer
description: ID of the deployment to roll back to
responses:
"200":
description: Rollback successful — new deployment record created
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/SiteDeployment"
- type: object
properties:
rolledBackFrom:
type: integer
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
# ── Access Control ──────────────────────────────────────────────────────────
/sites/{id}/members:
get:
operationId: listSiteMembers
tags: [access]
summary: List team members for a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Site members
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/SiteMember"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
post:
operationId: addSiteMember
tags: [access]
summary: Add a user to a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/AddMemberBody"
responses:
"201":
description: Member added
content:
application/json:
schema:
$ref: "#/components/schemas/SiteMember"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
"409":
$ref: "#/components/responses/Conflict"
/sites/{id}/members/{memberId}:
patch:
operationId: updateSiteMember
tags: [access]
summary: Update a team member's role
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
- name: memberId
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [role]
properties:
role:
type: string
enum: [editor, viewer]
responses:
"200":
description: Member updated
content:
application/json:
schema:
$ref: "#/components/schemas/SiteMember"
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
delete:
operationId: removeSiteMember
tags: [access]
summary: Remove a team member from a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
- name: memberId
in: path
required: true
schema:
type: integer
responses:
"204":
description: Member removed
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
/sites/{id}/visibility:
patch:
operationId: updateSiteVisibility
tags: [access]
summary: Set site visibility (public / private / password-protected)
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateVisibilityBody"
responses:
"200":
description: Visibility updated
content:
application/json:
schema:
type: object
properties:
id:
type: integer
visibility:
type: string
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
/sites/{id}/unlock:
post:
operationId: unlockSite
tags: [access]
summary: Verify a site password and set an unlock cookie
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [password]
properties:
password:
type: string
responses:
"200":
description: Password correct — unlock cookie set
content:
application/json:
schema:
type: object
properties:
unlocked:
type: boolean
"403":
$ref: "#/components/responses/Forbidden"
# ── Custom Domains ──────────────────────────────────────────────────────────
/sites/{id}/domains:
get:
operationId: listCustomDomains
tags: [domains]
summary: List custom domains for a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Custom domains
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/CustomDomain"
"401":
$ref: "#/components/responses/Unauthorized"
post:
operationId: addCustomDomain
tags: [domains]
summary: Add a custom domain and get DNS verification instructions
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [domain]
properties:
domain:
type: string
example: "www.mysite.com"
responses:
"201":
description: Domain added with DNS instructions
content:
application/json:
schema:
$ref: "#/components/schemas/CustomDomainWithInstructions"
"401":
$ref: "#/components/responses/Unauthorized"
"409":
$ref: "#/components/responses/Conflict"
/domains/{id}/verify:
post:
operationId: verifyCustomDomain
tags: [domains]
summary: Trigger a DNS TXT verification check for a domain
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"200":
description: Verification result
content:
application/json:
schema:
type: object
properties:
verified:
type: boolean
domain:
type: string
status:
type: string
lastError:
type: ["string", "null"]
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
/domains/{id}:
delete:
operationId: deleteCustomDomain
tags: [domains]
summary: Remove a custom domain from a site
security:
- sessionAuth: []
- bearerToken: []
parameters:
- $ref: "#/components/parameters/IdPath"
responses:
"204":
description: Domain removed
"401":
$ref: "#/components/responses/Unauthorized"
"403":
$ref: "#/components/responses/Forbidden"
# ── Analytics ───────────────────────────────────────────────────────────────
/sites/{id}/analytics:
get:
operationId: getSiteAnalytics
tags: [analytics]
summary: Get per-site analytics for a time period
parameters:
- $ref: "#/components/parameters/IdPath"
- name: period
in: query
schema:
type: string
enum: ["24h", "7d", "30d"]
default: "24h"
responses:
"200":
description: Analytics data
content:
application/json:
schema:
$ref: "#/components/schemas/SiteAnalyticsResponse"
/admin/analytics:
get:
operationId: getAdminAnalytics
tags: [analytics]
summary: Network-wide analytics aggregate (operator only)
security:
- sessionAuth: []
- bearerToken: []
responses:
"200":
description: Network analytics
content:
application/json:
schema:
$ref: "#/components/schemas/AdminAnalyticsResponse"
"401":
$ref: "#/components/responses/Unauthorized"
# ── Admin ───────────────────────────────────────────────────────────────────
/admin/overview:
get:
operationId: getAdminOverview
tags: [admin]
summary: Full node operator dashboard data
security:
- sessionAuth: []
- bearerToken: []
responses:
"200":
description: Admin overview
content:
application/json:
schema:
$ref: "#/components/schemas/AdminOverview"
"401":
$ref: "#/components/responses/Unauthorized"
/admin/node:
patch:
operationId: updateNodeSettings
tags: [admin]
summary: Update local node operator settings
security:
- sessionAuth: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateNodeSettingsBody"
responses:
"200":
description: Updated node
content:
application/json:
schema:
$ref: "#/components/schemas/Node"