Delete check API is possibly broken?
Following the example found here: https://developers.checklyhq.com/reference/deletev1checksid
Entering a valid check ID produces an error:
{
"statusCode": 400,
"error": "Bad Request",
"message": "Missing required x-checkly-account header"
}
There is no indication that this API requires the x-checkly-account header.
Log in to comment and vote
Comments3
Alex Panayi
Oct 6, 2023
Confirmed by adjusting the CURL request example to include:
--header 'x-checkly-account: xyz'This resolves the issue and results in a 204. The examples in the doc should clearly reflect what the user needs to produce a valid response.The same issue is happening for group deletion API as well.Tim Nolet
Oct 9, 2023
Hey @Alex Panayi glad you found this. This extra parameter is mentioned in the general authentication notes. But I see indeed it is mission for the DELETE request. We will fix that.
Rikard Nilsson
Oct 9, 2023
Hi @Alex Panayi; the documentation has been updated. Thanks again for reporting, and let us know if you have any further feedback!
Regards,
Rikard