This output should be saved along with the request. Additionally, the server supports deletion of the submission within a certain time period (currently 1 hour):
If this functionality were added as a UI option, it would be useful for people who wanted to opt out but accidentally submitted. The UI should probably DELETE the original submission, confirm a 200 response, remove the cache entries for the original submission/response, POST the new OptOut submission, and record the submission/response.
FYI, for testing, there is an "X-Save-Submission: no" header which can be sent with the POST. The server will respond with a real-looking id/key/timestamp, but will not actually record the submission. We're currently using this for E2E monitoring.
The POST response from metrics.ubuntu.com is the following JSON format (unrelated headers omitted and JSON prettified):
This output should be saved along with the request. Additionally, the server supports deletion of the submission within a certain time period (currently 1 hour):
If this functionality were added as a UI option, it would be useful for people who wanted to opt out but accidentally submitted. The UI should probably DELETE the original submission, confirm a 200 response, remove the cache entries for the original submission/response, POST the new OptOut submission, and record the submission/response.
FYI, for testing, there is an "X-Save-Submission: no" header which can be sent with the POST. The server will respond with a real-looking id/key/timestamp, but will not actually record the submission. We're currently using this for E2E monitoring.