@netlify/open-api 2.45.0 → 2.47.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/swagger.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "swagger": "2.0",
3
3
  "info": {
4
- "version": "2.45.0",
4
+ "version": "2.47.0-alpha.0",
5
5
  "title": "Netlify's API documentation",
6
6
  "description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify's API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)",
7
7
  "termsOfService": "https://www.netlify.com/legal/terms-of-use/",
@@ -350,10 +350,12 @@
350
350
  "type": "string"
351
351
  },
352
352
  "functions_dir": {
353
- "type": "string"
353
+ "type": "string",
354
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
354
355
  },
355
356
  "cmd": {
356
- "type": "string"
357
+ "type": "string",
358
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
357
359
  },
358
360
  "allowed_branches": {
359
361
  "type": "array",
@@ -380,7 +382,8 @@
380
382
  "type": "integer"
381
383
  },
382
384
  "stop_builds": {
383
- "type": "boolean"
385
+ "type": "boolean",
386
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
384
387
  }
385
388
  }
386
389
  },
@@ -696,10 +699,12 @@
696
699
  "type": "string"
697
700
  },
698
701
  "functions_dir": {
699
- "type": "string"
702
+ "type": "string",
703
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
700
704
  },
701
705
  "cmd": {
702
- "type": "string"
706
+ "type": "string",
707
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
703
708
  },
704
709
  "allowed_branches": {
705
710
  "type": "array",
@@ -726,7 +731,8 @@
726
731
  "type": "integer"
727
732
  },
728
733
  "stop_builds": {
729
- "type": "boolean"
734
+ "type": "boolean",
735
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
730
736
  }
731
737
  }
732
738
  },
@@ -780,10 +786,12 @@
780
786
  "type": "string"
781
787
  },
782
788
  "functions_dir": {
783
- "type": "string"
789
+ "type": "string",
790
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
784
791
  },
785
792
  "cmd": {
786
- "type": "string"
793
+ "type": "string",
794
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
787
795
  },
788
796
  "allowed_branches": {
789
797
  "type": "array",
@@ -810,7 +818,8 @@
810
818
  "type": "integer"
811
819
  },
812
820
  "stop_builds": {
813
- "type": "boolean"
821
+ "type": "boolean",
822
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
814
823
  }
815
824
  }
816
825
  }
@@ -1077,10 +1086,12 @@
1077
1086
  "type": "string"
1078
1087
  },
1079
1088
  "functions_dir": {
1080
- "type": "string"
1089
+ "type": "string",
1090
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
1081
1091
  },
1082
1092
  "cmd": {
1083
- "type": "string"
1093
+ "type": "string",
1094
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
1084
1095
  },
1085
1096
  "allowed_branches": {
1086
1097
  "type": "array",
@@ -1107,7 +1118,8 @@
1107
1118
  "type": "integer"
1108
1119
  },
1109
1120
  "stop_builds": {
1110
- "type": "boolean"
1121
+ "type": "boolean",
1122
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
1111
1123
  }
1112
1124
  }
1113
1125
  },
@@ -1434,10 +1446,12 @@
1434
1446
  "type": "string"
1435
1447
  },
1436
1448
  "functions_dir": {
1437
- "type": "string"
1449
+ "type": "string",
1450
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
1438
1451
  },
1439
1452
  "cmd": {
1440
- "type": "string"
1453
+ "type": "string",
1454
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
1441
1455
  },
1442
1456
  "allowed_branches": {
1443
1457
  "type": "array",
@@ -1464,7 +1478,8 @@
1464
1478
  "type": "integer"
1465
1479
  },
1466
1480
  "stop_builds": {
1467
- "type": "boolean"
1481
+ "type": "boolean",
1482
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
1468
1483
  }
1469
1484
  }
1470
1485
  },
@@ -1779,10 +1794,12 @@
1779
1794
  "type": "string"
1780
1795
  },
1781
1796
  "functions_dir": {
1782
- "type": "string"
1797
+ "type": "string",
1798
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
1783
1799
  },
1784
1800
  "cmd": {
1785
- "type": "string"
1801
+ "type": "string",
1802
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
1786
1803
  },
1787
1804
  "allowed_branches": {
1788
1805
  "type": "array",
@@ -1809,7 +1826,8 @@
1809
1826
  "type": "integer"
1810
1827
  },
1811
1828
  "stop_builds": {
1812
- "type": "boolean"
1829
+ "type": "boolean",
1830
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
1813
1831
  }
1814
1832
  }
1815
1833
  },
@@ -1863,10 +1881,12 @@
1863
1881
  "type": "string"
1864
1882
  },
1865
1883
  "functions_dir": {
1866
- "type": "string"
1884
+ "type": "string",
1885
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
1867
1886
  },
1868
1887
  "cmd": {
1869
- "type": "string"
1888
+ "type": "string",
1889
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
1870
1890
  },
1871
1891
  "allowed_branches": {
1872
1892
  "type": "array",
@@ -1893,7 +1913,8 @@
1893
1913
  "type": "integer"
1894
1914
  },
1895
1915
  "stop_builds": {
1896
- "type": "boolean"
1916
+ "type": "boolean",
1917
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
1897
1918
  }
1898
1919
  }
1899
1920
  }
@@ -2155,10 +2176,12 @@
2155
2176
  "type": "string"
2156
2177
  },
2157
2178
  "functions_dir": {
2158
- "type": "string"
2179
+ "type": "string",
2180
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
2159
2181
  },
2160
2182
  "cmd": {
2161
- "type": "string"
2183
+ "type": "string",
2184
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
2162
2185
  },
