You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On data too long, respond with status code 400 and the following body:
{
"message": "report data too large"
}
On invalid challenge solution, respond with status code 400 and the following body:
{
"message": "invalid solution to proof of work challenge"
}
On expired challenge, respond with status code 400 and the following body:
{
"message": "proof of work challenge expired"
}
Subsequent Report
When subsequent reports are uploaded, the upload key generated after the first report is used to authorize the upload, and no proof of work challenge is required.
Replace the old
/submitDiagnosis
endpoint with a new/report
endpoint.The only method supported on
/report
is POST. There are two forms of request to/report
:Initial Report
When the first report is uploaded, no upload key is included. Initial report upload is rate limited using a proof of work challenge.
Request
The object at
challenge.challenge
is a challenge which was previously obtained via a GET request to/challenge
.data
is a Base64-encoded report.Behavior
data
is not too longResponses
On success, respond with status code 200 and the following body:
On
data
too long, respond with status code 400 and the following body:On invalid challenge solution, respond with status code 400 and the following body:
On expired challenge, respond with status code 400 and the following body:
Subsequent Report
When subsequent reports are uploaded, the upload key generated after the first report is used to authorize the upload, and no proof of work challenge is required.
Request
Behavior
data
is not too longResponse
On success, respond with status code 200 and the following body:
On
data
too long, respond with status code 400 and the following body:On invalid upload key, respond with status code 403 and the following body:
The text was updated successfully, but these errors were encountered: