Compare two runs
const url = 'http://localhost:11044/api/v1/watches/example/diff';const options = {method: 'GET', headers: {'X-Embabel-Api-Key': '<X-Embabel-Api-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:11044/api/v1/watches/example/diff \ --header 'X-Embabel-Api-Key: <X-Embabel-Api-Key>'Four legal parameter combinations: both run ids (baseRunId + targetRunId); both ISO instants (baseAt + targetAt); targetRunId alone compares it against the previous complete run; no parameters compares latest versus previous.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The watch whose runs to compare
Query Parameters
Section titled “Query Parameters”The run to compare FROM; pair it with targetRunId
The run to compare TO; given alone it is compared against the previous complete run
ISO instant to compare FROM, resolved to the run current at that time; pair it with targetAt
ISO instant to compare TO, resolved to the run current at that time
Responses
Section titled “Responses”Any other parameter combination
A request-level refusal from the headless surface. Carries only the reason; an execution that ran and failed answers 200 with the outcome in its envelope instead
object
Why the request was refused, written to be shown: the unknown lens, view or run, the argument at fault, or the field the body should not have
Example generated
{ "error": "example"}
