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"
}Update List API: Edit Compliance List
PATCH /v3/lists//: rename or update the description of a Didit allowlist or custom list. System lists cannot be modified.
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 and entry_type keep the values they were created with. System lists cannot be modified and return 400.
The response contains only name and description. Call Get list for the full list.Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Path Parameters
UUID of the list, as returned by List lists or Create a list.