Zero TrustZero Trust Lists

Patch Zero Trust list

PATCH
Appends or removes an item from a configured Zero Trust list.

Path parameters

uuidstringRequired
API Resource UUID tag.
identifierstringRequired

Request

This endpoint expects an object.
append
list of objectsOptional
The items in the list.
remove
list of stringsOptional
A list of the item values you want to remove.

Response

This endpoint returns an object
result
objectOptional
PATCH
1curl -X PATCH https://api.cloudflare.com/client/v4/accounts/699d98642c564d2e855e9661899b7252/gateway/lists/f174e90a-fafe-4643-bbbc-4a0ed4fc8415 \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "append": [
6 {
7 "created_at": "2014-01-01T05:20:00.12345Z",
8 "value": "8GE8721REF"
9 }
10 ],
11 "remove": [
12 "8GE8721REF"
13 ]
14}'
200Updated
1{
2 "result": {
3 "count": 20,
4 "created_at": "2014-01-01T05:20:00.12345Z",
5 "description": "The serial numbers for administrators",
6 "id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
7 "name": "Admin Serial Numbers",
8 "type": "SERIAL",
9 "updated_at": "2014-01-01T05:20:00.12345Z"
10 }
11}