createIP
This method adds a new IP address for a specific customer.
Parameters
- customerId (string, required): The UUID of the customer.
- ipAddress (string, required): The IP address to be added for the customer.
Returns
A JSON object representing the newly created IP address entry.
Usage Example
const axios = require('axios');
let data = JSON.stringify({
"ipAddress": "string"
});
let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.nexera.id/customers/:customerId/ips',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
},
data : data
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});