Update rental access
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PATCH");curl_easy_setopt(hnd, CURLOPT_URL, "https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0");
struct curl_slist *headers = NULL;headers = curl_slist_append(headers, "Accept-Language: de");headers = curl_slist_append(headers, "Authorization: Bearer <token>");headers = curl_slist_append(headers, "Content-Type: application/json");curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }");
CURLcode ret = curl_easy_perform(hnd);using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Patch, RequestUri = new Uri("https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"), Headers = { { "Accept-Language", "de" }, { "Authorization", "Bearer <token>" }, }, Content = new StringContent("{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
payload := strings.NewReader("{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Accept-Language", "de") req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0")) .header("Accept-Language", "de") .header("Authorization", "Bearer <token>") .header("Content-Type", "application/json") .method("PATCH", HttpRequest.BodyPublishers.ofString("{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }")) .build();HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());System.out.println(response.body());OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");RequestBody body = RequestBody.create(mediaType, "{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }");Request request = new Request.Builder() .url("https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0") .patch(body) .addHeader("Accept-Language", "de") .addHeader("Authorization", "Bearer <token>") .addHeader("Content-Type", "application/json") .build();
Response response = client.newCall(request).execute();import axios from 'axios';
const options = { method: 'PATCH', url: 'https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', headers: { 'Accept-Language': 'de', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, data: {label: 'label', is_active: true, allowed_ips: ['198.51.100.25']}};
try { const { data } = await axios.request(options); console.log(data);} catch (error) { console.error(error);}const url = 'https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: { 'Accept-Language': 'de', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"label":"label","is_active":true,"allowed_ips":["198.51.100.25"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")val body = RequestBody.create(mediaType, "{ \"label\": \"label\", \"is_active\": true, \"allowed_ips\": [ \"198.51.100.25\" ] }")val request = Request.Builder() .url("https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0") .patch(body) .addHeader("Accept-Language", "de") .addHeader("Authorization", "Bearer <token>") .addHeader("Content-Type", "application/json") .build()
val response = client.newCall(request).execute()use std::str::FromStr;use serde_json::json;use reqwest;
#[tokio::main]pub async fn main() { let url = "https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0";
let payload = json!({ "label": "label", "is_active": true, "allowed_ips": ("198.51.100.25") });
let mut headers = reqwest::header::HeaderMap::new(); headers.insert("Accept-Language", "de".parse().unwrap()); headers.insert("Authorization", "Bearer <token>".parse().unwrap()); headers.insert("Content-Type", "application/json".parse().unwrap());
let client = reqwest::Client::new(); let response = client.request(reqwest::Method::from_str("PATCH").unwrap(), url) .headers(headers) .json(&payload) .send() .await;
let results = response.unwrap() .json::<serde_json::Value>() .await .unwrap();
dbg!(results);}curl --request PATCH \ --url https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Accept-Language: de' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "label": "label", "is_active": true, "allowed_ips": [ "198.51.100.25" ] }'wget --quiet \ --method PATCH \ --header 'Accept-Language: de' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --body-data '{ "label": "label", "is_active": true, "allowed_ips": [ "198.51.100.25" ] }' \ --output-document \ - https://api.proxyrequest.com/api/v1/static/endpoints/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Change the label, active status or allowed client IP/CIDR networks. The next node configuration update applies the policy to new and existing connections.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Preferred language for human-readable API errors. Supported languages: en, ru, uk, de, it, fr, es. Regional language tags and quality weights are accepted; unsupported or omitted values use English.
Examples
defr-CA, fr;q=0.9, en;q=0.5Request Body
Section titled “Request Body”object
Examples
Example request
{ "label": "label", "is_active": true, "allowed_ips": [ "198.51.100.25" ]}object
Examples
Example request
label=label&is_active=true&allowed_ips=198.51.100.25object
Examples
Example request
{ "label": "label", "is_active": true, "allowed_ips": [ "198.51.100.25" ]}Responses
Section titled “Responses”The operation completed successfully.
object
object
object
object
Examples
Example response
{ "id": "550e8400-e29b-41d4-a716-446655440001", "order_id": "550e8400-e29b-41d4-a716-446655440003", "label": "label", "is_active": true, "allowed_ips": null, "periods": [ { "id": "550e8400-e29b-41d4-a716-446655440001", "starts_at": "2026-07-01T12:30:00Z", "ends_at": "2026-07-01T12:30:00Z", "duration_kind": "duration kind", "duration_value": 1, "price_cents": 1, "invoice_id": "550e8400-e29b-41d4-a716-446655440004" } ], "connections": [ { "assignment_id": "550e8400-e29b-41d4-a716-446655440001", "address_id": "550e8400-e29b-41d4-a716-446655440001", "source_ip": "source ip", "host": "proxy.example.net", "http_port": 1, "socks_port": 1, "state": "state", "asn": "15169" } ], "max_bandwidth_mbps": 1}The request is malformed or violates a business rule.
Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.
object
Examples
Validation error
{ "non_field_errors": [ "The request could not be processed." ]}Headers
Section titled “Headers”Language used for human-readable errors.
Authentication credentials are missing, expired, or invalid.
Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.
object
Examples
Authentication required
{ "detail": "Authentication credentials were not provided."}Headers
Section titled “Headers”Language used for human-readable errors.
The authenticated account cannot perform this operation.
Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.
object
Examples
Permission denied
{ "detail": "You do not have permission to perform this action."}Headers
Section titled “Headers”Language used for human-readable errors.
The requested resource does not exist in the current account scope.
Validation and API error payload. Field names may be added dynamically; field errors are returned as arrays of human-readable messages.
object
Examples
Resource not found
{ "detail": "Not found."}Headers
Section titled “Headers”Language used for human-readable errors.