-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathopenapi-v2026.0.json
More file actions
1535 lines (1535 loc) · 51.3 KB
/
Copy pathopenapi-v2026.0.json
File metadata and controls
1535 lines (1535 loc) · 51.3 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.0.2",
"info": {
"title": "Box Platform API",
"description": "[Box Platform](https://developer.box.com) provides functionality to provide access to content stored within [Box](https://box.com). It provides endpoints for basic manipulation of files and folders, management of users within an enterprise, as well as more complex topics such as legal holds and retention policies.",
"termsOfService": "https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9",
"contact": {
"name": "Box, Inc",
"url": "https://developer.box.com",
"email": "devrel@box.com"
},
"license": {
"name": "Apache-2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0"
},
"version": "2026.0",
"x-box-commit-hash": "e1aaef784a"
},
"servers": [
{
"url": "https://api.box.com/2.0",
"description": "Box Platform API server."
}
],
"paths": {
"/automate_workflows": {
"get": {
"operationId": "get_automate_workflows_v2026.0",
"summary": "List Automate workflows defined as callable actions",
"description": "Returns workflow actions from Automate for a folder, using the\n`WORKFLOW` action category.",
"x-stability-level": "beta",
"parameters": [
{
"name": "folder_id",
"in": "query",
"description": "The unique identifier that represent a folder.\n\nThe ID for any folder can be determined\nby visiting this folder in the web application\nand copying the ID from the URL. For example,\nfor the URL `https://*.app.box.com/folder/123`\nthe `folder_id` is `123`.\n\nThe root folder of a Box account is\nalways represented by the ID `0`.",
"required": true,
"schema": {
"type": "string",
"nullable": false
},
"example": "12345"
},
{
"name": "limit",
"in": "query",
"description": "The maximum number of items to return per page.",
"required": false,
"schema": {
"type": "integer",
"format": "int64",
"maximum": 1000
},
"example": 1000
},
{
"name": "marker",
"in": "query",
"description": "Defines the position marker at which to begin returning results. This is\nused when paginating using marker-based pagination.",
"required": false,
"schema": {
"type": "string"
},
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
},
{
"$ref": "#/components/parameters/BoxVersionHeader"
}
],
"responses": {
"200": {
"description": "Returns workflow actions that can be manually started.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AutomateWorkflows"
}
}
}
},
"default": {
"description": "An unexpected client error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
}
},
"x-box-tag": "automate_workflows",
"tags": [
"Automate Workflows"
],
"x-box-unsupported-on-free-developer": true
}
},
"/automate_workflows/{workflow_id}/start": {
"post": {
"operationId": "post_automate_workflows_id_start_v2026.0",
"summary": "Start Automate workflow",
"description": "Starts an Automate workflow manually by using a workflow action ID and file IDs.",
"x-stability-level": "beta",
"parameters": [
{
"name": "workflow_id",
"in": "path",
"description": "The ID of the workflow.",
"required": true,
"schema": {
"type": "string"
},
"example": "12345"
},
{
"$ref": "#/components/parameters/BoxVersionHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AutomateWorkflowStartRequest"
}
}
}
},
"responses": {
"204": {
"description": "Starts the workflow."
},
"default": {
"description": "An unexpected client error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
}
},
"x-box-tag": "automate_workflows",
"tags": [
"Automate Workflows"
],
"x-box-unsupported-on-free-developer": true
}
},
"/notes/convert": {
"post": {
"operationId": "post_notes_convert_v2026.0",
"summary": "Convert content to Box Note",
"description": "Creates a Box Note (`.boxnote` file) from supported source content. See the `content_format` field for supported formats.",
"parameters": [
{
"$ref": "#/components/parameters/BoxVersionHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotesConvertRequestBody"
}
}
}
},
"responses": {
"201": {
"description": "The note was created successfully.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NotesConvertResponse"
}
}
}
},
"400": {
"description": "Returned when the request body is malformed, fails schema validation, or\nrequired fields are missing. A missing or unknown parent folder is not\nindicated with this status (see `404`).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"401": {
"description": "Returned when the access token provided in the `Authorization` header\nis not recognized or not provided.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"403": {
"description": "Returned when the authenticated user does not have permission to create\na file in the parent folder.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"404": {
"description": "Returned when the parent folder does not exist, or the user does not have\naccess to it.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"409": {
"description": "Returned when a preflight check fails (for example, a name conflict).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"413": {
"description": "Returned when the request payload is too large.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"422": {
"description": "Returned when the content could not be converted to a note.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"500": {
"description": "Returned when an unexpected server error occurs.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"501": {
"description": "Returned when this operation is not implemented or not yet available on\nthe server (for example, while routing to the Notes service is still being\nenabled).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"default": {
"description": "Returned when an unexpected client error occurs.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
}
},
"x-box-tag": "notes",
"tags": [
"Convert to Box note"
]
}
},
"/query": {
"post": {
"operationId": "post_query_v2026.0",
"summary": "Query for Box items",
"description": "Runs a query to discover Box items using a logical predicate that can filter\nacross item fields and metadata templates. Results can be sorted, paginated,\nand shaped to include additional item or metadata fields.",
"parameters": [
{
"$ref": "#/components/parameters/BoxVersionHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryRequestBody"
}
}
}
},
"responses": {
"200": {
"description": "Returns a paginated list of items matching the query.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryResults"
}
}
}
},
"400": {
"description": "Returned when the query could not be parsed, the request body fails schema\nvalidation, a referenced scope is not valid, or an unexpected JSON type was\nprovided.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"401": {
"description": "Returned when the access token provided in the `Authorization` header is\nmissing, not valid, or expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"403": {
"description": "Returned when the query matched too many items, or too many inaccessible\nitems, to be processed.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"404": {
"description": "Returned when a referenced metadata template or item does not exist, or the\nuser does not have access to it.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"429": {
"description": "Returned when the enterprise exceeds the allowed request rate.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"500": {
"description": "Returned when an unexpected server error occurs while processing the query.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"default": {
"description": "An unexpected client error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
}
},
"x-box-tag": "query",
"tags": [
"Query"
]
}
},
"/query_insights": {
"post": {
"operationId": "post_query_insights_v2026.0",
"summary": "Create insights for Box items",
"description": "Computes aggregated metrics over Box items matching a query predicate.\nFilters are applied first, followed by optional grouping, after which the\nrequested metrics (such as `sum`, `avg`, `min`, `max`, and `count`) are\ncomputed for each resulting group or over the entire filtered dataset.",
"parameters": [
{
"$ref": "#/components/parameters/BoxVersionHeader"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryInsightsRequestBody"
}
}
}
},
"responses": {
"200": {
"description": "Returns the computed insight entries.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/QueryInsights"
}
}
}
},
"400": {
"description": "Returned when the query could not be parsed, the request body fails schema\nvalidation, or an unexpected JSON type was provided.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"401": {
"description": "Returned when the access token provided in the `Authorization` header is\nmissing, not valid, or expired.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"403": {
"description": "Returned when the query is restricted for this enterprise or scope.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"404": {
"description": "Returned when a referenced metadata template does not exist, or the user\ndoes not have access to it.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"429": {
"description": "Returned when the enterprise exceeds the allowed request rate.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"500": {
"description": "Returned when an unexpected server error occurs while computing insights.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
},
"default": {
"description": "An unexpected client error.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ClientError"
}
}
}
}
},
"x-box-tag": "query",
"tags": [
"Query"
]
}
}
},
"components": {
"parameters": {
"BoxVersionHeader": {
"name": "box-version",
"in": "header",
"description": "Version header.",
"allowEmptyValue": false,
"required": true,
"schema": {
"type": "string",
"enum": [
"2026.0"
]
},
"example": "2026.0"
}
},
"schemas": {
"AutomateWorkflowAction": {
"description": "An Automate action that can start a workflow.",
"type": "object",
"properties": {
"id": {
"description": "The identifier for the Automate action.",
"type": "string",
"example": "981"
},
"type": {
"description": "The object type for this workflow action wrapper.",
"type": "string",
"example": "workflow_action",
"enum": [
"workflow_action"
]
},
"action_type": {
"description": "The type that defines the behavior of this action.",
"type": "string",
"example": "run_workflow",
"enum": [
"run_workflow"
]
},
"description": {
"description": "A human-readable description of the workflow action.",
"type": "string",
"example": "Runs workflow execution for selected files"
},
"created_at": {
"description": "The date and time when the action was created.",
"type": "string",
"format": "date-time",
"example": "2026-04-01T10:00:00.000Z"
},
"updated_at": {
"description": "The date and time when the action was last updated.",
"type": "string",
"format": "date-time",
"example": "2026-04-02T11:00:00.000Z"
},
"created_by": {
"allOf": [
{
"$ref": "#/components/schemas/User--Mini"
},
{
"description": "The user that created the action."
}
]
},
"updated_by": {
"allOf": [
{
"$ref": "#/components/schemas/User--Mini"
},
{
"description": "The user that last updated the action."
}
]
},
"workflow": {
"$ref": "#/components/schemas/AutomateWorkflowReference"
}
},
"required": [
"id",
"type",
"action_type",
"workflow"
],
"title": "Automate Workflow Action"
},
"AutomateWorkflowReference": {
"description": "A reference to an Automate workflow.",
"type": "object",
"properties": {
"id": {
"description": "The identifier for the Automate workflow instance.",
"type": "string",
"example": "545"
},
"type": {
"description": "The object type.",
"type": "string",
"example": "workflow",
"enum": [
"workflow"
]
},
"name": {
"description": "The display name for the Automate workflow.",
"type": "string",
"example": "Contract approval workflow"
}
},
"required": [
"id",
"type"
],
"title": "Automate Workflow Reference"
},
"AutomateWorkflows": {
"description": "A list of Automate workflow actions.",
"allOf": [
{
"properties": {
"entries": {
"description": "Workflow actions available for manual start.",
"type": "array",
"items": {
"$ref": "#/components/schemas/AutomateWorkflowAction"
}
}
}
},
{
"type": "object",
"description": "The part of an API response that describes marker\nbased pagination.",
"properties": {
"limit": {
"description": "The limit that was used for these entries. This will be the same as the\n`limit` query parameter unless that value exceeded the maximum value\nallowed. The maximum value varies by API.",
"type": "integer",
"format": "int64",
"example": 1000
},
"next_marker": {
"description": "The marker for the start of the next page of results.",
"type": "string",
"example": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"nullable": true
}
}
}
],
"title": "Automate Workflow Actions",
"x-box-resource-id": "automate_workflows_v2026.0"
},
"AutomateWorkflowStartRequest": {
"description": "Request body to start an Automate workflow.",
"type": "object",
"properties": {
"workflow_action_id": {
"description": "The callable action ID used to trigger the selected workflow.",
"type": "string",
"example": "981"
},
"file_ids": {
"description": "The files to process with the selected workflow.",
"type": "array",
"items": {
"type": "string",
"example": "123"
},
"example": [
"123"
],
"minItems": 1
}
},
"required": [
"workflow_action_id",
"file_ids"
],
"title": "Automate Workflow Start Request"
},
"ClientError": {
"description": "A generic error.",
"type": "object",
"properties": {
"type": {
"description": "The value will always be `error`.",
"type": "string",
"example": "error",
"enum": [
"error"
],
"nullable": false
},
"status": {
"description": "The HTTP status of the response.",
"type": "integer",
"format": "int32",
"example": 400,
"nullable": false
},
"code": {
"description": "A Box-specific error code.",
"type": "string",
"example": "item_name_invalid",
"enum": [
"created",
"accepted",
"no_content",
"redirect",
"not_modified",
"bad_request",
"unauthorized",
"forbidden",
"not_found",
"method_not_allowed",
"conflict",
"precondition_failed",
"too_many_requests",
"internal_server_error",
"unavailable",
"item_name_invalid",
"insufficient_scope"
]
},
"message": {
"description": "A short message describing the error.",
"type": "string",
"example": "Method Not Allowed",
"nullable": false
},
"context_info": {
"description": "A free-form object that contains additional context\nabout the error. The possible fields are defined on\na per-endpoint basis. `message` is only one example.",
"type": "object",
"example": {
"message": "Something went wrong"
},
"additionalProperties": {},
"nullable": true
},
"help_url": {
"description": "A URL that links to more information about why this error occurred.",
"type": "string",
"example": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
"nullable": false
},
"request_id": {
"description": "A unique identifier for this response, which can be used\nwhen contacting Box support.",
"type": "string",
"example": "abcdef123456",
"nullable": false
}
},
"title": "Client error",
"x-box-resource-id": "client_error_v2026.0"
},
"FolderReference": {
"description": "Folder reference.",
"type": "object",
"properties": {
"type": {
"description": "The value will always be `folder`.",
"type": "string",
"example": "folder",
"enum": [
"folder"
],
"nullable": false
},
"id": {
"description": "ID of the folder.",
"type": "string",
"example": "42037322"
}
},
"required": [
"type",
"id"
],
"title": "Folder reference"
},
"NotesConvertRequestBody": {
"description": "Request body for converting source content into a Box Note file.",
"type": "object",
"properties": {
"content": {
"description": "The content to convert to a note. See the `content_format` field for supported formats.",
"example": "# My note\\n\\nHello from Markdown.",
"maxLength": 1048576,
"type": "string"
},
"content_format": {
"description": "Format of the content to convert.",
"type": "string",
"example": "markdown",
"enum": [
"markdown"
]
},
"parent": {
"$ref": "#/components/schemas/FolderReference"
},
"name": {
"description": "The name for the created note. The `.boxnote` extension is appended automatically.",
"type": "string",
"example": "Quarterly plan",
"maxLength": 247,
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"content",
"content_format",
"parent",
"name"
],
"title": "Notes convert request body",
"x-box-tag": "notes"
},
"NotesConvertResponse": {
"description": "Identifies the created Box Note file.",
"type": "object",
"properties": {
"type": {
"description": "The Box resource type; always `file` for a Box file.",
"type": "string",
"example": "file",
"enum": [
"file"
]
},
"id": {
"description": "Box file ID of the created `.boxnote` file.",
"type": "string",
"example": "1234567890"
}
},
"additionalProperties": false,
"required": [
"type",
"id"
],
"title": "Notes convert response",
"x-box-resource-id": "notes_convert_created_file_v2026.0",
"x-box-tag": "notes"
},
"QueryAncestorReference": {
"description": "A reference to an ancestor entity used to restrict query results to that\nentity and its recursive descendants.",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier of the ancestor entity.",
"type": "string",
"example": "789"
},
"type": {
"description": "The type of the ancestor entity. Possible value: folder.",
"type": "string",
"example": "folder"
}
},
"additionalProperties": false,
"required": [
"id",
"type"
],
"title": "Query ancestor reference",
"x-box-tag": "query"
},
"QueryInsightEntry": {
"description": "A single computed insight entry, containing its grouping keys (if applicable)\nand the computed metrics.",
"type": "object",
"properties": {
"key": {
"description": "The grouping key values associated with the entry. Contains one value per\n`group_by` field for `group` entries, and is empty for `overall` and\n`other` entries.",
"type": "array",
"items": {
"type": "string",
"example": "ContractType1"
},
"example": [
"ContractType1"
]
},
"type": {
"description": "The type of insight entry, indicating how the associated metrics are\naggregated.",
"type": "string",
"example": "group",
"enum": [
"group",
"overall",
"other"
]
},
"metrics": {
"description": "A map of metric aliases to their computed results. For `other` entries, the\ncount is reported under the `totalCountBeyondTopGroups` key.",
"type": "object",
"example": {
"totalContractValue": {
"type": "sum",
"values": {
"sum": 180000
}
},
"countContractType": {
"type": "count",
"values": {
"count": 245
}
}
},
"additionalProperties": {
"$ref": "#/components/schemas/QueryInsightMetricResult"
}
}
},
"additionalProperties": false,
"required": [
"key",
"type",
"metrics"
],
"title": "Query insight entry",
"x-box-resource-id": "query_insight_entry_v2026.0",
"x-box-tag": "query"
},
"QueryInsightMetricResult": {
"description": "The computed result for a single metric, including the metric type and its\ncomputed value(s).",
"type": "object",
"properties": {
"type": {
"description": "The metric type that was computed.",
"type": "string",
"example": "sum"
},
"values": {
"description": "The computed metric result(s), keyed by the metric function (for example\n`sum`, `avg`, `min`, `max`, or `count`).",
"type": "object",
"example": {
"sum": 50
},
"additionalProperties": {
"type": "number"
}
}
},
"additionalProperties": false,
"required": [
"type",
"values"
],
"title": "Query insight metric result",
"x-box-tag": "query"
},
"QueryInsights": {
"description": "The computed results of an insights request, as a list of insight entries.",
"type": "object",
"properties": {
"insights": {
"description": "The list of computed insight entries. Each entry corresponds to a group,\nthe overall dataset, or the aggregate of groups outside the top results.",
"type": "array",
"items": {
"$ref": "#/components/schemas/QueryInsightEntry"
}
}
},
"example": {
"insights": [
{
"key": [
"ContractType1"
],
"type": "group",
"metrics": {
"totalContractValue": {
"type": "sum",
"values": {
"sum": 180000
}
},
"countContractType": {
"type": "count",
"values": {
"count": 245
}
}
}
},
{