PUT
/productions/{id}
curl \
--request PUT 'https://localhost/api/v1/productions/{id}' \
--header "Content-Type: application/json" \
--data '{"date":"2025-09-03","generatorId":"550e8400-e29b-41d4-a716-446655440001","productionMw":85.3}'
Request examples
{
"date": "2025-09-03",
"generatorId": "550e8400-e29b-41d4-a716-446655440001",
"productionMw": 85.3
}
Response examples (200)
{
"createdAt": "string",
"date": "2025-09-03",
"generatorCapacity": 100.5,
"generatorId": "550e8400-e29b-41d4-a716-446655440001",
"id": "550e8400-e29b-41d4-a716-446655440002",
"isRenewable": true,
"productionMw": 85.3,
"typeName": "Solar",
"updatedAt": "string"
}
Response examples (400)
{
"code": 400,
"error": "Invalid input",
"message": "The provided data is invalid"
}
Response examples (404)
{
"code": 400,
"error": "Invalid input",
"message": "The provided data is invalid"
}
Response examples (500)
{
"code": 400,
"error": "Invalid input",
"message": "The provided data is invalid"
}