Set proxy comments
POST https://geonix.com/personal/api/v1/{apiKey}/proxy/comment/set
This endpoint allows you to add comments to your proxies. This is a convenient way to add notes or tags to them for easier management and organization.
Headers
Name
Value
Content-Type
application/json
Path parameters
Name
Type
Description
apiKey*
string
API key to authorize requests
Body parameters
Name
Type
Description
ids*
array of integers
The IDs of the proxies you wish to comment on
comment*
string
The comment you want to associate with the specified proxies
Request examples
curl -X POST "https://geonix.com/personal/api/v1/YOUR_API_KEY_HERE/proxy/comment/set" \
-H "Content-Type: application/json" \
-d '{"ids": [105487, 458746], "comment": "New comment"}'<?php
$apiKey = 'YOUR_API_KEY_HERE'; // Replace with your actual API key
$url = "https://geonix.com/personal/api/v1/$apiKey/proxy/comment/set";
$data = array("ids" => array(105487, 458746), "comment" => "New comment");
$data_json = json_encode($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
Response examples
{
"status": "success",
"data": {
"updated": 5
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "IP not found",
"code": 0,
"customData": null
}
]
}
Last updated