curl -X PATCH 'https://verification.didit.me/v3/lists/11111111-2222-3333-4444-555555555555/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name": "Trusted office and VPN IPs"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.lists.update(
"11111111-2222-3333-4444-555555555555",
name="Trusted office and VPN IPs",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.lists.update("11111111-2222-3333-4444-555555555555", {
name: "Trusted office and VPN IPs",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Lists.Update(ctx, "11111111-2222-3333-4444-555555555555", didit.ListsUpdateParams{
Name: didit.String("Trusted office and VPN IPs"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.ListsUpdateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.lists().update("11111111-2222-3333-4444-555555555555", ListsUpdateParams.builder()
.name("Trusted office and VPN IPs")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->lists->update('11111111-2222-3333-4444-555555555555', [
'name' => 'Trusted office and VPN IPs',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.lists.update(
"11111111-2222-3333-4444-555555555555",
name: "Trusted office and VPN IPs"
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Lists.UpdateAsync("11111111-2222-3333-4444-555555555555", new ListsUpdateParams
{
Name = "Trusted office and VPN IPs",
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"name": "Trusted office and VPN IPs",
"description": "Office egress ranges"
}सूची अपडेट API: अनुपालन सूची संपादित करें
PATCH /v3/lists// से Didit की allowlist या custom list का नाम या विवरण अपडेट करें। सिस्टम सूचियों को संशोधित नहीं किया जा सकता।
curl -X PATCH 'https://verification.didit.me/v3/lists/11111111-2222-3333-4444-555555555555/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name": "Trusted office and VPN IPs"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.lists.update(
"11111111-2222-3333-4444-555555555555",
name="Trusted office and VPN IPs",
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.lists.update("11111111-2222-3333-4444-555555555555", {
name: "Trusted office and VPN IPs",
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Lists.Update(ctx, "11111111-2222-3333-4444-555555555555", didit.ListsUpdateParams{
Name: didit.String("Trusted office and VPN IPs"),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import me.didit.Didit;
import me.didit.types.ListsUpdateParams;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.lists().update("11111111-2222-3333-4444-555555555555", ListsUpdateParams.builder()
.name("Trusted office and VPN IPs")
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->lists->update('11111111-2222-3333-4444-555555555555', [
'name' => 'Trusted office and VPN IPs',
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.lists.update(
"11111111-2222-3333-4444-555555555555",
name: "Trusted office and VPN IPs"
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Lists.UpdateAsync("11111111-2222-3333-4444-555555555555", new ListsUpdateParams
{
Name = "Trusted office and VPN IPs",
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"name": "Trusted office and VPN IPs",
"description": "Office egress ranges"
}list_type और entry_type अपने बनाए जाने के समय वाले मानों पर ही बने रहते हैं। सिस्टम सूचियों को संशोधित नहीं किया जा सकता और ऐसा अनुरोध करने पर 400 लौटता है।
रिस्पॉन्स में केवल name और description शामिल होते हैं। पूरी सूची के लिए सूची प्राप्त करें कॉल करें।प्राधिकरण
आपकी एप्लिकेशन की API कुंजी, Business Console में Developers -> API keys से। प्राथमिक कुंजी के पास पूर्ण एक्सेस होता है। एक नामित कुंजी को स्कोप किया जा सकता है: प्रति संसाधन none, read या write, कुछ वर्कफ़्लो या स्वीकृत सत्रों तक सीमित, IP पतों की सूची तक सीमित, और समाप्ति तिथि तक सीमित। 401 का अर्थ है कि कुंजी गलत है, निरस्त कर दी गई है या उसकी समय-सीमा समाप्त हो गई है; 403 का अर्थ है कि कोई कुंजी नहीं भेजी गई थी, कुंजी के पास इस संसाधन या कार्रवाई का एक्सेस नहीं है, या अनुरोध उसकी IP सूची से बाहर के पते से आया था; सत्र रूट पर 404 का अर्थ है कि सत्र कुंजी के वर्कफ़्लो या स्थितियों से बाहर है। मीडिया एक्सेस के बिना एक कुंजी को छवि, वीडियो और PDF URL null के रूप में प्राप्त होते हैं, और सत्र write के बिना एक कुंजी को सत्र लिंक और token null के रूप में प्राप्त होते हैं। देखें https://docs.didit.me/console/api-keys।
पथ पैरामीटर
सूची का UUID, जैसा कि List lists या Create a list द्वारा लौटाया गया है।