curl
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 白名单或自定义名单,或更新其描述。系统名单无法修改。
PATCH
/
v3
/
lists
/
{list_uuid}
/
curl
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 的“开发者 -> API 密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域:针对每个资源设为无权限、只读或读写,限定于特定工作流或已通过的会话、限定于 IP 地址列表,以及设置到期日期。401 表示密钥错误、已撤销或已过期;403 表示未发送密钥、密钥无权访问该资源或操作,或请求来自其 IP 列表之外的地址;在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF URL 将为 null;没有会话写入权限的密钥获取到的会话链接和 token 将为 null。请参阅 https://docs.didit.me/console/api-keys。
路径参数
列表的 UUID,如列出列表或创建列表所返回。
请求体
application/json
最后修改于 2026年11月7日