Details of a plant
GET/plants/:uuid
Details of one plant.
Request
Path Parameters
Unique identifier (UUID) of the plant, as listed by /plants.
Responses
- 200
- 401
- 403
- 500
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
]
project_name
object
Name of the plant.
anyOf
string
street
object
Street address.
anyOf
string
latitude
object
Latitude (WGS 84).
anyOf
number
longitude
object
Longitude (WGS 84).
anyOf
number
number_panels
object
Number of solar panels.
anyOf
integer
[
{
"project_name": "string",
"street": "string",
"latitude": 0,
"longitude": 0,
"number_panels": 0
}
]
MISSING_API_KEY: no x-api-key header.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
UNKNOWN_API_KEY or ACCESS_DENIED: the key's access does not cover this route, plant or date.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}
INTERNAL_ERROR.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
Stable error code to branch on, e.g. ACCESS_DENIED.
Human-readable explanation.
error
object
Same text as message, on 401 and 403 only (older clients).
anyOf
string
{
"code": "string",
"message": "string",
"error": "string"
}