OBU
June 24, 2023, 4:30am
1
Hi Cloudflare,
I’m trying to POST to https://api.cloudflare.com/client/v4/accounts/account_identifier/rules/lists/list_id/items to dynamically add IP Addresses to my list, but I can’t figure out what permission to give my token. There doesn’t seem to be an IP List permission…
When I added the Filter List permission, the request said my list_id couldn’t be found.
Thanks
I believe filter list is the correct permissions. If you are getting a 404 when your list couldn’t be found, it means you have the wrong id for it.
1 Like
OBU
June 25, 2023, 1:13pm
5
Thanks… is the list_id
just the name of the list that I typed when I created it? Or is the id something else?
The ID is the UUID of the list. If you open the list from https://dash.cloudflare.com/?to=/:account/configurations/lists it will be the last element of the URL.
1 Like
OBU
June 26, 2023, 9:13pm
7
Oh thanks!
That’s a bit confusing, as the interface calls the name an “ID” and doesn’t display the UUID anywhere…
cam3
August 10, 2023, 1:38pm
8
Thanks Cyb3r-Jak3, that’s very helpful I couldn’t find the documentation for this, as I too was using the ID named $listname and kept receiving 1000 errors.