2163
2186
  "allowed_branches": {
2164
2187
  "type": "array",
@@ -2185,7 +2208,8 @@
2185
2208
  "type": "integer"
2186
2209
  },
2187
2210
  "stop_builds": {
2188
- "type": "boolean"
2211
+ "type": "boolean",
2212
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
2189
2213
  }
2190
2214
  }
2191
2215
  },
@@ -5596,9 +5620,16 @@
5596
5620
  "in": "body",
5597
5621
  "schema": {
5598
5622
  "type": "object",
5623
+ "description": "Deploy files can be provided in two ways:\n1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR\n2. As a zip file using one of these methods:\n - Set Content-Type to 'application/zip' and send the zip file as the raw request body\n - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'\n",
5599
5624
  "properties": {
5600
5625
  "files": {
5601
- "type": "object"
5626
+ "type": "object",
5627
+ "description": "A hash mapping file paths to SHA1 digests of the file contents."
5628
+ },
5629
+ "zip": {
5630
+ "type": "string",
5631
+ "format": "binary",
5632
+ "description": "A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"
5602
5633
  },
5603
5634
  "draft": {
5604
5635
  "type": "boolean"
@@ -6101,9 +6132,16 @@
6101
6132
  "in": "body",
6102
6133
  "schema": {
6103
6134
  "type": "object",
6135
+ "description": "Deploy files can be provided in two ways:\n1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR\n2. As a zip file using one of these methods:\n - Set Content-Type to 'application/zip' and send the zip file as the raw request body\n - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'\n",
6104
6136
  "properties": {
6105
6137
  "files": {
6106
- "type": "object"
6138
+ "type": "object",
6139
+ "description": "A hash mapping file paths to SHA1 digests of the file contents."
6140
+ },
6141
+ "zip": {
6142
+ "type": "string",
6143
+ "format": "binary",
6144
+ "description": "A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"
6107
6145
  },
6108
6146
  "draft": {
6109
6147
  "type": "boolean"
@@ -6868,11 +6906,14 @@
6868
6906
  "tags": [
6869
6907
  "build"
6870
6908
  ],
6871
- "description": "Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available. Files for build could be also uploaded as a zipped site.",
6909
+ "description": "Runs a build for a site. The build will be scheduled to run at the first opportunity, but it might not start immediately if insufficient account build capacity is available.\n\nFiles for build can be uploaded as a zipped site using one of these methods:\n1. Set Content-Type to 'application/zip' and send the zip file as the raw request body\n2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field\n",
6910
+ "consumes": [
6911
+ "multipart/form-data"
6912
+ ],
6872
6913
  "parameters": [
6873
6914
  {
6874
6915
  "name": "branch",
6875
- "description": "The branch to build; defaults to main branch",
6916
+ "description": "If no branch is specified, it is treated as a production deploy If a branch IS specified and matches the main branch, it is also production If a branch is specified and doesn't match the main branch, it is a branch deploy",
6876
6917
  "required": false,
6877
6918
  "in": "query",
6878
6919
  "type": "string"
@@ -6904,6 +6945,13 @@
6904
6945
  "required": false,
6905
6946
  "in": "query",
6906
6947
  "type": "string"
6948
+ },
6949
+ {
6950
+ "name": "zip",
6951
+ "description": "A zip file containing the site files to build.\nOnly used with Content-Type 'multipart/form-data'.\nAlternatively, set Content-Type to 'application/zip' and send the zip as the raw request body (no 'zip' parameter needed).\n",
6952
+ "required": false,
6953
+ "in": "formData",
6954
+ "type": "file"
6907
6955
  }
6908
6956
  ],
6909
6957
  "responses": {
@@ -7297,10 +7345,12 @@
7297
7345
  "type": "string"
7298
7346
  },
7299
7347
  "functions_dir": {
7300
- "type": "string"
7348
+ "type": "string",
7349
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
7301
7350
  },
7302
7351
  "cmd": {
7303
- "type": "string"
7352
+ "type": "string",
7353
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
7304
7354
  },
7305
7355
  "allowed_branches": {
7306
7356
  "type": "array",
@@ -7327,7 +7377,8 @@
7327
7377
  "type": "integer"
7328
7378
  },
7329
7379
  "stop_builds": {
7330
- "type": "boolean"
7380
+ "type": "boolean",
7381
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
7331
7382
  }
7332
7383
  }
7333
7384
  },
@@ -7364,6 +7415,116 @@
7364
7415
  }
7365
7416
  }
7366
7417
  },
7418
+ "/sites/{site_id}/enable": {
7419
+ "parameters": [
7420
+ {
7421
+ "name": "site_id",
7422
+ "type": "string",
7423
+ "in": "path",
7424
+ "required": true
7425
+ }
7426
+ ],
7427
+ "put": {
7428
+ "operationId": "enableSite",
7429
+ "tags": [
7430
+ "site"
7431
+ ],
7432
+ "description": "Re-enables a site that was previously disabled by the user. Sites that were disabled for usage exceeded or marked as spam cannot be re-enabled via this endpoint.",
7433
+ "responses": {
7434
+ "204": {
7435
+ "description": "No content"
7436
+ },
7437
+ "422": {
7438
+ "description": "Cannot enable this site",
7439
+ "schema": {
7440
+ "type": "object",
7441
+ "required": [
7442
+ "message"
7443
+ ],
7444
+ "properties": {
7445
+ "code": {
7446
+ "type": "integer",
7447
+ "format": "int64"
7448
+ },
7449
+ "message": {
7450
+ "type": "string",
7451
+ "x-nullable": false
7452
+ }
7453
+ }
7454
+ }
7455
+ },
7456
+ "default": {
7457
+ "description": "error",
7458
+ "schema": {
7459
+ "type": "object",
7460
+ "required": [
7461
+ "message"
7462
+ ],
7463
+ "properties": {
7464
+ "code": {
7465
+ "type": "integer",
7466
+ "format": "int64"
7467
+ },
7468
+ "message": {
7469
+ "type": "string",
7470
+ "x-nullable": false
7471
+ }
7472
+ }
7473
+ }
7474
+ }
7475
+ }
7476
+ }
7477
+ },
7478
+ "/sites/{site_id}/disable": {
7479
+ "parameters": [
7480
+ {
7481
+ "name": "site_id",
7482
+ "type": "string",
7483
+ "in": "path",
7484
+ "required": true
7485
+ }
7486
+ ],
7487
+ "put": {
7488
+ "operationId": "disableSite",
7489
+ "tags": [
7490
+ "site"
7491
+ ],
7492
+ "description": "Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.",
7493
+ "parameters": [
7494
+ {
7495
+ "name": "reason",
7496
+ "type": "string",
7497
+ "in": "query",
7498
+ "required": true,
7499
+ "description": "Reason for disabling the site"
7500
+ }
7501
+ ],
7502
+ "responses": {
7503
+ "204": {
7504
+ "description": "No content"
7505
+ },
7506
+ "default": {
7507
+ "description": "error",
7508
+ "schema": {
7509
+ "type": "object",
7510
+ "required": [
7511
+ "message"
7512
+ ],
7513
+ "properties": {
7514
+ "code": {
7515
+ "type": "integer",
7516
+ "format": "int64"
7517
+ },
7518
+ "message": {
7519
+ "type": "string",
7520
+ "x-nullable": false
7521
+ }
7522
+ }
7523
+ }
7524
+ }
7525
+ }
7526
+ }
7527
+ },
7367
7528
  "/builds/{build_id}": {
7368
7529
  "parameters": [
7369
7530
  {
@@ -10219,10 +10380,12 @@
10219
10380
  "type": "string"
10220
10381
  },
10221
10382
  "functions_dir": {
10222
- "type": "string"
10383
+ "type": "string",
10384
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
10223
10385
  },
10224
10386
  "cmd": {
10225
- "type": "string"
10387
+ "type": "string",
10388
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
10226
10389
  },
10227
10390
  "allowed_branches": {
10228
10391
  "type": "array",
@@ -10249,7 +10412,8 @@
10249
10412
  "type": "integer"
10250
10413
  },
10251
10414
  "stop_builds": {
10252
- "type": "boolean"
10415
+ "type": "boolean",
10416
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
10253
10417
  }
10254
10418
  }
10255
10419
  },
@@ -10303,10 +10467,12 @@
10303
10467
  "type": "string"
10304
10468
  },
