Lists
Get a list
client.Rules.Lists.Get(ctx, listID, query) (*ListGetResponse, error)
GET/accounts/{account_id}/rules/lists/{list_id}
Create a list
client.Rules.Lists.New(ctx, params) (*ListNewResponse, error)
POST/accounts/{account_id}/rules/lists
Update a list
client.Rules.Lists.Update(ctx, listID, params) (*ListUpdateResponse, error)
PUT/accounts/{account_id}/rules/lists/{list_id}
Delete a list
client.Rules.Lists.Delete(ctx, listID, body) (*ListDeleteResponse, error)
DELETE/accounts/{account_id}/rules/lists/{list_id}
ListsBulk Operations
Get bulk operation status
client.Rules.Lists.BulkOperations.Get(ctx, operationID, query) (*ListBulkOperationGetResponse, error)
GET/accounts/{account_id}/rules/lists/bulk_operations/{operation_id}
ListsItems
Get list items
client.Rules.Lists.Items.List(ctx, listID, params) (*CursorPaginationAfter[ListItemListResponse], error)
GET/accounts/{account_id}/rules/lists/{list_id}/items
Get a list item
client.Rules.Lists.Items.Get(ctx, listID, itemID, query) (*ListItemGetResponse, error)
GET/accounts/{account_id}/rules/lists/{list_id}/items/{item_id}
Create list items
client.Rules.Lists.Items.New(ctx, listID, params) (*ListItemNewResponse, error)
POST/accounts/{account_id}/rules/lists/{list_id}/items
Update all list items
client.Rules.Lists.Items.Update(ctx, listID, params) (*ListItemUpdateResponse, error)
PUT/accounts/{account_id}/rules/lists/{list_id}/items
Delete list items
client.Rules.Lists.Items.Delete(ctx, listID, params) (*ListItemDeleteResponse, error)
DELETE/accounts/{account_id}/rules/lists/{list_id}/items