Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/waf/tools/lists/create-dashboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ To create a list, follow these steps:
4. To [add items using a CSV file](#add-items-using-a-csv-file), select **Upload CSV**.

:::note[Notes]
<Render file="lists-import-notes" product="fundamentals" />
<Render file="lists-import-notes" product="fundamentals" />
:::

### Add items to a list manually
Expand Down
12 changes: 6 additions & 6 deletions src/content/docs/waf/tools/lists/lists-api/endpoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ When you make requests to a list while a bulk operation on that list is in progr

- **Operation**: [Get list items](/api/resources/rules/subresources/lists/subresources/items/methods/list/)
- **Method and endpoints**: `GET accounts/{account_id}/rules/lists/{list_id}/items[?search={query}]`
- **Notes**:
- **Notes**:
- Fetches items in a list (all items, by default).
- Items are sorted in ascending order.
- In the case of IP lists, CIDRs are sorted by IP address, then by the subnet mask.
Expand All @@ -63,22 +63,22 @@ When you make requests to a list while a bulk operation on that list is in progr
- **Operation**: [Get a list item](/api/resources/rules/subresources/lists/subresources/items/methods/get/)
- **Method and endpoints**: `GET accounts/{account_id}/rules/lists/{list_id}/items/{item_id}`
- **Notes**: Fetches an item from a list by ID

### Create list items

- **Operation**: [Create list items](/api/resources/rules/subresources/lists/subresources/items/methods/create/)
- **Method and endpoints**: `POST accounts/{account_id}/rules/lists/{list_id}/items`
- **Notes**:
- **Notes**:
- Appends a new item or items to a list.
- Replaces entries that already exist in the list, does not delete any items.
- Overwrites the `comment` of the original item.
- The response includes an `operation_id`.

### Update all list items

- **Operation**: [Update all list items](/api/resources/rules/subresources/lists/subresources/items/methods/update/)
- **Method and endpoints**: `PUT accounts/{account_id}/rules/lists/{list_id}/items`
- **Notes**:
- **Notes**:
- Deletes all current items in the list and replaces them with `items`.
- When `items` is empty, deletes **all** items in the list.
- The response includes an `operation_id`.
Expand All @@ -87,6 +87,6 @@ When you make requests to a list while a bulk operation on that list is in progr

- **Operation**: [Delete list items](/api/resources/rules/subresources/lists/subresources/items/methods/delete/)
- **Method and endpoints**: `DELETE accounts/{account_id}/rules/lists/{list_id}/items`
- **Notes**:
- **Notes**:
- Deletes specified list items.
- The response includes an `operation_id`.