Skip to main content

Create a new device

POST 

/management/devices

Create handles the HTTP request to create a new device. It parses the request body into a CreateDeviceDTO, validates the input, and calls the device service to create the device. On success, it returns the created device with HTTP 201 status. On error, it returns an appropriate HTTP error status and message.

Request

Responses

Created