10305
10469
  "functions_dir": {
10306
- "type": "string"
10470
+ "type": "string",
10471
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
10307
10472
  },
10308
10473
  "cmd": {
10309
- "type": "string"
10474
+ "type": "string",
10475
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
10310
10476
  },
10311
10477
  "allowed_branches": {
10312
10478
  "type": "array",
@@ -10333,7 +10499,8 @@
10333
10499
  "type": "integer"
10334
10500
  },
10335
10501
  "stop_builds": {
10336
- "type": "boolean"
10502
+ "type": "boolean",
10503
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
10337
10504
  }
10338
10505
  }
10339
10506
  }
@@ -10605,10 +10772,12 @@
10605
10772
  "type": "string"
10606
10773
  },
10607
10774
  "functions_dir": {
10608
- "type": "string"
10775
+ "type": "string",
10776
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
10609
10777
  },
10610
10778
  "cmd": {
10611
- "type": "string"
10779
+ "type": "string",
10780
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
10612
10781
  },
10613
10782
  "allowed_branches": {
10614
10783
  "type": "array",
@@ -10635,7 +10804,8 @@
10635
10804
  "type": "integer"
10636
10805
  },
10637
10806
  "stop_builds": {
10638
- "type": "boolean"
10807
+ "type": "boolean",
10808
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
10639
10809
  }
10640
10810
  }
10641
10811
  },
@@ -10973,10 +11143,12 @@
10973
11143
  "type": "string"
10974
11144
  },
10975
11145
  "functions_dir": {
10976
- "type": "string"
11146
+ "type": "string",
11147
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
10977
11148
  },
10978
11149
  "cmd": {
10979
- "type": "string"
11150
+ "type": "string",
11151
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
10980
11152
  },
10981
11153
  "allowed_branches": {
10982
11154
  "type": "array",
@@ -11003,7 +11175,8 @@
11003
11175
  "type": "integer"
11004
11176
  },
11005
11177
  "stop_builds": {
11006
- "type": "boolean"
11178
+ "type": "boolean",
11179
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
11007
11180
  }
11008
11181
  }
11009
11182
  },
@@ -16929,58 +17102,783 @@
16929
17102
  },
16930
17103
  "description": "Returns an AI Gateway token for a specific site"
16931
17104
  }
