Skip to content

Add cursor argument to files.list, enabling cursor-based pagination - #91

Open
dblock wants to merge 1 commit into
slack-ruby:masterfrom
dblock:add-files-list-cursor
Open

Add cursor argument to files.list, enabling cursor-based pagination#91
dblock wants to merge 1 commit into
slack-ruby:masterfrom
dblock:add-files-list-cursor

Conversation

@dblock

@dblock dblock commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Slack's files.list API supports cursor-based pagination via the cursor argument (in addition to legacy page/count), but this argument is missing from the scraped docs at docs.slack.dev. This adds it via a patch file (methods/_patches/files/files.list.json), following the existing patch mechanism.

This unblocks generating a paginated files_list method in slack-ruby-client, fixing slack-ruby/slack-ruby-client#299 (files_list does not paginate).

Prior art: rangerscience/slack-ruby-client patched files_list directly in slack-ruby-client instead, but the correct fix is here in slack-api-ref so the generated method picks up cursor support automatically.

Slack's files.list API supports cursor-based pagination via the
cursor argument (in addition to legacy page/count), but this was
missing from the scraped docs. Add it as a patch so slack-ruby-client
can generate a paginated files_list method.

This fixes slack-ruby/slack-ruby-client#299, following the same
approach as https://github.com/rangerscience/slack-ruby-client (which
patched files_list directly instead of going through slack-api-ref).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant