Updates an existing network device.
PATCH/network/devices/:id
This endpoint allows updating specific fields of a network device.
Path Parameters
id(integer): The unique identifier of the network device.
Request Body
- NetDevicePatchDto: Contains the fields to be updated.
Responses
- 200 OK: Successfully updated the network device.
- 400 Bad Request: Invalid update data.
- 404 Not Found: The network device does not exist.
- 500 Internal Server Error: Unexpected server error.
Request
Path Parameters
Unique identifier of the network device
- application/json
Body
required
bandwidth
object
nullable
Represents bandwidth details for a network device
Download bandwidth in Mbps.
Upload bandwidth in Mbps.
The IP address of the network device.
The latency in milliseconds.
The name of the network device.
The packet loss percentage.
Represents the status of a network device
This enum describes the current operational state of a network device. The status can indicate whether the device is operational, undergoing maintenance, or experiencing issues.
Represents the type of a network device
This enum describes the different types of network devices that can exist in a network. Each type has its own role and functionality within the network infrastructure.
Responses
- 200
- 400
- 404
- 500
Successfully updated the network device.
- application/json
- Schema
- Example (from schema)
Schema
bandwidth
object
nullable
Represents bandwidth details for a network device
Download bandwidth in Mbps.
Upload bandwidth in Mbps.
The unique identifier of the network device.
The IP address of the network device.
The latency in milliseconds (optional).
The name of the network device.
The packet loss percentage (optional).
Possible values: [online, offline, degraded, maintenance, error, unspecified]
Represents the status of a network device
This enum describes the current operational state of a network device. The status can indicate whether the device is operational, undergoing maintenance, or experiencing issues.
Possible values: [router, switch, accessPoint, firewall]
Represents the type of a network device
This enum describes the different types of network devices that can exist in a network. Each type has its own role and functionality within the network infrastructure.
{
"bandwidth": {
"downloadMbps": 0,
"uploadMbps": 0
},
"id": 0,
"ip": "string",
"latencyMs": 0,
"name": "string",
"packetLossPercentage": 0,
"status": "online",
"type": "router"
}
Bad Request - Invalid update data.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD15
- MOD16
oneOf
Possible values: [ClientError]
Possible values: [InternetConnectionError]
Possible values: [UnauthorizedError]
Possible values: [InternalServerError]
Possible values: [MissingDataError]
Possible values: [ParsingFailedError]
Possible values: [WritingDataError]
Possible values: [ForbiddenError]
Possible values: [NotAllowedError]
Possible values: [ValidationError]
Possible values: [SQLError]
Possible values: [StorageLimitExceededError]
Possible values: [StorageUnavailable]
Possible values: [ConflictError]
Possible values: [MatomoError]
Possible values: [ProcessInterrupted]
{}
Not Found - Network device does not exist.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD15
- MOD16
oneOf
Possible values: [ClientError]
Possible values: [InternetConnectionError]
Possible values: [UnauthorizedError]
Possible values: [InternalServerError]
Possible values: [MissingDataError]
Possible values: [ParsingFailedError]
Possible values: [WritingDataError]
Possible values: [ForbiddenError]
Possible values: [NotAllowedError]
Possible values: [ValidationError]
Possible values: [SQLError]
Possible values: [StorageLimitExceededError]
Possible values: [StorageUnavailable]
Possible values: [ConflictError]
Possible values: [MatomoError]
Possible values: [ProcessInterrupted]
{}
Internal Server Error - Unexpected issue occurred.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
- MOD7
- MOD8
- MOD9
- MOD10
- MOD11
- MOD12
- MOD13
- MOD14
- MOD15
- MOD16
oneOf
Possible values: [ClientError]
Possible values: [InternetConnectionError]
Possible values: [UnauthorizedError]
Possible values: [InternalServerError]
Possible values: [MissingDataError]
Possible values: [ParsingFailedError]
Possible values: [WritingDataError]
Possible values: [ForbiddenError]
Possible values: [NotAllowedError]
Possible values: [ValidationError]
Possible values: [SQLError]
Possible values: [StorageLimitExceededError]
Possible values: [StorageUnavailable]
Possible values: [ConflictError]
Possible values: [MatomoError]
Possible values: [ProcessInterrupted]
{}