16932
- }
16933
- },
16934
- "definitions": {
16935
- "DeployValidationsReport": {
16936
- "type": "object",
16937
- "properties": {
16938
- "id": {
16939
- "type": "string",
16940
- "description": "The id of the deploy validations report"
16941
- },
16942
- "deploy_id": {
17105
+ },
17106
+ "/sites/{site_id}/database": {
17107
+ "parameters": [
17108
+ {
17109
+ "name": "site_id",
16943
17110
  "type": "string",
16944
- "description": "The id of the deploy"
16945
- },
16946
- "secret_scan_result": {
16947
- "type": "object",
16948
- "properties": {
16949
- "scannedFilesCount": {
16950
- "type": "integer",
16951
- "description": "The number of files scanned"
16952
- },
16953
- "secretsScanMatches": {
16954
- "type": "array",
16955
- "items": {
16956
- "type": "string"
16957
- },
16958
- "description": "The list of secrets scan matches"
17111
+ "in": "path",
17112
+ "required": true
17113
+ }
17114
+ ],
17115
+ "post": {
17116
+ "operationId": "createSiteDatabase",
17117
+ "tags": [
17118
+ "database"
17119
+ ],
17120
+ "description": "Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.",
17121
+ "consumes": [
17122
+ "application/json"
17123
+ ],
17124
+ "parameters": [
17125
+ {
17126
+ "name": "database",
17127
+ "in": "body",
17128
+ "schema": {
17129
+ "type": "object",
17130
+ "description": "Request body for creating a database",
17131
+ "properties": {
17132
+ "region": {
17133
+ "type": "string",
17134
+ "description": "The region where the database should be created. Defaults to the site's functions region if not specified."
17135
+ }
17136
+ }
16959
17137
  }
16960
17138
  }
16961
- }
16962
- }
16963
- },
16964
- "DeployValidationsReport_SecretScanResult": {
16965
- "type": "object",
16966
- "properties": {
16967
- "scannedFilesCount": {
16968
- "type": "integer",
16969
- "description": "The number of files scanned"
16970
- },
16971
- "secretsScanMatches": {
16972
- "type": "array",
16973
- "items": {
16974
- "type": "string"
16975
- },
16976
- "description": "The list of secrets scan matches"
16977
- }
16978
- }
16979
- },
16980
- "splitTestSetup": {
16981
- "type": "object",
16982
- "properties": {
16983
- "branch_tests": {
17139
+ ],
17140
+ "responses": {
17141
+ "200": {
17142
+ "description": "Database already exists",
17143
+ "schema": {
17144
+ "type": "object",
17145
+ "description": "Response containing the database connection string",
17146
+ "properties": {
17147
+ "connection_string": {
17148
+ "type": "string",
17149
+ "description": "The connection string for the database"
17150
+ }
17151
+ }
17152
+ }
17153
+ },
17154
+ "201": {
17155
+ "description": "Created",
17156
+ "schema": {
17157
+ "type": "object",
17158
+ "description": "Response containing the database connection string",
17159
+ "properties": {
17160
+ "connection_string": {
17161
+ "type": "string",
17162
+ "description": "The connection string for the database"
17163
+ }
17164
+ }
17165
+ }
17166
+ },
17167
+ "default": {
17168
+ "description": "error",
17169
+ "schema": {
17170
+ "type": "object",
17171
+ "required": [
17172
+ "message"
17173
+ ],
17174
+ "properties": {
17175
+ "code": {
17176
+ "type": "integer",
17177
+ "format": "int64"
17178
+ },
17179
+ "message": {
17180
+ "type": "string",
17181
+ "x-nullable": false
17182
+ }
17183
+ }
17184
+ }
17185
+ }
17186
+ }
17187
+ },
17188
+ "get": {
17189
+ "operationId": "getSiteDatabase",
17190
+ "tags": [
17191
+ "database"
17192
+ ],
17193
+ "description": "Returns the database connection string for the specified site.",
17194
+ "responses": {
17195
+ "200": {
17196
+ "description": "OK",
17197
+ "schema": {
17198
+ "type": "object",
17199
+ "description": "Response containing the database connection string",
17200
+ "properties": {
17201
+ "connection_string": {
17202
+ "type": "string",
17203
+ "description": "The connection string for the database"
17204
+ }
17205
+ }
17206
+ }
17207
+ },
17208
+ "default": {
17209
+ "description": "error",
17210
+ "schema": {
17211
+ "type": "object",
17212
+ "required": [
17213
+ "message"
17214
+ ],
17215
+ "properties": {
17216
+ "code": {
17217
+ "type": "integer",
17218
+ "format": "int64"
17219
+ },
17220
+ "message": {
17221
+ "type": "string",
17222
+ "x-nullable": false
17223
+ }
17224
+ }
17225
+ }
17226
+ }
17227
+ }
17228
+ },
17229
+ "delete": {
17230
+ "operationId": "deleteSiteDatabase",
17231
+ "tags": [
17232
+ "database"
17233
+ ],
17234
+ "description": "Deletes the database and all associated branches and snapshots for the specified site.",
17235
+ "responses": {
17236
+ "204": {
17237
+ "description": "Deleted"
17238
+ },
17239
+ "default": {
17240
+ "description": "error",
17241
+ "schema": {
17242
+ "type": "object",
17243
+ "required": [
17244
+ "message"
17245
+ ],
17246
+ "properties": {
17247
+ "code": {
17248
+ "type": "integer",
17249
+ "format": "int64"
17250
+ },
17251
+ "message": {
17252
+ "type": "string",
17253
+ "x-nullable": false
17254
+ }
17255
+ }
17256
+ }
17257
+ }
17258
+ }
17259
+ }
17260
+ },
17261
+ "/sites/{site_id}/database/branch": {
17262
+ "parameters": [
17263
+ {
17264
+ "name": "site_id",
17265
+ "type": "string",
17266
+ "in": "path",
17267
+ "required": true
17268
+ }
17269
+ ],
17270
+ "post": {
17271
+ "operationId": "createSiteDatabaseBranch",
17272
+ "tags": [
17273
+ "database"
17274
+ ],
17275
+ "description": "Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.",
17276
+ "consumes": [
17277
+ "application/json"
17278
+ ],
17279
+ "parameters": [
17280
+ {
17281
+ "name": "branch",
17282
+ "in": "body",
17283
+ "schema": {
17284
+ "type": "object",
17285
+ "description": "Request body for creating a database branch",
17286
+ "required": [
17287
+ "deploy_id"
17288
+ ],
17289
+ "properties": {
17290
+ "parent_branch_id": {
17291
+ "type": "string",
17292
+ "description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
17293
+ },
17294
+ "deploy_id": {
17295
+ "type": "string",
17296
+ "description": "The deploy ID to associate with this branch"
17297
+ }
17298
+ }
17299
+ },
17300
+ "required": true
17301
+ }
17302
+ ],
17303
+ "responses": {
17304
+ "200": {
17305
+ "description": "Branch already exists for this deploy",
17306
+ "schema": {
17307
+ "type": "object",
17308
+ "description": "Response containing the database branch connection string",
17309
+ "properties": {
17310
+ "connection_string": {
17311
+ "type": "string",
17312
+ "description": "The connection string for the database branch"
17313
+ }
17314
+ }
17315
+ }
17316
+ },
17317
+ "201": {
17318
+ "description": "Created",
17319
+ "schema": {
17320
+ "type": "object",
17321
+ "description": "Response containing the database branch connection string",
17322
+ "properties": {
17323
+ "connection_string": {
17324
+ "type": "string",
17325
+ "description": "The connection string for the database branch"
17326
+ }
17327
+ }
17328
+ }
17329
+ },
17330
+ "default": {
17331
+ "description": "error",
17332
+ "schema": {
17333
+ "type": "object",
17334
+ "required": [
17335
+ "message"
17336
+ ],
17337
+ "properties": {
17338
+ "code": {
17339
+ "type": "integer",
17340
+ "format": "int64"
17341
+ },
17342
+ "message": {
17343
+ "type": "string",
17344
+ "x-nullable": false
17345
+ }
17346
+ }
17347
+ }
17348
+ }
17349
+ }
17350
+ }
17351
+ },
17352
+ "/sites/{site_id}/database/branch/{deploy_id}": {
17353
+ "parameters": [
17354
+ {
17355
+ "name": "site_id",
17356
+ "type": "string",
17357
+ "in": "path",
17358
+ "required": true
17359
+ },
17360
+ {
17361
+ "name": "deploy_id",
17362
+ "type": "string",
17363
+ "in": "path",
17364
+ "required": true,
17365
+ "description": "The deploy ID associated with the database branch"
17366
+ }
17367
+ ],
17368
+ "get": {
17369
+ "operationId": "getSiteDatabaseBranch",
17370
+ "tags": [
17371
+ "database"
17372
+ ],
17373
+ "description": "Returns the database branch connection string for a specific deploy.",
17374
+ "responses": {
17375
+ "200": {
17376
+ "description": "OK",
17377
+ "schema": {
17378
+ "type": "object",
17379
+ "description": "Response containing the database branch connection string",
17380
+ "properties": {
17381
+ "connection_string": {
17382
+ "type": "string",
17383
+ "description": "The connection string for the database branch"
17384
+ }
17385
+ }
17386
+ }
17387
+ },
17388
+ "404": {
17389
+ "description": "Branch not found for this deploy"
17390
+ },
17391
+ "default": {
17392
+ "description": "error",
17393
+ "schema": {
17394
+ "type": "object",
17395
+ "required": [
17396
+ "message"
17397
+ ],
17398
+ "properties": {
17399
+ "code": {
17400
+ "type": "integer",
17401
+ "format": "int64"
17402
+ },
17403
+ "message": {
17404
+ "type": "string",
17405
+ "x-nullable": false
17406
+ }
17407
+ }
17408
+ }
17409
+ }
17410
+ }
17411
+ },
17412
+ "delete": {
17413
+ "operationId": "deleteSiteDatabaseBranch",
17414
+ "tags": [
17415
+ "database"
17416
+ ],
17417
+ "description": "Deletes a database branch associated with a deploy.",
17418
+ "responses": {
17419
+ "204": {
17420
+ "description": "Deleted"
17421
+ },
17422
+ "default": {
17423
+ "description": "error",
17424
+ "schema": {
17425
+ "type": "object",
17426
+ "required": [
17427
+ "message"
17428
+ ],
17429
+ "properties": {
17430
+ "code": {
17431
+ "type": "integer",
17432
+ "format": "int64"
17433
+ },
17434
+ "message": {
17435
+ "type": "string",
17436
+ "x-nullable": false
17437
+ }
17438
+ }
17439
+ }
17440
+ }
17441
+ }
17442
+ }
17443
+ },
17444
+ "/sites/{site_id}/database/snapshot": {
17445
+ "parameters": [
17446
+ {
17447
+ "name": "site_id",
17448
+ "type": "string",
17449
+ "in": "path",
17450
+ "required": true
17451
+ }
17452
+ ],
17453
+ "post": {
17454
+ "operationId": "createSiteDatabaseSnapshot",
17455
+ "tags": [
17456
+ "database"
17457
+ ],
17458
+ "description": "Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.",
17459
+ "consumes": [
17460
+ "application/json"
17461
+ ],
17462
+ "parameters": [
17463
+ {
17464
+ "name": "snapshot",
17465
+ "in": "body",
17466
+ "schema": {
17467
+ "type": "object",
17468
+ "description": "Request body for creating a database snapshot",
17469
+ "properties": {
17470
+ "branch_name": {
17471
+ "type": "string",
17472
+ "description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
17473
+ },
17474
+ "name": {
17475
+ "type": "string",
17476
+ "description": "An optional name for the snapshot"
17477
+ }
17478
+ }
17479
+ }
17480
+ }
17481
+ ],
17482
+ "responses": {
17483
+ "201": {
17484
+ "description": "Created",
17485
+ "schema": {
17486
+ "type": "object",
17487
+ "description": "A point-in-time snapshot of a database branch",
17488
+ "properties": {
17489
+ "id": {
17490
+ "type": "string",
17491
+ "description": "The unique identifier of the snapshot"
17492
+ },
17493
+ "timestamp": {
17494
+ "type": "string",
17495
+ "format": "dateTime",
17496
+ "description": "The timestamp when the snapshot was created"
17497
+ },
17498
+ "source_branch_id": {
17499
+ "type": "string",
17500
+ "description": "The ID of the branch that was snapshotted"
17501
+ }
17502
+ }
17503
+ }
17504
+ },
17505
+ "default": {
17506
+ "description": "error",
17507
+ "schema": {
17508
+ "type": "object",
17509
+ "required": [
17510
+ "message"
17511
+ ],
17512
+ "properties": {
17513
+ "code": {
17514
+ "type": "integer",
17515
+ "format": "int64"
17516
+ },
17517
+ "message": {
17518
+ "type": "string",
17519
+ "x-nullable": false
17520
+ }
17521
+ }
17522
+ }
17523
+ }
17524
+ }
17525
+ }
17526
+ },
17527
+ "/sites/{site_id}/database/snapshots": {
17528
+ "parameters": [
17529
+ {
17530
+ "name": "site_id",
17531
+ "type": "string",
17532
+ "in": "path",
17533
+ "required": true
17534
+ }
17535
+ ],
17536
+ "get": {
17537
+ "operationId": "listSiteDatabaseSnapshots",
17538
+ "tags": [
17539
+ "database"
17540
+ ],
17541
+ "description": "Returns all snapshots for the site's database.",
17542
+ "responses": {
17543
+ "200": {
17544
+ "description": "OK",
17545
+ "schema": {
17546
+ "type": "object",
17547
+ "description": "Response containing a list of database snapshots",
17548
+ "properties": {
17549
+ "snapshots": {
17550
+ "type": "array",
17551
+ "items": {
17552
+ "type": "object",
17553
+ "description": "A point-in-time snapshot of a database branch",
17554
+ "properties": {
17555
+ "id": {
17556
+ "type": "string",
17557
+ "description": "The unique identifier of the snapshot"
17558
+ },
17559
+ "timestamp": {
17560
+ "type": "string",
17561
+ "format": "dateTime",
17562
+ "description": "The timestamp when the snapshot was created"
17563
+ },
17564
+ "source_branch_id": {
17565
+ "type": "string",
17566
+ "description": "The ID of the branch that was snapshotted"
17567
+ }
17568
+ }
17569
+ },
17570
+ "description": "List of database snapshots"
17571
+ }
17572
+ }
17573
+ }
17574
+ },
17575
+ "default": {
17576
+ "description": "error",
17577
+ "schema": {
17578
+ "type": "object",
17579
+ "required": [
17580
+ "message"
17581
+ ],
17582
+ "properties": {
17583
+ "code": {
17584
+ "type": "integer",
17585
+ "format": "int64"
17586
+ },
17587
+ "message": {
17588
+ "type": "string",
17589
+ "x-nullable": false
17590
+ }
17591
+ }
17592
+ }
17593
+ }
17594
+ }
17595
+ }
17596
+ },
17597
+ "/sites/{site_id}/database/snapshot/{snapshot_id}": {
17598
+ "parameters": [
17599
+ {
17600
+ "name": "site_id",
17601
+ "type": "string",
17602
+ "in": "path",
17603
+ "required": true
17604
+ },
17605
+ {
17606
+ "name": "snapshot_id",
17607
+ "type": "string",
17608
+ "in": "path",
17609
+ "required": true,
17610
+ "description": "The snapshot ID"
17611
+ }
17612
+ ],
17613
+ "delete": {
17614
+ "operationId": "deleteSiteDatabaseSnapshot",
17615
+ "tags": [
17616
+ "database"
17617
+ ],
17618
+ "description": "Deletes a database snapshot.",
17619
+ "responses": {
17620
+ "204": {
17621
+ "description": "Deleted"
17622
+ },
17623
+ "default": {
17624
+ "description": "error",
17625
+ "schema": {
17626
+ "type": "object",
17627
+ "required": [
17628
+ "message"
17629
+ ],
17630
+ "properties": {
17631
+ "code": {
17632
+ "type": "integer",
17633
+ "format": "int64"
17634
+ },
17635
+ "message": {
17636
+ "type": "string",
17637
+ "x-nullable": false
17638
+ }
17639
+ }
17640
+ }
17641
+ }
17642
+ }
17643
+ }
17644
+ },
17645
+ "/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
17646
+ "parameters": [
17647
+ {
17648
+ "name": "site_id",
17649
+ "type": "string",
17650
+ "in": "path",
17651
+ "required": true
17652
+ },
17653
+ {
17654
+ "name": "snapshot_id",
17655
+ "type": "string",
17656
+ "in": "path",
17657
+ "required": true,
17658
+ "description": "The snapshot ID to restore"
17659
+ }
17660
+ ],
17661
+ "post": {
17662
+ "operationId": "restoreSiteDatabaseSnapshot",
17663
+ "tags": [
17664
+ "database"
17665
+ ],
17666
+ "description": "Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.",
17667
+ "consumes": [
17668
+ "application/json"
17669
+ ],
17670
+ "parameters": [
17671
+ {
17672
+ "name": "restore",
17673
+ "in": "body",
17674
+ "schema": {
17675
+ "type": "object",
17676
+ "description": "Request body for restoring a database snapshot",
17677
+ "properties": {
17678
+ "branch_name": {
17679
+ "type": "string",
17680
+ "description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
17681
+ }
17682
+ }
17683
+ }
17684
+ }
17685
+ ],
17686
+ "responses": {
17687
+ "200": {
17688
+ "description": "OK"
17689
+ },
17690
+ "default": {
17691
+ "description": "error",
17692
+ "schema": {
17693
+ "type": "object",
17694
+ "required": [
17695
+ "message"
17696
+ ],
17697
+ "properties": {
17698
+ "code": {
17699
+ "type": "integer",
17700
+ "format": "int64"
17701
+ },
17702
+ "message": {
17703
+ "type": "string",
17704
+ "x-nullable": false
17705
+ }
17706
+ }
17707
+ }
17708
+ }
17709
+ }
17710
+ }
17711
+ }
17712
+ },
17713
+ "definitions": {
17714
+ "createDatabaseRequest": {
17715
+ "type": "object",
17716
+ "description": "Request body for creating a database",
17717
+ "properties": {
17718
+ "region": {
17719
+ "type": "string",
17720
+ "description": "The region where the database should be created. Defaults to the site's functions region if not specified."
17721
+ }
17722
+ }
17723
+ },
17724
+ "databaseResponse": {
17725
+ "type": "object",
17726
+ "description": "Response containing the database connection string",
17727
+ "properties": {
17728
+ "connection_string": {
17729
+ "type": "string",
17730
+ "description": "The connection string for the database"
17731
+ }
17732
+ }
17733
+ },
17734
+ "createDatabaseBranchRequest": {
17735
+ "type": "object",
17736
+ "description": "Request body for creating a database branch",
17737
+ "required": [
17738
+ "deploy_id"
17739
+ ],
17740
+ "properties": {
17741
+ "parent_branch_id": {
17742
+ "type": "string",
17743
+ "description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
17744
+ },
17745
+ "deploy_id": {
17746
+ "type": "string",
17747
+ "description": "The deploy ID to associate with this branch"
17748
+ }
17749
+ }
17750
+ },
17751
+ "databaseBranchResponse": {
17752
+ "type": "object",
17753
+ "description": "Response containing the database branch connection string",
17754
+ "properties": {
17755
+ "connection_string": {
17756
+ "type": "string",
17757
+ "description": "The connection string for the database branch"
17758
+ }
17759
+ }
17760
+ },
17761
+ "createDatabaseSnapshotRequest": {
17762
+ "type": "object",
17763
+ "description": "Request body for creating a database snapshot",
17764
+ "properties": {
17765
+ "branch_name": {
17766
+ "type": "string",
17767
+ "description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
17768
+ },
17769
+ "name": {
17770
+ "type": "string",
17771
+ "description": "An optional name for the snapshot"
17772
+ }
17773
+ }
17774
+ },
17775
+ "databaseSnapshot": {
17776
+ "type": "object",
17777
+ "description": "A point-in-time snapshot of a database branch",
17778
+ "properties": {
17779
+ "id": {
17780
+ "type": "string",
17781
+ "description": "The unique identifier of the snapshot"
17782
+ },
17783
+ "timestamp": {
17784
+ "type": "string",
17785
+ "format": "dateTime",
17786
+ "description": "The timestamp when the snapshot was created"
17787
+ },
17788
+ "source_branch_id": {
17789
+ "type": "string",
17790
+ "description": "The ID of the branch that was snapshotted"
17791
+ }
17792
+ }
17793
+ },
17794
+ "databaseSnapshotsResponse": {
17795
+ "type": "object",
17796
+ "description": "Response containing a list of database snapshots",
17797
+ "properties": {
17798
+ "snapshots": {
17799
+ "type": "array",
17800
+ "items": {
17801
+ "type": "object",
17802
+ "description": "A point-in-time snapshot of a database branch",
17803
+ "properties": {
17804
+ "id": {
17805
+ "type": "string",
17806
+ "description": "The unique identifier of the snapshot"
17807
+ },
17808
+ "timestamp": {
17809
+ "type": "string",
17810
+ "format": "dateTime",
17811
+ "description": "The timestamp when the snapshot was created"
17812
+ },
17813
+ "source_branch_id": {
17814
+ "type": "string",
17815
+ "description": "The ID of the branch that was snapshotted"
17816
+ }
17817
+ }
17818
+ },
17819
+ "description": "List of database snapshots"
17820
+ }
17821
+ }
17822
+ },
17823
+ "restoreDatabaseSnapshotRequest": {
17824
+ "type": "object",
17825
+ "description": "Request body for restoring a database snapshot",
17826
+ "properties": {
17827
+ "branch_name": {
17828
+ "type": "string",
17829
+ "description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
17830
+ }
17831
+ }
17832
+ },
17833
+ "DeployValidationsReport": {
17834
+ "type": "object",
17835
+ "properties": {
17836
+ "id": {
17837
+ "type": "string",
17838
+ "description": "The id of the deploy validations report"
17839
+ },
17840
+ "deploy_id": {
17841
+ "type": "string",
17842
+ "description": "The id of the deploy"
17843
+ },
17844
+ "secret_scan_result": {
17845
+ "type": "object",
17846
+ "properties": {
17847
+ "scannedFilesCount": {
17848
+ "type": "integer",
17849
+ "description": "The number of files scanned"
17850
+ },
17851
+ "secretsScanMatches": {
17852
+ "type": "array",
17853
+ "items": {
17854
+ "type": "string"
17855
+ },
17856
+ "description": "The list of secrets scan matches"
17857
+ }
17858
+ }
17859
+ }
17860
+ }
17861
+ },
17862
+ "DeployValidationsReport_SecretScanResult": {
17863
+ "type": "object",
17864
+ "properties": {
17865
+ "scannedFilesCount": {
17866
+ "type": "integer",
17867
+ "description": "The number of files scanned"
17868
+ },
17869
+ "secretsScanMatches": {
17870
+ "type": "array",
17871
+ "items": {
17872
+ "type": "string"
17873
+ },
17874
+ "description": "The list of secrets scan matches"
17875
+ }
17876
+ }
17877
+ },
17878
+ "splitTestSetup": {
17879
+ "type": "object",
17880
+ "properties": {
17881
+ "branch_tests": {
16984
17882
  "type": "object"
16985
17883
  }
16986
17884
  }
@@ -17413,10 +18311,12 @@
17413
18311
  "type": "string"
17414
18312
  },
17415
18313
  "functions_dir": {
17416
- "type": "string"
18314
+ "type": "string",
18315
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
17417
18316
  },
17418
18317
  "cmd": {
17419
- "type": "string"
18318
+ "type": "string",
18319
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
17420
18320
  },
17421
18321
  "allowed_branches": {
17422
18322
  "type": "array",
@@ -17443,7 +18343,8 @@
17443
18343
  "type": "integer"
17444
18344
  },
17445
18345
  "stop_builds": {
17446
- "type": "boolean"
18346
+ "type": "boolean",
18347
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
17447
18348
  }
17448
18349
  }
17449
18350
  },
@@ -17723,10 +18624,12 @@
17723
18624
  "type": "string"
17724
18625
  },
17725
18626
  "functions_dir": {
17726
- "type": "string"
18627
+ "type": "string",
18628
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
17727
18629
  },
17728
18630
  "cmd": {
17729
- "type": "string"
18631
+ "type": "string",
18632
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
17730
18633
  },
17731
18634
  "allowed_branches": {
17732
18635
  "type": "array",
@@ -17753,7 +18656,8 @@
17753
18656
  "type": "integer"
17754
18657
  },
17755
18658
  "stop_builds": {
17756
- "type": "boolean"
18659
+ "type": "boolean",
18660
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
17757
18661
  }
17758
18662
  }
