Update network
PUT/api/v1/networks/:networkId
This API endpoint update network details such as network name, DNS name, and default status, excluding IP subnet configuration.
Request
Path Parameters
networkId stringrequired
The networkId - unique id of the network
- application/json
Body
required
The request body containing the required details to update network
networkName string
isDefault boolean
Responses
- 200
Success response
- application/json
- Schema
- Example (from schema)
- Update network details example
Schema
success boolean
message string
status string
statusCode int32
errorCode string
subErrors object[]
payload
object
Networks schema
networkId string
provider string
ipSubnet string
networkName string
isDefault boolean
isNetworkKeyManaged boolean
{
"success": true,
"message": "string",
"status": "string",
"statusCode": 0,
"errorCode": "string",
"subErrors": [
{}
],
"payload": {
"networkId": "string",
"provider": "string",
"ipSubnet": "string",
"networkName": "string",
"isDefault": true,
"isNetworkKeyManaged": true
}
}
Update network details response example
{
"success": true,
"message": "Network updated successfully",
"status": "OK",
"statusCode": 200,
"errorCode": "",
"subErrors": [
{}
],
"payload": {
"networkId": "xxb63e2aaedx-pffc-123",
"provider": "provider",
"ipSubnet": "10.0.0.0/24",
"networkName": "test",
"isDefault": true,
"isNetworkKeyManaged": true
}
}
Loading...