@@ -795,6 +795,14 @@ paths:
795795 schema :
796796 $ref : ' #/components/schemas/Models.ResourceListSorting'
797797 explode : false
798+ - name : previews
799+ in : query
800+ required : false
801+ description : Whether to request content previews for supported file formats
802+ schema :
803+ type : boolean
804+ default : false
805+ explode : false
798806 responses :
799807 ' 200 ' :
800808 description : The request has succeeded.
@@ -812,6 +820,47 @@ paths:
812820 format : uint64
813821 access :
814822 $ref : ' #/components/schemas/Models.ResourceAccessProperties'
823+ preview :
824+ type : object
825+ required :
826+ - contents
827+ properties :
828+ contentType :
829+ type : string
830+ description : |-
831+ The allowed media (MIME) types of the file contents.
832+
833+ In file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,
834+ this value is serialized as a field in the response.
835+
836+ NOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but
837+ it will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the
838+ _contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.
839+ title : The allowed media (MIME) types of the file contents.
840+ filename :
841+ type : string
842+ description : |-
843+ The name of the file, if any.
844+
845+ In file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response
846+ or multipart payload. In JSON bodies, this value is serialized as a field in the response.
847+
848+ NOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart
849+ payloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,
850+ you must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata
851+ decorators.
852+ title : The name of the file, if any.
853+ contents :
854+ type : string
855+ contentEncoding : base64
856+ description : |-
857+ The contents of the file.
858+
859+ In file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,
860+ this value is serialized as a field in the response.
861+ title : The contents of the file.
862+ description : Only present, if `previews` was set to `true` in the request, and if the response contains preview-supported file types.
863+ title : A file in an HTTP request, response, or multipart payload.
815864 required :
816865 - resourceId
817866 - size
0 commit comments