You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: swagger.yml
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1233,7 +1233,14 @@ paths:
1233
1233
post:
1234
1234
operationId: createSiteBuild
1235
1235
tags: [build]
1236
-
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.'
1236
+
description: |
1237
+
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.
1238
+
1239
+
Files for build can be uploaded as a zipped site using one of these methods:
1240
+
1. Set Content-Type to 'application/zip' and send the zip file as the raw request body
1241
+
2. Set Content-Type to 'multipart/form-data' and include the zip file in the 'zip' field
1242
+
consumes:
1243
+
- multipart/form-data
1237
1244
parameters:
1238
1245
- name: branch
1239
1246
description: >-
@@ -1263,6 +1270,14 @@ paths:
1263
1270
required: false
1264
1271
in: query
1265
1272
type: string
1273
+
- name: zip
1274
+
description: |
1275
+
A zip file containing the site files to build.
1276
+
Only used with Content-Type 'multipart/form-data'.
1277
+
Alternatively, set Content-Type to 'application/zip' and send the zip as the raw request body (no 'zip' parameter needed).
1278
+
required: false
1279
+
in: formData
1280
+
type: file
1266
1281
responses:
1267
1282
'200':
1268
1283
description: OK
@@ -3786,9 +3801,23 @@ definitions:
3786
3801
$ref: '#/definitions/functionSchedule'
3787
3802
deployFiles:
3788
3803
type: object
3804
+
description: |
3805
+
Deploy files can be provided in two ways:
3806
+
1. As a JSON object using 'files' (a hash mapping file paths to SHA1 digests), OR
3807
+
2. As a zip file using one of these methods:
3808
+
- Set Content-Type to 'application/zip' and send the zip file as the raw request body
3809
+
- Include the zip file content in the 'zip' field of this JSON object with Content-Type 'application/json'
3789
3810
properties:
3790
3811
files:
3791
3812
type: object
3813
+
description: A hash mapping file paths to SHA1 digests of the file contents.
3814
+
zip:
3815
+
type: string
3816
+
format: binary
3817
+
description: |
3818
+
A zip file containing the site files to deploy. Alternative to 'files'.
3819
+
To use this field, set Content-Type to 'application/json' and include the zip content here.
3820
+
Alternatively, you can set Content-Type to 'application/zip' and send the zip as the raw request body (not as JSON).
0 commit comments