@netlify/open-api 2.45.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 +112 -3
- package/dist/swagger.json +249 -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: {
|
|
@@ -1178,8 +1211,23 @@ export interface components {
|
|
|
1178
1211
|
skew_protection_token?: string;
|
|
1179
1212
|
function_schedules?: components["schemas"]["functionSchedule"][];
|
|
1180
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
|
+
*/
|
|
1181
1221
|
deployFiles: {
|
|
1222
|
+
/** @description A hash mapping file paths to SHA1 digests of the file contents. */
|
|
1182
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;
|
|
1183
1231
|
draft?: boolean;
|
|
1184
1232
|
async?: boolean;
|
|
1185
1233
|
functions?: { [key: string]: unknown };
|
|
@@ -2854,7 +2902,11 @@ export interface operations {
|
|
|
2854
2902
|
/**
|
|
2855
2903
|
* API Reference: {@link https://open-api.netlify.com/#tag/build/operation/createSiteBuild | `createSiteBuild`}
|
|
2856
2904
|
*
|
|
2857
|
-
* 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
|
|
2858
2910
|
*/
|
|
2859
2911
|
createSiteBuild: {
|
|
2860
2912
|
parameters: {
|
|
@@ -2862,7 +2914,7 @@ export interface operations {
|
|
|
2862
2914
|
site_id: string;
|
|
2863
2915
|
};
|
|
2864
2916
|
query: {
|
|
2865
|
-
/**
|
|
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 */
|
|
2866
2918
|
branch?: string;
|
|
2867
2919
|
/** Whether to clear the build cache before building */
|
|
2868
2920
|
clear_cache?: boolean;
|
|
@@ -2889,6 +2941,19 @@ export interface operations {
|
|
|
2889
2941
|
422: unknown;
|
|
2890
2942
|
default: components["responses"]["error"];
|
|
2891
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
|
+
};
|
|
2892
2957
|
};
|
|
2893
2958
|
/** API Reference: {@link https://open-api.netlify.com/#tag/deployedBranch/operation/listSiteDeployedBranches | `listSiteDeployedBranches`} */
|
|
2894
2959
|
listSiteDeployedBranches: {
|
|
@@ -2934,6 +2999,50 @@ export interface operations {
|
|
|
2934
2999
|
404: unknown;
|
|
2935
3000
|
};
|
|
2936
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
|
+
};
|
|
2937
3046
|
/** API Reference: {@link https://open-api.netlify.com/#tag/build/operation/getSiteBuild | `getSiteBuild`} */
|
|
2938
3047
|
getSiteBuild: {
|
|
2939
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
|
},
|
|
@@ -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
|
|
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": "
|
|
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
|
},
|
|
@@ -17413,10 +17586,12 @@
|
|
|
17413
17586
|
"type": "string"
|
|
17414
17587
|
},
|
|
17415
17588
|
"functions_dir": {
|
|
17416
|
-
"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."
|
|
17417
17591
|
},
|
|
17418
17592
|
"cmd": {
|
|
17419
|
-
"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."
|
|
17420
17595
|
},
|
|
17421
17596
|
"allowed_branches": {
|
|
17422
17597
|
"type": "array",
|
|
@@ -17443,7 +17618,8 @@
|
|
|
17443
17618
|
"type": "integer"
|
|
17444
17619
|
},
|
|
17445
17620
|
"stop_builds": {
|
|
17446
|
-
"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."
|
|
17447
17623
|
}
|
|
17448
17624
|
}
|
|
17449
17625
|
},
|
|
@@ -17723,10 +17899,12 @@
|
|
|
17723
17899
|
"type": "string"
|
|
17724
17900
|
},
|
|
17725
17901
|
"functions_dir": {
|
|
17726
|
-
"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."
|
|
17727
17904
|
},
|
|
17728
17905
|
"cmd": {
|
|
17729
|
-
"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."
|
|
17730
17908
|
},
|
|
17731
17909
|
"allowed_branches": {
|
|
17732
17910
|
"type": "array",
|
|
@@ -17753,7 +17931,8 @@
|
|
|
17753
17931
|
"type": "integer"
|
|
17754
17932
|
},
|
|
17755
17933
|
"stop_builds": {
|
|
17756
|
-
"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."
|
|
17757
17936
|
}
|
|
17758
17937
|
}
|
|
17759
17938
|
},
|
|
@@ -17807,10 +17986,12 @@
|
|
|
17807
17986
|
"type": "string"
|
|
17808
17987
|
},
|
|
17809
17988
|
"functions_dir": {
|
|
17810
|
-
"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."
|
|
17811
17991
|
},
|
|
17812
17992
|
"cmd": {
|
|
17813
|
-
"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."
|
|
17814
17995
|
},
|
|
17815
17996
|
"allowed_branches": {
|
|
17816
17997
|
"type": "array",
|
|
@@ -17837,7 +18018,8 @@
|
|
|
17837
18018
|
"type": "integer"
|
|
17838
18019
|
},
|
|
17839
18020
|
"stop_builds": {
|
|
17840
|
-
"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."
|
|
17841
18023
|
}
|
|
17842
18024
|
}
|
|
17843
18025
|
}
|
|
@@ -17867,10 +18049,12 @@
|
|
|
17867
18049
|
"type": "string"
|
|
17868
18050
|
},
|
|
17869
18051
|
"functions_dir": {
|
|
17870
|
-
"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."
|
|
17871
18054
|
},
|
|
17872
18055
|
"cmd": {
|
|
17873
|
-
"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."
|
|
17874
18058
|
},
|
|
17875
18059
|
"allowed_branches": {
|
|
17876
18060
|
"type": "array",
|
|
@@ -17897,7 +18081,8 @@
|
|
|
17897
18081
|
"type": "integer"
|
|
17898
18082
|
},
|
|
17899
18083
|
"stop_builds": {
|
|
17900
|
-
"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."
|
|
17901
18086
|
}
|
|
17902
18087
|
}
|
|
17903
18088
|
},
|
|
@@ -18383,9 +18568,16 @@
|
|
|
18383
18568
|
},
|
|
18384
18569
|
"deployFiles": {
|
|
18385
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",
|
|
18386
18572
|
"properties": {
|
|
18387
18573
|
"files": {
|
|
18388
|
-
"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"
|
|
18389
18581
|
},
|
|
18390
18582
|
"draft": {
|
|
18391
18583
|
"type": "boolean"
|