# Create a new energy generator type **POST /types** Create a new energy generator type (renewable/non-renewable) ## Servers - http://localhost/api/v1: http://localhost/api/v1 () - https://localhost/api/v1: https://localhost/api/v1 () ## Parameters ### Body: application/json (object) Type data - **description** (string) - **isRenewable** (boolean) - **name** (string) ## Responses ### 201 Created #### Body: application/json (object) - **createdAt** (string) - **description** (string) - **id** (string) - **isRenewable** (boolean) - **name** (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)