Upload Chunk
POST/api/v0/chunks/:device_serial
Upload one or more Chunks for a given Device to chunks.memfault.com.
Chunks must be sent in sequential order. The device serial is used to identify the device.
Single chunk upload:
Use Content-Type: application/octet-stream with Content-Length required.
Chunks can be Base64-encoded by adding Content-Encoding: base64.
Multiple chunks upload:
Use Content-Type: multipart/mixed; boundary=<boundary> to send multiple chunks in one request.
POST /api/v0/chunks/{device_serial}
Content-Type: multipart/mixed; boundary=boundary_value
--boundary_value
Content-Type: application/octet-stream
Content-Length: <chunk_size>
<chunk_data>
--boundary_value--
Return Value
202 Accepted— Chunks queued for processing.400 Bad Request— Malformed request.403 Forbidden— Project Key missing or invalid.411 Length Required—Content-Lengthheader missing.413 Payload Too Large— Chunk exceeds maximum size.415 Unsupported Media Type— UnsupportedContent-Type.429 Too Many Requests— Rate limited; retry after theRetry-Afterheader interval.503 Service Unavailable— Retry after theRetry-Afterheader interval.
Request
Responses
- 202
Accepted