PUT
/types/{id}
curl \
--request PUT 'https://localhost/api/v1/types/{id}' \
--header "Content-Type: application/json" \
--data '{"description":"Solar photovoltaic panels","isRenewable":true,"name":"Solar"}'
Request examples
{
"description": "Solar photovoltaic panels",
"isRenewable": true,
"name": "Solar"
}
Response examples (200)
{
"createdAt": "string",
"description": "Solar photovoltaic panels",
"id": "550e8400-e29b-41d4-a716-446655440000",
"isRenewable": true,
"name": "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"
}