Upload
Prepare Upload (using Project Key)
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": "..." } }
post/api/v0/upload
Request
- Base URLhttps://files.memfault.com
- Auth
- HTTP basic
- or HTTP bearer
Headers
Memfault-Project-Keystring required
Content-Typestring required
Example:application/json
Response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.