feat(web-api): add support for parent_id parameter to bookmarks.list method

Open
#2,540 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
api

Research direction

Start in the @slack/web-api implementation and tests for the bookmarks.list method, then compare its exposed fields with bookmarks.add, which already documents parent_id. Confirm how the SDK represents bookmark results; done means bookmarks.list exposes parent_id for returned bookmarks and the relevant tests pass.

Written by the indexing model from the issue text.

Description

auto-triage-skip enhancement pkg:web-api server-side-issue
Package

@slack/web-api

Question

I'm trying to build an app that dynamically writes bookmark links to specific folders. Whilst bookmarks.add does indicate it's possible to specify a parent_id it looks like bookmarks.list doesn't expose them (see result below).

Is that right or am I missing something? If I am is there a plan to expose these ids sometime?

Thanks, Mark

@filmaj - you were very helpful a couple of years ago - If this is in your bailiwick would you take a look? Thanks

{"message":"Bookmark debug list","channel_id":"C0A2","count":2,"bookmarks":[{"id":"Bk0ANJFDG10X","title":"My link","type":"link","parent_id":"","link":"https://bramblegroup.slack.com/archives/C01SL.../p1774438786797799"},{"id":"Bk0APD1DUV5X","title":"Another Link","type":"link","parent_id":"","link":"https://bramblegroup.slack.com/archives/C01SL.../p1774438786797799"}]}

SDK Version

No response

Node.js Version

No response

Additional Context

No response

Dominant language
TypeScript
Stars
3.4k
Forks
693
Avg merge
1d 1h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from slackapi/node-slack-sdk

All issues in slackapi/node-slack-sdk

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.