API
Sites
Get site data with nested structure
AuthorizationBearer <token>
In: header
Query Parameters
id?string
ID of the site. Default is all sites.
Match
^[0-9a-fA-F]{24}$
Response Body
curl -X GET "https://api.autumnlabs.io/sites?id=string"
{
"data": [
{
"id": "string",
"name": "California Factory - CAL01",
"description": "Automated Assembly Factory",
"lines": [
{
"id": "string",
"name": "FATP Line",
"description": "Assembly line",
"elements": [
{
"id": "string",
"name": "Top Assembly 1",
"description": "First of the assembly stations",
"type": "station"
}
]
}
]
}
],
"message": "string",
"meta": {
"timestamp": "2019-08-24T14:15:22Z",
"request_id": "string",
"query_duration_ms": 0
}
}
{
"error": {
"code": "string",
"message": "string",
"details": null
}
}
{
"error": {
"code": "string",
"message": "string",
"details": null
}
}
{
"error": {
"code": "string",
"message": "string",
"details": null
}
}
{
"error": {
"code": "string",
"message": "string",
"details": null
}
}