Assignment Data Type
Describes an assignment which is the actual entity on a car.
The relation between a task and assignment is mainly that a task can consist of multiple assignments running on a set of cars. If a task is associated with only one car, the task and assignment are essentially the same thing.
name | data type | constraints | description |
---|---|---|---|
id | number | required int | Identifies an assignment uniquely. |
wcu | WCU | The WCU which this assignment is running on. | |
car | string | The Car which is connected to the WCU. The attribute is a VIN identifier. | |
status | Status | Status of the assignment see Status for a comprehensive description. | |
message | string | On optional status message. Mostly used in the case when something has gone wrong. |
Example
{ "id" : 12345, "wcu" : { "oid" : 12345, "id" : "...", "name" : "..." }, "car" : "...", "status" : { "code" : 2, "text" : "RUNNING" }, "message" : "..." }