/api/v1/nodes/{nodeId}/allocations (POST)
POST
/api/v1/nodes/{nodeId}/allocations
const url = 'https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/allocations';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"ip":"example","ports":"example","protocol":"tcp"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/allocations \ --header 'Content-Type: application/json' \ --data '{ "ip": "example", "ports": "example", "protocol": "tcp" }'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
ip
required
string
ports
required
string
protocol
Responses
Section titled “Responses”OK