# Create generator **POST /generators** Create a new energy generator ## Servers - http://localhost/api/v1: http://localhost/api/v1 () - https://localhost/api/v1: https://localhost/api/v1 () ## Parameters ### Body: application/json (object) Generator data - **capacity** (number) - **typeId** (string) ## Responses ### 201 Created #### Body: application/json (object) - **capacity** (number) - **createdAt** (string) - **id** (string) - **isRenewable** (boolean) - **typeDescription** (string) - **typeId** (string) - **typeName** (string) - **updatedAt** (string) ### 400 Bad Request #### Body: application/json (object) - **code** (integer) - **error** (string) - **message** (string) ### 500 Internal Server Error #### Body: application/json (object) - **code** (integer) - **error** (string) - **message** (string) [Powered by Bump.sh](https://bump.sh)