Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
13061 lines (13061 loc) · 472 KB
/
Copy pathopenapi.json
File metadata and controls
13061 lines (13061 loc) · 472 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.3",
"info": {
"title": "Buildstash API",
"description": "The Buildstash API. Manage applications, builds, releases, share links, distribution groups, portals and webhooks, and upload builds from CI/CD pipelines.",
"version": "1.3.0",
"license": {
"name": "MIT"
}
},
"servers": [
{
"url": "https://app.buildstash.com/api/v1",
"description": "Production"
}
],
"security": [
{
"bearerAuth": []
}
],
"tags": [
{
"name": "Workspace",
"description": "Workspace details, members, labels, default streams and custom targets."
},
{
"name": "Users",
"description": "Users in your workspace."
},
{
"name": "Applications",
"description": "Applications, and their members, streams, labels, platforms and custom targets."
},
{
"name": "Uploads",
"description": "Upload builds and metadata artifacts."
},
{
"name": "Builds",
"description": "Builds uploaded to an application."
},
{
"name": "Releases",
"description": "Releases, grouping builds for a version of an application."
},
{
"name": "Share Links",
"description": "Public share links for builds and releases."
},
{
"name": "Distribution Groups",
"description": "Groups of testers that releases are distributed to."
},
{
"name": "Portals",
"description": "Portals publishing builds and releases."
},
{
"name": "Webhooks",
"description": "Webhooks sent when events happen in an application."
}
],
"paths": {
"/workspace": {
"get": {
"tags": [
"Workspace"
],
"summary": "Get workspace",
"description": "Retrieve information about the workspace associated with the API key. No scope required.",
"operationId": "getWorkspace",
"responses": {
"200": {
"description": "Workspace retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace retrieved successfully."
},
"data": {
"$ref": "#/components/schemas/Workspace"
}
}
},
"example": {
"message": "Workspace retrieved successfully.",
"data": {
"id": "wSp1234",
"name": "Acme Games",
"subdomain": "acme",
"logo_url": "https://uploads.buildstash.com/4azHhZGVFONU5s.png",
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
}
}
}
},
"/workspace/members": {
"get": {
"tags": [
"Workspace"
],
"summary": "List workspace members",
"description": "List all members of the workspace. Requires `members:read` scope. Only available with workspace-level API keys; application-level keys should use `/applications/{application_id}/members`.",
"operationId": "listWorkspaceMembers",
"parameters": [
{
"$ref": "#/components/parameters/SortByWorkspaceMembers"
},
{
"$ref": "#/components/parameters/SortDirection"
},
{
"$ref": "#/components/parameters/SearchWorkspaceMembers"
},
{
"$ref": "#/components/parameters/PerPageWorkspaceMembers"
}
],
"responses": {
"200": {
"description": "Members retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace members retrieved successfully."
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Member"
}
},
"pagination": {
"$ref": "#/components/schemas/Pagination"
}
}
},
"example": {
"message": "Workspace members retrieved successfully.",
"data": [
{
"id": "uSr1234",
"name": "Jane Smith",
"email": "jane@example.com",
"profile_photo_url": "https://uploads.buildstash.com/B7kLmNpQrStUvWx.png",
"role": "admin",
"added_at": "2025-06-10T09:15:00.000000Z"
}
],
"pagination": {
"current_page": 1,
"per_page": 20,
"total": 42,
"last_page": 5,
"from": 1,
"to": 10
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
}
}
}
},
"/workspace/labels": {
"get": {
"tags": [
"Workspace"
],
"summary": "List workspace labels",
"description": "List all workspace-level labels. These are shared across all applications in the workspace. Requires `workspace:read` scope.",
"operationId": "listWorkspaceLabels",
"responses": {
"200": {
"description": "Labels retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace labels retrieved successfully."
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkspaceLabel"
}
}
}
},
"example": {
"message": "Workspace labels retrieved successfully.",
"data": [
{
"id": "lbl1234",
"name": "Production",
"description": "Production-ready builds",
"color": "#22c55e",
"level": "workspace",
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
}
}
},
"post": {
"tags": [
"Workspace"
],
"summary": "Create workspace label",
"description": "Create a workspace-level label, available to every application in the workspace. The name must not already be used by any label in the workspace (at workspace or application level). Requires a workspace API key with `workspace:create` scope.",
"operationId": "createWorkspaceLabel",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 25,
"description": "Label name. Letters, numbers, spaces and `- _ : / \\ @ #`, with no leading, trailing or double spaces.",
"example": "Release Candidate"
},
"description": {
"type": "string",
"maxLength": 500,
"nullable": true,
"example": "Builds ready for final testing"
},
"color": {
"type": "string",
"description": "Hex colour, e.g. `#4f46e5`. Assigned randomly if left out.",
"example": "#22c55e",
"nullable": true
}
},
"required": [
"name"
]
},
"example": {
"name": "Release Candidate",
"description": "Builds ready for final testing",
"color": "#22c55e"
}
}
}
},
"responses": {
"201": {
"description": "Label created",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Label created successfully."
},
"data": {
"$ref": "#/components/schemas/Label"
}
}
},
"example": {
"message": "Label created successfully.",
"data": {
"id": "lbl1234",
"name": "Release Candidate",
"description": "Production-ready builds",
"color": "#22c55e",
"level": "workspace",
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z",
"application_id": null,
"workspace_id": "wSp1234"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/ValidationError"
}
}
}
},
"/workspace/labels/{label_identifier}": {
"get": {
"tags": [
"Workspace"
],
"summary": "Get workspace label",
"description": "Get a single workspace-level label by ID or name. Requires `workspace:read` scope.",
"operationId": "getWorkspaceLabel",
"parameters": [
{
"name": "label_identifier",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Label ID or name.",
"example": "Production"
}
],
"responses": {
"200": {
"description": "Label retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace label retrieved successfully."
},
"data": {
"$ref": "#/components/schemas/Label"
}
}
},
"example": {
"message": "Workspace label retrieved successfully.",
"data": {
"id": "lbl1234",
"name": "Production",
"description": "Production-ready builds",
"color": "#22c55e",
"level": "workspace",
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z",
"application_id": "aBc1234",
"workspace_id": "wSp1234"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"description": "Label not found"
}
}
}
},
"/workspace/default-streams": {
"get": {
"tags": [
"Workspace"
],
"summary": "List workspace default streams",
"description": "List the workspace's default stream templates. These templates are copied into new applications when they are created. Requires `workspace:read` scope.",
"operationId": "listWorkspaceDefaultStreams",
"responses": {
"200": {
"description": "Default streams retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace default streams retrieved successfully."
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/DefaultStream"
}
}
}
},
"example": {
"message": "Workspace default streams retrieved successfully.",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440012",
"name": "nightlies",
"description": "Default nightly stream template",
"retention_days": 30,
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
}
}
}
},
"/workspace/custom-targets": {
"get": {
"tags": [
"Workspace"
],
"summary": "List workspace custom targets",
"description": "List all workspace-level custom targets. These are shared across all applications in the workspace that use the target's platform. Requires `workspace:read` scope.",
"operationId": "listWorkspaceCustomTargets",
"responses": {
"200": {
"description": "Custom targets retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace custom targets retrieved successfully."
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/CustomTarget"
}
}
}
},
"example": {
"message": "Workspace custom targets retrieved successfully.",
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440010",
"name": "Samsung Galaxy Store",
"description": "Builds distributed via Samsung Galaxy Store",
"level": "workspace",
"platform": {
"identifier": "android",
"name": "Android"
},
"icon_url": null,
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
]
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
}
}
},
"post": {
"tags": [
"Workspace"
],
"summary": "Create workspace custom target",
"description": "Create a workspace-level custom target, available to every application with the target's platform. Requires a plan that includes custom targets, and a workspace API key with `workspace:create` scope.",
"operationId": "createWorkspaceCustomTarget",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 18,
"example": "Kiosk"
},
"description": {
"type": "string",
"maxLength": 100,
"nullable": true,
"example": "In-store kiosk devices"
},
"platform": {
"type": "string",
"description": "Platform identifier. See [Platforms](/api/data/platforms).",
"example": "android"
}
},
"required": [
"name",
"platform"
]
},
"example": {
"name": "Kiosk",
"description": "In-store kiosk devices",
"platform": "android"
}
}
}
},
"responses": {
"201": {
"description": "Custom target created",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Custom target created successfully."
},
"data": {
"$ref": "#/components/schemas/CustomTarget"
}
}
},
"example": {
"message": "Custom target created successfully.",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440010",
"name": "Kiosk",
"description": "In-store kiosk devices",
"level": "workspace",
"platform": {
"identifier": "android",
"name": "Android"
},
"icon_url": null,
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"422": {
"$ref": "#/components/responses/ValidationError"
}
}
}
},
"/workspace/custom-targets/{target_identifier}": {
"get": {
"tags": [
"Workspace"
],
"summary": "Get workspace custom target",
"description": "Get a single workspace-level custom target by ID or name. Requires `workspace:read` scope.",
"operationId": "getWorkspaceCustomTarget",
"parameters": [
{
"name": "target_identifier",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "Custom target ID (UUID) or name.",
"example": "Samsung Galaxy Store"
}
],
"responses": {
"200": {
"description": "Custom target retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "Workspace custom target retrieved successfully."
},
"data": {
"$ref": "#/components/schemas/CustomTarget"
}
}
},
"example": {
"message": "Workspace custom target retrieved successfully.",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440010",
"name": "Samsung Galaxy Store",
"description": "Builds distributed via Samsung Galaxy Store",
"level": "workspace",
"platform": {
"identifier": "android",
"name": "Android"
},
"icon_url": null,
"created_at": "2025-06-10T09:15:00.000000Z",
"updated_at": "2025-06-15T14:30:00.000000Z"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"description": "Custom target not found"
}
}
}
},
"/users/{user_id}": {
"get": {
"tags": [
"Users"
],
"summary": "Get user",
"description": "Get basic information about a workspace member. Requires `members:read` scope (with a workspace or application API key), and the user must be a member of the API key's workspace.",
"operationId": "getUser",
"parameters": [
{
"name": "user_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "User ID (UUID).",
"example": "9f4b2c1e-7a3d-4e8f-b6c5-1d2e3f4a5b6c"
}
],
"responses": {
"200": {
"description": "User retrieved",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"example": "User retrieved successfully."
},
"data": {
"$ref": "#/components/schemas/User"
}
}
},
"example": {
"message": "User retrieved successfully.",
"data": {
"id": "uSr1234",
"name": "Jane Smith",
"email": "jane@example.com",
"profile_photo_url": "https://uploads.buildstash.com/B7kLmNpQrStUvWx.png"
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
}
}
}
},
"/upload/request": {
"post": {
"tags": [
"Uploads"
],
"summary": "Request upload",
"description": "Initiate a build file upload by requesting presigned URLs. Requires `builds:create` scope.",
"operationId": "requestUpload",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Initiate a build file upload.",
"required": [
"structure",
"primary_file",
"version_component_1_major",
"version_component_2_minor",
"version_component_3_patch",
"source",
"platform",
"stream"
],
"properties": {
"application_id": {
"type": "string",
"description": "Application ID. Required when using a Workspace API key.",
"example": "aBc1234"
},
"structure": {
"type": "string",
"enum": [
"file",
"file+expansion"
],
"default": "file",
"description": "Upload structure type. Use 'file' unless including an Android OBB expansion file."
},
"platform": {
"type": "string",
"description": "Platform identifier. Must match an enabled platform slug. See [Platforms](/api/data/platforms) for the full list.",
"example": "windows"
},
"custom_target": {
"type": "string",
"nullable": true,
"maxLength": 20,
"description": "Custom target for this build. Must exactly match the name of a target you've defined.",
"example": "Samsung Galaxy Store"
},
"stream": {
"type": "string",
"maxLength": 12,
"pattern": "^[\\w\\-\\+]+$",
"description": "Stream name. Must match exact name setup in your app.",
"example": "nightlies"
},
"source": {
"type": "string",
"description": "Source of the upload. See [Build Sources](/api/data/sources#build-sources) for valid identifiers.",
"example": "ghactions"
},
"primary_file": {
"type": "object",
"required": [
"filename",
"size_bytes"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 255,
"pattern": "^[^\\/\\0]+$",
"description": "Filename with extension (excluding path)",
"example": "example.exe"
},
"size_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 500000000000,
"description": "Size of the file in bytes. Can't be more than your plan's maximum build size (up to 50 GB).",
"example": 52428800
}
}
},
"expansion_files": {
"type": "array",
"maxItems": 1,
"items": {
"type": "object",
"required": [
"filename",
"size_bytes"
],
"properties": {
"filename": {
"type": "string",
"maxLength": 255,
"pattern": "^[^\\/\\0]+$",
"description": "Filename with extension (excluding path).",
"example": "expansion.obb"
},
"size_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 5000000000,
"description": "Size of the expansion file in bytes (max 5GB).",
"example": 1048576
}
}
},
"description": "Expansion files (only include if structure is 'file+expansion')."
},
"version_component_1_major": {
"type": "integer",
"minimum": 0,
"maximum": 9999,
"description": "Semantic versioning: Major version component",
"example": 1
},
"version_component_2_minor": {
"type": "integer",
"minimum": 0,
"maximum": 9999,
"description": "Minor version component",
"example": 0
},
"version_component_3_patch": {
"type": "integer",
"minimum": 0,
"maximum": 9999,
"description": "Patch version component. At least one version component must be greater than zero.",
"example": 1
},
"version_component_extra": {
"type": "string",
"nullable": true,
"maxLength": 25,
"pattern": "^[a-zA-Z0-9\\-]+(\\.[a-zA-Z0-9\\-]+)*$",
"description": "Optional pre-release label such as 'alpha', 'beta', 'rc'",
"example": "alpha"
},
"version_component_meta": {
"type": "string",
"nullable": true,
"maxLength": 64,
"pattern": "^[a-zA-Z0-9\\-]+(\\.[a-zA-Z0-9\\-]+)*$",
"description": "Optional metadata such as build number or commit hash",
"example": "2025.07.30"
},
"custom_build_number": {
"type": "string",
"nullable": true,
"maxLength": 100,
"pattern": "^[a-zA-Z0-9._-]*$",
"description": "Custom build number. Alphanumeric characters, dots, underscores, and hyphens only.",
"example": "398"
},
"labels": {
"type": "array",
"items": {
"type": "string",
"maxLength": 25,
"pattern": "^[A-Za-z0-9\\s\\-_:\\/\\\\@#]+$"
},
"maxItems": 10,
"description": "Labels for the build (will be created if they do not already exist). Each label name may be up to 25 characters.",
"example": [
"signed",
"to-test"
]
},
"architectures": {
"type": "array",
"maxItems": 15,
"items": {
"type": "string",
"description": "Architecture identifier. The platform must also support the architecture. See [Architectures](/api/data/architectures) for the full list.",
"example": "x64"
},
"description": "Architectures this build supports (the platform must also support the architecture). See [Architectures](/api/data/architectures) for the full list.",
"example": [
"x64",
"arm64v8"
]
},
"notes": {
"type": "string",
"nullable": true,
"maxLength": 1000,
"description": "Additional notes",
"example": "Example build notes here."
},
"ci_pipeline": {
"type": "string",
"nullable": true,
"maxLength": 100,
"description": "CI pipeline name",
"example": "Nightly Build"
},
"ci_run_id": {
"type": "string",
"nullable": true,
"description": "CI run ID (numeric, up to 30 digits).",
"example": "12345678901",
"maxLength": 30,
"pattern": "^[0-9]+$"
},
"ci_run_url": {
"type": "string",
"nullable": true,
"description": "CI run URL",
"example": "https://github.com/buildstash/example/actions/runs/12345678901"
},
"ci_build_duration": {
"type": "string",
"nullable": true,
"description": "CI build duration.",
"example": "00:05:00",
"maxLength": 30,
"pattern": "^[a-zA-Z0-9.: -]+$"
},
"vc_host_type": {
"type": "string",
"nullable": true,
"description": "Version control host type. `scm_host_type` is accepted as an alias. See [SCM Host Types](/api/data/sources#scm-host-types) for valid identifiers.",
"example": "git"
},
"vc_host": {
"type": "string",
"nullable": true,
"description": "Version control host. `scm_host` is accepted as an alias. See [SCM Sources](/api/data/sources#scm-sources) for valid identifiers.",
"example": "github"
},
"vc_repo_name": {
"type": "string",
"nullable": true,
"maxLength": 200,
"description": "Repository name",
"example": "buildstash/example"
},
"vc_repo_url": {
"type": "string",
"nullable": true,
"description": "Repository URL",
"example": "https://github.com/buildstash/example"
},
"vc_branch": {
"type": "string",
"nullable": true,
"maxLength": 100,
"description": "Branch name",
"example": "main"
},
"vc_commit_sha": {
"type": "string",
"nullable": true,
"maxLength": 40,
"description": "Commit SHA (alphanumeric, up to 40 characters).",