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: api/swagger.yml
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -415,6 +415,19 @@ components:
415
415
type: boolean
416
416
default: false
417
417
418
+
ObjectUploadMode:
419
+
type: object
420
+
required:
421
+
- upload_mode
422
+
properties:
423
+
upload_mode:
424
+
type: string
425
+
enum: [regular, xet]
426
+
description: |
427
+
Server-selected upload mode for a regular object upload.
428
+
"regular" means the client should use POST /objects.
429
+
"xet" means the client may upload through XET and link an xet:// physical address.
430
+
418
431
ObjectUserMetadata:
419
432
type: object
420
433
additionalProperties:
@@ -4900,13 +4913,24 @@ paths:
4900
4913
required: true
4901
4914
schema:
4902
4915
type: string
4916
+
- in: query
4917
+
name: size_bytes
4918
+
description: Size of the object content the client plans to upload.
4919
+
required: false
4920
+
schema:
4921
+
type: integer
4922
+
format: int64
4903
4923
get:
4904
4924
tags:
4905
4925
- internal
4906
4926
operationId: uploadObjectPreflight
4907
4927
responses:
4908
-
204:
4909
-
description: User has permissions to upload this object. This does not guarantee that the upload will be successful or even possible. It indicates only the permission at the time of calling this endpoint
4928
+
200:
4929
+
description: User has permissions to upload this object and the server-selected upload mode.
0 commit comments