/api/v1/nodes/{nodeId} (PUT)
PUT
/api/v1/nodes/{nodeId}
const url = 'https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","publicAddress":"example","location":"example","ports":"example","sftpPublicHost":"example","sftpPublicPort":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "publicAddress": "example", "location": "example", "ports": "example", "sftpPublicHost": "example", "sftpPublicPort": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”nodeId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
publicAddress
required
string
location
required
null | string
ports
null | string
sftpPublicHost
null | string
sftpPublicPort
null | integer | string format: int32
Example generated
{ "name": "example", "publicAddress": "example", "location": "example", "ports": "example", "sftpPublicHost": "example", "sftpPublicPort": 1}Responses
Section titled “Responses”OK