Get an ECO's final test plan (seeded from the plan in force for its revision when the ECO carries none yet)
const url = 'https://app.dev.buildtrace.eu/api/ecos/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test-plan';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.dev.buildtrace.eu/api/ecos/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/test-plan \ --header 'Authorization: Bearer <token>'Required scope: ecos:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”OK
object
object
Absent on a plan seeded for an ECO that has not saved its own.
Counts saves of this plan; 0 for a seeded plan not yet saved.
One check of a final test. MEASUREMENT records a number against a minimum and/or maximum (at least one) in a unit, with an optional target; PASS_FAIL records a yes/no outcome; TEXT records a value that is kept but not judged. Names are unique within a plan.
object
Required for a measurement; not allowed otherwise.
Nominal value, shown to the operator; must lie within the limits.
Defaults to true. An optional check may be left blank; if recorded, it still counts.
True when the ECO carries no plan of its own yet and this is the plan in force for its revision. Until the ECO saves one, it leaves the final test as it is.
Example
{ "testPlan": { "checks": [ { "kind": "MEASUREMENT" } ] }}Unauthorized
ECO not found