17759
18663
  },
@@ -17807,10 +18711,12 @@
17807
18711
  "type": "string"
17808
18712
  },
17809
18713
  "functions_dir": {
17810
- "type": "string"
18714
+ "type": "string",
18715
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
17811
18716
  },
17812
18717
  "cmd": {
17813
- "type": "string"
18718
+ "type": "string",
18719
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
17814
18720
  },
17815
18721
  "allowed_branches": {
17816
18722
  "type": "array",
@@ -17837,7 +18743,8 @@
17837
18743
  "type": "integer"
17838
18744
  },
17839
18745
  "stop_builds": {
17840
- "type": "boolean"
18746
+ "type": "boolean",
18747
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
17841
18748
  }
17842
18749
  }
17843
18750
  }
@@ -17867,10 +18774,12 @@
17867
18774
  "type": "string"
17868
18775
  },
17869
18776
  "functions_dir": {
17870
- "type": "string"
18777
+ "type": "string",
18778
+ "description": "The directory where Netlify can find your compiled functions to deploy them. Defaults to netlify/functions if not set. You can also define and override this setting in your project’s netlify.toml file."
17871
18779
  },
17872
18780
  "cmd": {
17873
- "type": "string"
18781
+ "type": "string",
18782
+ "description": "The build command to run. This is the command that Netlify runs to build your site. If a site has a netlify.toml file with a build command it will override this value."
17874
18783
  },
