Skip to content

Updates a Netclient host on Netmaker server

PUT
/api/hosts/{hostid}

Authorizations

Parameters

Path Parameters

hostid
required
string

Host ID

Request Body

New host data

object
autoupdate
boolean
debug
boolean
defaultinterface
string
endpointip
string
endpointipv6
string
firewallinuse
string
id
string
interfaces
Array<object>
object
addressString
string
name
string
isdefault
boolean
isstatic
boolean
isstaticport
boolean
listenport
integer
macaddress
string
mtu
integer
name
string
nat_type
string
nodes
Array<string>
os
string
persistentkeepalive
integer
publickey
string
verbosity
integer
version
string
wg_public_listen_port
integer

Responses

200

OK

object
autoupdate
boolean
debug
boolean
defaultinterface
string
endpointip
string
endpointipv6
string
firewallinuse
string
id
string
interfaces
Array<object>
object
addressString
string
name
string
isdefault
boolean
isstatic
boolean
isstaticport
boolean
listenport
integer
macaddress
string
mtu
integer
name
string
nat_type
string
nodes
Array<string>
os
string
persistentkeepalive
integer
publickey
string
verbosity
integer
version
string
wg_public_listen_port
integer

500

Internal Server Error

object
code
integer
message
string