Prepare Upload (using Project Key)
POST/api/v0/upload
Prepare a file upload to files.memfault.com. This is step 1 of a two-step upload flow.
Returns a signed upload_url and an opaque token. Use the upload_url to PUT the file
directly, then use the token in the corresponding Commit endpoint.
Request Body
| Field | Type | Description |
|---|---|---|
kind | String | Required. One of: COREDUMP, ANDROID_BUG_REPORT, MAR |
device | Object | Required. DeviceTraits object (see below) |
size | Integer | Required. File size in bytes |
DeviceTraits:
| Field | Type | Description |
|---|---|---|
device_serial | String | Required. Device serial number |
hardware_version | String | Required. Hardware version |
software_version | String | Required. Software version |
software_type | String | Software type |
Return Value
Returns { "data": { "upload_url": "...", "token": "..." } }
Request
Responses
- 200