Get Upload Metadata
POST/api
Return URL and headers used to upload data for component_id.
The returned URL should be requested using HTTP PUT with the specified headers.
The component_id does not have to be persisted. In that case, file_name and file_size must be specified. They will be fetched from the component if not set.
The checksum is used as the Content-MD5 header and should contain the base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This can be used as a message integrity check to verify that the data is the same data that was originally sent. Although it is optional, we recommend using the checksum mechanism as an end-to-end integrity check.
Request
- application/json
Body
array
required
Array [
- MOD2
- MOD2
- MOD1
- MOD2
- MOD3
- MOD2
]
Possible values: [get_upload_metadata
]
parts
object
nullable
anyOf
integer
file_name
object
nullable
anyOf
string
file_size
object
nullable
anyOf
integer
number
string
checksum
object
nullable
anyOf
string
metadata
object
Responses
- 200
- 422
Successful Response
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}