| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/waf/tools/lists/lists-api/endpoints/ | [Back] [Original] |
To invoke a Lists API operation, append the endpoint to the Cloudflare API base URL:
https://api.cloudflare.com/client/v4/
For authentication instructions, refer to the Cloudflare API's Get started page.
For help with making API calls and paginating results, refer to Make API calls.
Note
The Lists API endpoints require a value for {account_id}.
To retrieve a list of accounts to which you have access, use the List Accounts operation and note the IDs of the accounts you want to manage.
The Lists API supports the operations outlined below. Visit the associated links for examples.
POST accounts/{account_id}/rules/listsGET accounts/{account_id}/rules/listsGET accounts/{account_id}/rules/lists/{list_id}PUT accounts/{account_id}/rules/lists/{list_id}description of a list.name or kind, and you cannot update items in a list. To update an item in a list, use the Update all list items operation.DELETE accounts/{account_id}/rules/lists/{list_id}Nearly all the operations for managing items in a list are asynchronous. When you add or delete a large amount of items to or from a list, there may be a delay before the bulk operation is complete.
Asynchronous list operations return an operation_id, which you can use to monitor the status of an API operation. To monitor the status of an asynchronous operation, use the Get bulk operation status endpoint and specify the ID of the operation you want to monitor.
When you make requests to a list while a bulk operation on that list is in progress, the requests are queued and processed in sequence (first in, first out). Requests for successful asynchronous operations return an HTTP 201 status code.
GET accounts/{account_id}/rules/lists/{list_id}/items[?search={query}]search query string parameter. For more information, refer to the Get list items API operation.GET accounts/{account_id}/rules/lists/{list_id}/items/{item_id}POST accounts/{account_id}/rules/lists/{list_id}/itemscomment of the original item.operation_id.PUT accounts/{account_id}/rules/lists/{list_id}/itemsitems.items is empty, deletes all items in the list.operation_id.DELETE accounts/{account_id}/rules/lists/{list_id}/itemsoperation_id.| Web Proxy Viewer | New URL | Original Page |