17875
18784
  "allowed_branches": {
17876
18785
  "type": "array",
@@ -17897,7 +18806,8 @@
17897
18806
  "type": "integer"
17898
18807
  },
17899
18808
  "stop_builds": {
17900
- "type": "boolean"
18809
+ "type": "boolean",
18810
+ "description": "When true, Netlify will not build your project automatically. You can build locally via the CLI and then publish new deploys manually via the CLI or the API."
17901
18811
  }
17902
18812
  }
17903
18813
  },
@@ -18383,9 +19293,16 @@
18383
19293
  },
18384
19294
  "deployFiles": {
18385
19295
  "type": "object",
19296
+ "description": "Deploy files can be provided in two ways:\n1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR\n2. As a zip file using one of these methods:\n - Set Content-Type to 'application/zip' and send the zip file as the raw request body\n - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'\n",
18386
19297
  "properties": {
18387
19298
  "files": {
18388
- "type": "object"
19299
+ "type": "object",
19300
+ "description": "A hash mapping file paths to SHA1 digests of the file contents."
19301
+ },
19302
+ "zip": {
19303
+ "type": "string",
19304
+ "format": "binary",
19305
+ "description": "A zip file containing the site files to deploy. Alternative to 'files'.\nTo use this field, set Content-Type to 'application/json' and include the zip content here.\nAlternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).\n"
18389
19306
  },
18390
19307
  "draft": {
18391
19308
  "type": "boolean"
@@ -20532,6 +21449,12 @@
20532
21449
  "function"
20533
21450
  ]
20534
21451
  },
21452
+ {
21453
+ "name": "Database",
21454
+ "tags": [
21455
+ "database"
21456
+ ]
21457
+ },
20535
21458
  {
20536
21459
  "name": "Forms",
20537
21460
  "tags": [
@@ -20689,6 +21612,10 @@
20689
21612
  {
20690
21613
  "name": "devServerHook",
20691
21614
  "x-displayName": "Dev server hook"
21615
+ },
21616
+ {
21617
+ "name": "database",
21618
+ "x-displayName": "Database"
20692
21619
  }
20693
21620
  ]
20694
21621
  }