@netlify/open-api 2.44.0 → 2.46.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/index.d.ts +116 -3
- package/dist/swagger.json +262 -57
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -300,7 +300,11 @@ export interface paths {
|
|
|
300
300
|
/**
|
|
301
301
|
* API Reference: {@link https://open-api.netlify.com/#tag/build/operation/createSiteBuild | `createSiteBuild`}
|
|
302
302
|
*
|
|
303
|
-
* 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.
|
|
303
|
+
* 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.
|
|
304
|
+
*
|
|
305
|
+
* Files for build can be uploaded as a zipped site using one of these methods:
|
|
306
|
+
* 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
307
|
+
* 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
|
|
304
308
|
*/
|
|
305
309
|
post: operations["createSiteBuild"];
|
|
306
310
|
parameters: {
|
|
@@ -336,6 +340,32 @@ export interface paths {
|
|
|
336
340
|
};
|
|
337
341
|
};
|
|
338
342
|
};
|
|
343
|
+
"/sites/{site_id}/enable": {
|
|
344
|
+
/**
|
|
345
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/enableSite | `enableSite`}
|
|
346
|
+
*
|
|
347
|
+
* 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.
|
|
348
|
+
*/
|
|
349
|
+
put: operations["enableSite"];
|
|
350
|
+
parameters: {
|
|
351
|
+
path: {
|
|
352
|
+
site_id: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
"/sites/{site_id}/disable": {
|
|
357
|
+
/**
|
|
358
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/disableSite | `disableSite`}
|
|
359
|
+
*
|
|
360
|
+
* Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
|
|
361
|
+
*/
|
|
362
|
+
put: operations["disableSite"];
|
|
363
|
+
parameters: {
|
|
364
|
+
path: {
|
|
365
|
+
site_id: string;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
};
|
|
339
369
|
"/builds/{build_id}": {
|
|
340
370
|
/** API Reference: {@link https://open-api.netlify.com/#tag/build/operation/getSiteBuild | `getSiteBuild`} */
|
|
341
371
|
get: operations["getSiteBuild"];
|
|
@@ -1012,7 +1042,9 @@ export interface components {
|
|
|
1012
1042
|
repo_path?: string;
|
|
1013
1043
|
repo_branch?: string;
|
|
1014
1044
|
dir?: string;
|
|
1045
|
+
/** @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. */
|
|
1015
1046
|
functions_dir?: string;
|
|
1047
|
+
/** @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. */
|
|
1016
1048
|
cmd?: string;
|
|
1017
1049
|
allowed_branches?: string[];
|
|
1018
1050
|
public_repo?: boolean;
|
|
@@ -1020,6 +1052,7 @@ export interface components {
|
|
|
1020
1052
|
repo_url?: string;
|
|
1021
1053
|
env?: { [key: string]: string };
|
|
1022
1054
|
installation_id?: number;
|
|
1055
|
+
/** @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. */
|
|
1023
1056
|
stop_builds?: boolean;
|
|
1024
1057
|
};
|
|
1025
1058
|
submission: {
|
|
@@ -1068,6 +1101,7 @@ export interface components {
|
|
|
1068
1101
|
context?:
|
|
1069
1102
|
| "all"
|
|
1070
1103
|
| "dev"
|
|
1104
|
+
| "dev-server"
|
|
1071
1105
|
| "branch-deploy"
|
|
1072
1106
|
| "deploy-preview"
|
|
1073
1107
|
| "production"
|
|
@@ -1177,8 +1211,23 @@ export interface components {
|
|
|
1177
1211
|
skew_protection_token?: string;
|
|
1178
1212
|
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
1179
1213
|
};
|
|
1214
|
+
/**
|
|
1215
|
+
* @description Deploy files can be provided in two ways:
|
|
1216
|
+
* 1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR
|
|
1217
|
+
* 2. As a zip file using one of these methods:
|
|
1218
|
+
* - Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
1219
|
+
* - Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'
|
|
1220
|
+
*/
|
|
1180
1221
|
deployFiles: {
|
|
1222
|
+
/** @description A hash mapping file paths to SHA1 digests of the file contents. */
|
|
1181
1223
|
files?: { [key: string]: unknown };
|
|
1224
|
+
/**
|
|
1225
|
+
* Format: binary
|
|
1226
|
+
* @description A zip file containing the site files to deploy. Alternative to 'files'.
|
|
1227
|
+
* To use this field, set Content-Type to 'application/json' and include the zip content here.
|
|
1228
|
+
* Alternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).
|
|
1229
|
+
*/
|
|
1230
|
+
zip?: string;
|
|
1182
1231
|
draft?: boolean;
|
|
1183
1232
|
async?: boolean;
|
|
1184
1233
|
functions?: { [key: string]: unknown };
|
|
@@ -1959,6 +2008,7 @@ export interface operations {
|
|
|
1959
2008
|
context_name?:
|
|
1960
2009
|
| "all"
|
|
1961
2010
|
| "dev"
|
|
2011
|
+
| "dev-server"
|
|
1962
2012
|
| "branch-deploy"
|
|
1963
2013
|
| "deploy-preview"
|
|
1964
2014
|
| "production";
|
|
@@ -2029,6 +2079,7 @@ export interface operations {
|
|
|
2029
2079
|
context_name?:
|
|
2030
2080
|
| "all"
|
|
2031
2081
|
| "dev"
|
|
2082
|
+
| "dev-server"
|
|
2032
2083
|
| "branch-deploy"
|
|
2033
2084
|
| "deploy-preview"
|
|
2034
2085
|
| "production";
|
|
@@ -2180,6 +2231,7 @@ export interface operations {
|
|
|
2180
2231
|
context?:
|
|
2181
2232
|
| "all"
|
|
2182
2233
|
| "dev"
|
|
2234
|
+
| "dev-server"
|
|
2183
2235
|
| "branch-deploy"
|
|
2184
2236
|
| "deploy-preview"
|
|
2185
2237
|
| "production"
|
|
@@ -2850,7 +2902,11 @@ export interface operations {
|
|
|
2850
2902
|
/**
|
|
2851
2903
|
* API Reference: {@link https://open-api.netlify.com/#tag/build/operation/createSiteBuild | `createSiteBuild`}
|
|
2852
2904
|
*
|
|
2853
|
-
* 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.
|
|
2905
|
+
* 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.
|
|
2906
|
+
*
|
|
2907
|
+
* Files for build can be uploaded as a zipped site using one of these methods:
|
|
2908
|
+
* 1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
|
|
2909
|
+
* 2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
|
|
2854
2910
|
*/
|
|
2855
2911
|
createSiteBuild: {
|
|
2856
2912
|
parameters: {
|
|
@@ -2858,7 +2914,7 @@ export interface operations {
|
|
|
2858
2914
|
site_id: string;
|
|
2859
2915
|
};
|
|
2860
2916
|
query: {
|
|
2861
|
-
/**
|
|
2917
|
+
/** 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 */
|
|
2862
2918
|
branch?: string;
|
|
2863
2919
|
/** Whether to clear the build cache before building */
|
|
2864
2920
|
clear_cache?: boolean;
|
|
@@ -2885,6 +2941,19 @@ export interface operations {
|
|
|
2885
2941
|
422: unknown;
|
|
2886
2942
|
default: components["responses"]["error"];
|
|
2887
2943
|
};
|
|
2944
|
+
requestBody: {
|
|
2945
|
+
content: {
|
|
2946
|
+
"multipart/form-data": {
|
|
2947
|
+
/**
|
|
2948
|
+
* Format: binary
|
|
2949
|
+
* @description A zip file containing the site files to build.
|
|
2950
|
+
* Only used with Content-Type 'multipart/form-data'.
|
|
2951
|
+
* Alternatively, set Content-Type to 'application/zip' and send the zip as the raw request body (no 'zip' parameter needed).
|
|
2952
|
+
*/
|
|
2953
|
+
zip?: string;
|
|
2954
|
+
};
|
|
2955
|
+
};
|
|
2956
|
+
};
|
|
2888
2957
|
};
|
|
2889
2958
|
/** API Reference: {@link https://open-api.netlify.com/#tag/deployedBranch/operation/listSiteDeployedBranches | `listSiteDeployedBranches`} */
|
|
2890
2959
|
listSiteDeployedBranches: {
|
|
@@ -2930,6 +2999,50 @@ export interface operations {
|
|
|
2930
2999
|
404: unknown;
|
|
2931
3000
|
};
|
|
2932
3001
|
};
|
|
3002
|
+
/**
|
|
3003
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/enableSite | `enableSite`}
|
|
3004
|
+
*
|
|
3005
|
+
* 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.
|
|
3006
|
+
*/
|
|
3007
|
+
enableSite: {
|
|
3008
|
+
parameters: {
|
|
3009
|
+
path: {
|
|
3010
|
+
site_id: string;
|
|
3011
|
+
};
|
|
3012
|
+
};
|
|
3013
|
+
responses: {
|
|
3014
|
+
/** No content */
|
|
3015
|
+
204: never;
|
|
3016
|
+
/** Cannot enable this site */
|
|
3017
|
+
422: {
|
|
3018
|
+
content: {
|
|
3019
|
+
"application/json": components["schemas"]["error"];
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
default: components["responses"]["error"];
|
|
3023
|
+
};
|
|
3024
|
+
};
|
|
3025
|
+
/**
|
|
3026
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/site/operation/disableSite | `disableSite`}
|
|
3027
|
+
*
|
|
3028
|
+
* Disables a site, preventing it from serving content. The site can be re-enabled later using the enable endpoint.
|
|
3029
|
+
*/
|
|
3030
|
+
disableSite: {
|
|
3031
|
+
parameters: {
|
|
3032
|
+
path: {
|
|
3033
|
+
site_id: string;
|
|
3034
|
+
};
|
|
3035
|
+
query: {
|
|
3036
|
+
/** Reason for disabling the site */
|
|
3037
|
+
reason: string;
|
|
3038
|
+
};
|
|
3039
|
+
};
|
|
3040
|
+
responses: {
|
|
3041
|
+
/** No content */
|
|
3042
|
+
204: never;
|
|
3043
|
+
default: components["responses"]["error"];
|
|
3044
|
+
};
|
|
3045
|
+
};
|
|
2933
3046
|
/** API Reference: {@link https://open-api.netlify.com/#tag/build/operation/getSiteBuild | `getSiteBuild`} */
|
|
2934
3047
|
getSiteBuild: {
|
|
2935
3048
|
parameters: {
|
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.46.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
|
},
|
|
@@ -2504,6 +2528,7 @@
|
|
|
2504
2528
|
"enum": [
|
|
2505
2529
|
"all",
|
|
2506
2530
|
"dev",
|
|
2531
|
+
"dev-server",
|
|
2507
2532
|
"branch-deploy",
|
|
2508
2533
|
"deploy-preview",
|
|
2509
2534
|
"production"
|
|
@@ -2578,6 +2603,7 @@
|
|
|
2578
2603
|
"enum": [
|
|
2579
2604
|
"all",
|
|
2580
2605
|
"dev",
|
|
2606
|
+
"dev-server",
|
|
2581
2607
|
"branch-deploy",
|
|
2582
2608
|
"deploy-preview",
|
|
2583
2609
|
"production",
|
|
@@ -2709,6 +2735,7 @@
|
|
|
2709
2735
|
"enum": [
|
|
2710
2736
|
"all",
|
|
2711
2737
|
"dev",
|
|
2738
|
+
"dev-server",
|
|
2712
2739
|
"branch-deploy",
|
|
2713
2740
|
"deploy-preview",
|
|
2714
2741
|
"production",
|
|
@@ -2793,6 +2820,7 @@
|
|
|
2793
2820
|
"enum": [
|
|
2794
2821
|
"all",
|
|
2795
2822
|
"dev",
|
|
2823
|
+
"dev-server",
|
|
2796
2824
|
"branch-deploy",
|
|
2797
2825
|
"deploy-preview",
|
|
2798
2826
|
"production",
|
|
@@ -2888,6 +2916,7 @@
|
|
|
2888
2916
|
"enum": [
|
|
2889
2917
|
"all",
|
|
2890
2918
|
"dev",
|
|
2919
|
+
"dev-server",
|
|
2891
2920
|
"branch-deploy",
|
|
2892
2921
|
"deploy-preview",
|
|
2893
2922
|
"production"
|
|
@@ -2960,6 +2989,7 @@
|
|
|
2960
2989
|
"enum": [
|
|
2961
2990
|
"all",
|
|
2962
2991
|
"dev",
|
|
2992
|
+
"dev-server",
|
|
2963
2993
|
"branch-deploy",
|
|
2964
2994
|
"deploy-preview",
|
|
2965
2995
|
"production",
|
|
@@ -3113,6 +3143,7 @@
|
|
|
3113
3143
|
"enum": [
|
|
3114
3144
|
"all",
|
|
3115
3145
|
"dev",
|
|
3146
|
+
"dev-server",
|
|
3116
3147
|
"branch-deploy",
|
|
3117
3148
|
"deploy-preview",
|
|
3118
3149
|
"production",
|
|
@@ -3255,6 +3286,7 @@
|
|
|
3255
3286
|
"enum": [
|
|
3256
3287
|
"all",
|
|
3257
3288
|
"dev",
|
|
3289
|
+
"dev-server",
|
|
3258
3290
|
"branch-deploy",
|
|
3259
3291
|
"deploy-preview",
|
|
3260
3292
|
"production",
|
|
@@ -3329,6 +3361,7 @@
|
|
|
3329
3361
|
"enum": [
|
|
3330
3362
|
"all",
|
|
3331
3363
|
"dev",
|
|
3364
|
+
"dev-server",
|
|
3332
3365
|
"branch-deploy",
|
|
3333
3366
|
"deploy-preview",
|
|
3334
3367
|
"production",
|
|
@@ -3445,6 +3478,7 @@
|
|
|
3445
3478
|
"enum": [
|
|
3446
3479
|
"all",
|
|
3447
3480
|
"dev",
|
|
3481
|
+
"dev-server",
|
|
3448
3482
|
"branch-deploy",
|
|
3449
3483
|
"deploy-preview",
|
|
3450
3484
|
"production",
|
|
@@ -3507,6 +3541,7 @@
|
|
|
3507
3541
|
"enum": [
|
|
3508
3542
|
"all",
|
|
3509
3543
|
"dev",
|
|
3544
|
+
"dev-server",
|
|
3510
3545
|
"branch-deploy",
|
|
3511
3546
|
"deploy-preview",
|
|
3512
3547
|
"production",
|
|
@@ -5585,9 +5620,16 @@
|
|
|
5585
5620
|
"in": "body",
|
|
5586
5621
|
"schema": {
|
|
5587
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",
|
|
5588
5624
|
"properties": {
|
|
5589
5625
|
"files": {
|
|
5590
|
-
"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"
|
|
5591
5633
|
},
|
|
5592
5634
|
"draft": {
|
|
5593
5635
|
"type": "boolean"
|
|
@@ -6090,9 +6132,16 @@
|
|
|
6090
6132
|
"in": "body",
|
|
6091
6133
|
"schema": {
|
|
6092
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",
|
|
6093
6136
|
"properties": {
|
|
6094
6137
|
"files": {
|
|
6095
|
-
"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"
|
|
6096
6145
|
},
|
|
6097
6146
|
"draft": {
|
|
6098
6147
|
"type": "boolean"
|
|
@@ -6857,11 +6906,14 @@
|
|
|
6857
6906
|
"tags": [
|
|
6858
6907
|
"build"
|
|
6859
6908
|
],
|
|
6860
|
-
"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
|
|
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
|
+
],
|
|
6861
6913
|
"parameters": [
|
|
6862
6914
|
{
|
|
6863
6915
|
"name": "branch",
|
|
6864
|
-
"description": "
|
|
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",
|
|
6865
6917
|
"required": false,
|
|
6866
6918
|
"in": "query",
|
|
6867
6919
|
"type": "string"
|
|
@@ -6893,6 +6945,13 @@
|
|
|
6893
6945
|
"required": false,
|
|
6894
6946
|
"in": "query",
|
|
6895
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"
|
|
6896
6955
|
}
|
|
6897
6956
|
],
|
|
6898
6957
|
"responses": {
|
|
@@ -7286,10 +7345,12 @@
|
|
|
7286
7345
|
"type": "string"
|
|
7287
7346
|
},
|
|
7288
7347
|
"functions_dir": {
|
|
7289
|
-
"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."
|
|
7290
7350
|
},
|
|
7291
7351
|
"cmd": {
|
|
7292
|
-
"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."
|
|
7293
7354
|
},
|
|
7294
7355
|
"allowed_branches": {
|
|
7295
7356
|
"type": "array",
|
|
@@ -7316,7 +7377,8 @@
|
|
|
7316
7377
|
"type": "integer"
|
|
7317
7378
|
},
|
|
7318
7379
|
"stop_builds": {
|
|
7319
|
-
"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."
|
|
7320
7382
|
}
|
|
7321
7383
|
}
|
|
7322
7384
|
},
|
|
@@ -7353,6 +7415,116 @@
|
|
|
7353
7415
|
}
|
|
7354
7416
|
}
|
|
7355
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
|
+
},
|
|
7356
7528
|
"/builds/{build_id}": {
|
|
7357
7529
|
"parameters": [
|
|
7358
7530
|
{
|
|
@@ -10208,10 +10380,12 @@
|
|
|
10208
10380
|
"type": "string"
|
|
10209
10381
|
},
|
|
10210
10382
|
"functions_dir": {
|
|
10211
|
-
"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."
|
|
10212
10385
|
},
|
|
10213
10386
|
"cmd": {
|
|
10214
|
-
"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."
|
|
10215
10389
|
},
|
|
10216
10390
|
"allowed_branches": {
|
|
10217
10391
|
"type": "array",
|
|
@@ -10238,7 +10412,8 @@
|
|
|
10238
10412
|
"type": "integer"
|
|
10239
10413
|
},
|
|
10240
10414
|
"stop_builds": {
|
|
10241
|
-
"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."
|
|
10242
10417
|
}
|
|
10243
10418
|
}
|
|
10244
10419
|
},
|
|
@@ -10292,10 +10467,12 @@
|
|
|
10292
10467
|
"type": "string"
|
|
10293
10468
|
},
|
|
10294
10469
|
"functions_dir": {
|
|
10295
|
-
"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."
|
|
10296
10472
|
},
|
|
10297
10473
|
"cmd": {
|
|
10298
|
-
"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."
|
|
10299
10476
|
},
|
|
10300
10477
|
"allowed_branches": {
|
|
10301
10478
|
"type": "array",
|
|
@@ -10322,7 +10499,8 @@
|
|
|
10322
10499
|
"type": "integer"
|
|
10323
10500
|
},
|
|
10324
10501
|
"stop_builds": {
|
|
10325
|
-
"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."
|
|
10326
10504
|
}
|
|
10327
10505
|
}
|
|
10328
10506
|
}
|
|
@@ -10594,10 +10772,12 @@
|
|
|
10594
10772
|
"type": "string"
|
|
10595
10773
|
},
|
|
10596
10774
|
"functions_dir": {
|
|
10597
|
-
"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."
|
|
10598
10777
|
},
|
|
10599
10778
|
"cmd": {
|
|
10600
|
-
"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."
|
|
10601
10781
|
},
|
|
10602
10782
|
"allowed_branches": {
|
|
10603
10783
|
"type": "array",
|
|
@@ -10624,7 +10804,8 @@
|
|
|
10624
10804
|
"type": "integer"
|
|
10625
10805
|
},
|
|
10626
10806
|
"stop_builds": {
|
|
10627
|
-
"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."
|
|
10628
10809
|
}
|
|
10629
10810
|
}
|
|
10630
10811
|
},
|
|
@@ -10962,10 +11143,12 @@
|
|
|
10962
11143
|
"type": "string"
|
|
10963
11144
|
},
|
|
10964
11145
|
"functions_dir": {
|
|
10965
|
-
"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."
|
|
10966
11148
|
},
|
|
10967
11149
|
"cmd": {
|
|
10968
|
-
"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."
|
|
10969
11152
|
},
|
|
10970
11153
|
"allowed_branches": {
|
|
10971
11154
|
"type": "array",
|
|
@@ -10992,7 +11175,8 @@
|
|
|
10992
11175
|
"type": "integer"
|
|
10993
11176
|
},
|
|
10994
11177
|
"stop_builds": {
|
|
10995
|
-
"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."
|
|
10996
11180
|
}
|
|
10997
11181
|
}
|
|
10998
11182
|
},
|
|
@@ -17402,10 +17586,12 @@
|
|
|
17402
17586
|
"type": "string"
|
|
17403
17587
|
},
|
|
17404
17588
|
"functions_dir": {
|
|
17405
|
-
"type": "string"
|
|
17589
|
+
"type": "string",
|
|
17590
|
+
"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."
|
|
17406
17591
|
},
|
|
17407
17592
|
"cmd": {
|
|
17408
|
-
"type": "string"
|
|
17593
|
+
"type": "string",
|
|
17594
|
+
"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."
|
|
17409
17595
|
},
|
|
17410
17596
|
"allowed_branches": {
|
|
17411
17597
|
"type": "array",
|
|
@@ -17432,7 +17618,8 @@
|
|
|
17432
17618
|
"type": "integer"
|
|
17433
17619
|
},
|
|
17434
17620
|
"stop_builds": {
|
|
17435
|
-
"type": "boolean"
|
|
17621
|
+
"type": "boolean",
|
|
17622
|
+
"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."
|
|
17436
17623
|
}
|
|
17437
17624
|
}
|
|
17438
17625
|
},
|
|
@@ -17712,10 +17899,12 @@
|
|
|
17712
17899
|
"type": "string"
|
|
17713
17900
|
},
|
|
17714
17901
|
"functions_dir": {
|
|
17715
|
-
"type": "string"
|
|
17902
|
+
"type": "string",
|
|
17903
|
+
"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."
|
|
17716
17904
|
},
|
|
17717
17905
|
"cmd": {
|
|
17718
|
-
"type": "string"
|
|
17906
|
+
"type": "string",
|
|
17907
|
+
"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."
|
|
17719
17908
|
},
|
|
17720
17909
|
"allowed_branches": {
|
|
17721
17910
|
"type": "array",
|
|
@@ -17742,7 +17931,8 @@
|
|
|
17742
17931
|
"type": "integer"
|
|
17743
17932
|
},
|
|
17744
17933
|
"stop_builds": {
|
|
17745
|
-
"type": "boolean"
|
|
17934
|
+
"type": "boolean",
|
|
17935
|
+
"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."
|
|
17746
17936
|
}
|
|
17747
17937
|
}
|
|
17748
17938
|
},
|
|
@@ -17796,10 +17986,12 @@
|
|
|
17796
17986
|
"type": "string"
|
|
17797
17987
|
},
|
|
17798
17988
|
"functions_dir": {
|
|
17799
|
-
"type": "string"
|
|
17989
|
+
"type": "string",
|
|
17990
|
+
"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."
|
|
17800
17991
|
},
|
|
17801
17992
|
"cmd": {
|
|
17802
|
-
"type": "string"
|
|
17993
|
+
"type": "string",
|
|
17994
|
+
"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."
|
|
17803
17995
|
},
|
|
17804
17996
|
"allowed_branches": {
|
|
17805
17997
|
"type": "array",
|
|
@@ -17826,7 +18018,8 @@
|
|
|
17826
18018
|
"type": "integer"
|
|
17827
18019
|
},
|
|
17828
18020
|
"stop_builds": {
|
|
17829
|
-
"type": "boolean"
|
|
18021
|
+
"type": "boolean",
|
|
18022
|
+
"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."
|
|
17830
18023
|
}
|
|
17831
18024
|
}
|
|
17832
18025
|
}
|
|
@@ -17856,10 +18049,12 @@
|
|
|
17856
18049
|
"type": "string"
|
|
17857
18050
|
},
|
|
17858
18051
|
"functions_dir": {
|
|
17859
|
-
"type": "string"
|
|
18052
|
+
"type": "string",
|
|
18053
|
+
"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."
|
|
17860
18054
|
},
|
|
17861
18055
|
"cmd": {
|
|
17862
|
-
"type": "string"
|
|
18056
|
+
"type": "string",
|
|
18057
|
+
"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."
|
|
17863
18058
|
},
|
|
17864
18059
|
"allowed_branches": {
|
|
17865
18060
|
"type": "array",
|
|
@@ -17886,7 +18081,8 @@
|
|
|
17886
18081
|
"type": "integer"
|
|
17887
18082
|
},
|
|
17888
18083
|
"stop_builds": {
|
|
17889
|
-
"type": "boolean"
|
|
18084
|
+
"type": "boolean",
|
|
18085
|
+
"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."
|
|
17890
18086
|
}
|
|
17891
18087
|
}
|
|
17892
18088
|
},
|
|
@@ -17974,6 +18170,7 @@
|
|
|
17974
18170
|
"enum": [
|
|
17975
18171
|
"all",
|
|
17976
18172
|
"dev",
|
|
18173
|
+
"dev-server",
|
|
17977
18174
|
"branch-deploy",
|
|
17978
18175
|
"deploy-preview",
|
|
17979
18176
|
"production",
|
|
@@ -18047,6 +18244,7 @@
|
|
|
18047
18244
|
"enum": [
|
|
18048
18245
|
"all",
|
|
18049
18246
|
"dev",
|
|
18247
|
+
"dev-server",
|
|
18050
18248
|
"branch-deploy",
|
|
18051
18249
|
"deploy-preview",
|
|
18052
18250
|
"production",
|
|
@@ -18370,9 +18568,16 @@
|
|
|
18370
18568
|
},
|
|
18371
18569
|
"deployFiles": {
|
|
18372
18570
|
"type": "object",
|
|
18571
|
+
"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",
|
|
18373
18572
|
"properties": {
|
|
18374
18573
|
"files": {
|
|
18375
|
-
"type": "object"
|
|
18574
|
+
"type": "object",
|
|
18575
|
+
"description": "A hash mapping file paths to SHA1 digests of the file contents."
|
|
18576
|
+
},
|
|
18577
|
+
"zip": {
|
|
18578
|
+
"type": "string",
|
|
18579
|
+
"format": "binary",
|
|
18580
|
+
"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"
|
|
18376
18581
|
},
|
|
18377
18582
|
"draft": {
|
|
18378
18583
|
"type": "boolean"
|