Update limits that apply to each client individually
curl --request PATCH \
--url https://api.pingnetwork.io/customer/v2/customer/limits/client \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}
'import requests
url = "https://api.pingnetwork.io/customer/v2/customer/limits/client"
payload = {
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
downloaded_bytes: 549755813888,
uploaded_bytes: 549755813888,
download_speed: 52428800,
upload_speed: 52428800,
max_sessions: 5,
max_reconnections: 20
})
};
fetch('https://api.pingnetwork.io/customer/v2/customer/limits/client', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pingnetwork.io/customer/v2/customer/limits/client",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'downloaded_bytes' => 549755813888,
'uploaded_bytes' => 549755813888,
'download_speed' => 52428800,
'upload_speed' => 52428800,
'max_sessions' => 5,
'max_reconnections' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pingnetwork.io/customer/v2/customer/limits/client"
payload := strings.NewReader("{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.pingnetwork.io/customer/v2/customer/limits/client")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pingnetwork.io/customer/v2/customer/limits/client")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}"
response = http.request(request)
puts response.read_body{
"id": "cl_123456789",
"created_at": "2025-02-28T14:30:00.000Z",
"updated_at": "2025-02-28T14:30:00.000Z",
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Client Limits
Update limits that apply to each client individually
PATCH
/
customer
/
limits
/
client
Update limits that apply to each client individually
curl --request PATCH \
--url https://api.pingnetwork.io/customer/v2/customer/limits/client \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}
'import requests
url = "https://api.pingnetwork.io/customer/v2/customer/limits/client"
payload = {
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
downloaded_bytes: 549755813888,
uploaded_bytes: 549755813888,
download_speed: 52428800,
upload_speed: 52428800,
max_sessions: 5,
max_reconnections: 20
})
};
fetch('https://api.pingnetwork.io/customer/v2/customer/limits/client', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pingnetwork.io/customer/v2/customer/limits/client",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'downloaded_bytes' => 549755813888,
'uploaded_bytes' => 549755813888,
'download_speed' => 52428800,
'upload_speed' => 52428800,
'max_sessions' => 5,
'max_reconnections' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pingnetwork.io/customer/v2/customer/limits/client"
payload := strings.NewReader("{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.pingnetwork.io/customer/v2/customer/limits/client")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pingnetwork.io/customer/v2/customer/limits/client")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"downloaded_bytes\": 549755813888,\n \"uploaded_bytes\": 549755813888,\n \"download_speed\": 52428800,\n \"upload_speed\": 52428800,\n \"max_sessions\": 5,\n \"max_reconnections\": 20\n}"
response = http.request(request)
puts response.read_body{
"id": "cl_123456789",
"created_at": "2025-02-28T14:30:00.000Z",
"updated_at": "2025-02-28T14:30:00.000Z",
"downloaded_bytes": 549755813888,
"uploaded_bytes": 549755813888,
"download_speed": 52428800,
"upload_speed": 52428800,
"max_sessions": 5,
"max_reconnections": 20
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Body
application/json
Client limits update request
Download limit in bytes
Example:
549755813888
Upload limit in bytes
Example:
549755813888
Download speed limit in bytes/s
Example:
52428800
Upload speed limit in bytes/s
Example:
52428800
Maximum concurrent sessions
Example:
5
Maximum reconnections in a session
Example:
20
Response
Client limits updated successfully
Unique identifier for the client limits
Example:
"cl_123456789"
Creation timestamp
Example:
"2025-02-28T14:30:00.000Z"
Last update timestamp
Example:
"2025-02-28T14:30:00.000Z"
Download limit in bytes
Example:
549755813888
Upload limit in bytes
Example:
549755813888
Download speed limit in bytes/s
Example:
52428800
Upload speed limit in bytes/s
Example:
52428800
Maximum concurrent sessions
Example:
5
Maximum reconnections in a session
Example:
20
⌘I