@@ -148,7 +148,7 @@ paths:
148
148
name : lastModifiedDateUtc
149
149
required : true
150
150
type : integer
151
- description : Last modified date of file in milliseconds since epoch in UTC
151
+ description : Last modified date of file in seconds since epoch in UTC
152
152
responses :
153
153
200 :
154
154
description : Result
@@ -188,7 +188,7 @@ paths:
188
188
name : lastModifiedDateUtc
189
189
required : true
190
190
type : integer
191
- description : Last modified date of file in milliseconds since epoch in UTC
191
+ description : Last modified date of file in seconds since epoch in UTC
192
192
responses :
193
193
200 :
194
194
description : Result
@@ -553,41 +553,6 @@ paths:
553
553
description : Error
554
554
schema :
555
555
$ref : ' #/definitions/Error'
556
- /datasets/upload/file/{contentLength}/{lastModifiedDateUtc} :
557
- post :
558
- tags :
559
- - kaggle
560
- summary : Get URL and token to start uploading a data file
561
- operationId : DatasetsUploadFile
562
- produces :
563
- - application/json
564
- consumes :
565
- - multipart/form-data
566
- parameters :
567
- - in : formData
568
- name : fileName
569
- required : true
570
- type : string
571
- description : Dataset file name
572
- - in : path
573
- name : contentLength
574
- required : true
575
- type : integer
576
- description : Content length of file in bytes
577
- - in : path
578
- name : lastModifiedDateUtc
579
- required : true
580
- type : integer
581
- description : Last modified date of file in milliseconds since epoch in UTC
582
- responses :
583
- 200 :
584
- description : Result
585
- schema :
586
- $ref : ' #/definitions/Result'
587
- default :
588
- description : Error
589
- schema :
590
- $ref : ' #/definitions/Error'
591
556
/datasets/create/version/{id} :
592
557
post :
593
558
tags :
@@ -1392,32 +1357,47 @@ paths:
1392
1357
description : Error
1393
1358
schema :
1394
1359
$ref : ' #/definitions/Error'
1395
- /models /upload/file/{contentLength}/{lastModifiedDateUtc} :
1360
+ /blobs /upload :
1396
1361
post :
1397
1362
tags :
1398
- - kaggle
1399
- summary : Get URL and token to start uploading a model file
1400
- operationId : ModelsUploadFile
1363
+ - kaggle
1364
+ summary : Start uploading a file
1365
+ operationId : UploadFile
1401
1366
produces :
1402
1367
- application/json
1403
1368
consumes :
1404
- - multipart/form-data
1369
+ - application/json
1405
1370
parameters :
1406
- - in : formData
1407
- name : fileName
1408
- required : true
1409
- type : string
1410
- description : Model file name
1411
- - in : path
1412
- name : contentLength
1371
+ - in : body
1372
+ name : startBlobUploadRequest
1413
1373
required : true
1414
- type : integer
1415
- description : Content length of file in bytes
1416
- - in : path
1417
- name : lastModifiedDateUtc
1374
+ schema :
1375
+ $ref : ' #/definitions/StartBlobUploadRequest'
1376
+ responses :
1377
+ 200 :
1378
+ description : StartBlobUploadResponse
1379
+ schema :
1380
+ $ref : ' #/definitions/StartBlobUploadResponse'
1381
+ default :
1382
+ description : Error
1383
+ schema :
1384
+ $ref : ' #/definitions/Error'
1385
+ /inbox/files/create :
1386
+ post :
1387
+ tags :
1388
+ - kaggle
1389
+ summary : Creates (aka "drops") a new file into the inbox.
1390
+ operationId : CreateInboxFile
1391
+ produces :
1392
+ - application/json
1393
+ consumes :
1394
+ - application/json
1395
+ parameters :
1396
+ - in : body
1397
+ name : createInboxFileRequest
1418
1398
required : true
1419
- type : integer
1420
- description : Last modified date of file in milliseconds since epoch in UTC
1399
+ schema :
1400
+ $ref : ' #/definitions/CreateInboxFileRequest '
1421
1401
responses :
1422
1402
200 :
1423
1403
description : Result
@@ -1948,3 +1928,59 @@ definitions:
1948
1928
description : A list of files that should be associated with the model instance version
1949
1929
items :
1950
1930
$ref : ' #/definitions/UploadFile'
1931
+ StartBlobUploadRequest :
1932
+ type : object
1933
+ required :
1934
+ - bucket
1935
+ - name
1936
+ - contentLength
1937
+ - lastUpdateTime
1938
+ properties :
1939
+ type :
1940
+ type : object
1941
+ description : The type of the blob (one of "dataset", "model", "inbox")
1942
+ schema :
1943
+ $ref : ' #definitions/ApiBlobType'
1944
+ name :
1945
+ type : string
1946
+ description : Name of the file
1947
+ contentLength :
1948
+ type : integer
1949
+ description : Content length of the file in bytes
1950
+ contentType :
1951
+ type : string
1952
+ description : Content/MIME type (e.g. "text/plain") of the file
1953
+ lastModifiedEpochSeconds :
1954
+ type : integer
1955
+ description : Last modified date of file in seconds since epoch in UTC
1956
+ ApiBlobType :
1957
+ type : string
1958
+ description : To which entity this blob refers
1959
+ enum :
1960
+ - dataset
1961
+ - model
1962
+ - inbox
1963
+ StartBlobUploadResponse :
1964
+ type : object
1965
+ required :
1966
+ - token
1967
+ - createUrl
1968
+ properties :
1969
+ token :
1970
+ type : string
1971
+ description : Opaque string token used to reference the new blob/file.
1972
+ createUrl :
1973
+ type : string
1974
+ description : URL to use to start the upload.
1975
+ CreateInboxFileRequest :
1976
+ type : object
1977
+ required :
1978
+ - virtualDirectory
1979
+ - blobFileToken
1980
+ properties :
1981
+ virtualDirectory :
1982
+ type : string
1983
+ description : Directory name used for tagging the uploaded file
1984
+ blobFileToken :
1985
+ type : string
1986
+ description : Token representing the uploaded file
0 commit comments