Skip to content

Get an ECO's final test plan (seeded from the plan in force for its revision when the ECO carries none yet)

GET
/ecos/{id}/test-plan
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.

id
required
string format: uuid

OK

Media typeapplication/json
object
testPlan
required
object
id

Absent on a plan seeded for an ECO that has not saved its own.

string format: uuid
version
required

Counts saves of this plan; 0 for a seeded plan not yet saved.

integer
checks
required
Array<object>

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
kind
required
string
Allowed values: MEASUREMENT PASS_FAIL TEXT
name
required
string
<= 120 characters
unit

Required for a measurement; not allowed otherwise.

string
<= 40 characters
lowerLimit
number format: double
upperLimit
number format: double
target

Nominal value, shown to the operator; must lie within the limits.

number format: double
required

Defaults to true. An optional check may be left blank; if recorded, it still counts.

boolean
instructions
string
<= 1000 characters
seeded
required

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.

boolean

Example

{
"testPlan": {
"checks": [
{
"kind": "MEASUREMENT"
}
]
}
}

Unauthorized

ECO not found