Generate Presigned Url
PUT/api/v1/files
Create a presigned url for uploading a file.
Request
Query Parameters
project_id any
Cookie Parameters
session any
- application/json
Body
required
- MOD1
- MOD1
- MOD1
name Name (string)required
Possible values: non-empty
and <= 3000 characters
file_size
object
Size of the file in bytes
anyOf
integer
last_modified_at
object
The last modified time of the file
anyOf
string
resource_info
object
Resource information for the file
anyOf
data_source_id
object
The ID of the data source that the file belongs to
anyOf
string
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
url urirequired
Possible values: non-empty
A presigned URL for IO operations against a private file
expires_at date-timerequired
The time at which the presigned URL expires
form_fields
object
Form fields for a presigned POST request
anyOf
{
"url": "string",
"expires_at": "2024-10-03T01:48:33.292Z",
"form_fields": {}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...