Renombrar lista IP
POSThttps://geonix.com/personal/api/v1/{apiKey}/resident/list/rename
Este endpoint le permite renombrar una lista IP existente dentro de su paquete proxy residencial. Cambiar el nombre de una lista IP puede ayudarle a organizar e identificar mejor sus listas en función de su finalidad o contenido.
Parámetros de la ruta
Nombre | Tipo | Descripción |
|---|---|---|
| cadena | Clave API para autorizar solicitudes |
Cabeceras
Nombre | Valor |
|---|---|
Acepte |
|
Tipo de contenido |
|
Parámetros corporales
Nombre | Tipo | Descripción |
|---|---|---|
| entero | El identificador único de la lista IP que desea renombrar. |
| cadena | El nuevo nombre que desea asignar a la lista IP. |
Solicitar ejemplos
curl -X 'POST' \
'https://geonix.com/personal/api/v1/YOUR_API_KEY/resident/list/rename' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"id": 3350393,
"title": "US Washington Garfield FIRST-STEP"
}'<?php
$apiKey = 'YOUR_API_KEY'; // Replace with your actual API key
$url = 'https://geonix.com/personal/api/v1/' . $apiKey . '/resident/list/rename';
$data = [
'id' => 3350393,
'title' => 'US Washington Garfield FIRST-STEP'
];
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'accept: application/json'
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class RenameIPListExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newHttpClient();
String requestBody = "{\"id\": 3350393, \"title\": \"US Washington Garfield FIRST-STEP\"}";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://geonix.com/personal/api/v1/YOUR_API_KEY/resident/list/rename"))
.header("Content-Type", "application/json")
.header("accept", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(requestBody))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Ejemplos de respuesta
{
"status": "success",
"data": {
"id": 3350393,
"title": "US Washington Garfield FIRST-STEP",
"login": "3c8aa1d4",
"password": "AZT62Dx3",
"whitelist": "127.0.0.1,192.168.0.1",
"rotation": "-1 = rotation, 0 = rotation per request, 1..60 time in seconds",
"geo": [
{
"country": "US",
"region": "Washington",
"city": "Garfield",
"isp": "FIRST-STEP"
}
],
"export": {
"ports": 1000,
"ext": "txt"
}
},
"errors": []
}{
"status": "error",
"data": null,
"errors": [
{
"message": "not-found",
"code": 404,
"customData": null
}
]
}