spacebarchat / spacebarchat/server

PUT /guilds/:id/roles/:id/members

Open
#445 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Module: API Route
Dominant language
TypeScript
Stars
2.2k
Forks
323
Avg merge
14h 48m
Merged PRs (30d)
4

Description

To bulk replace all members of a role at once. Request format is otherwise identical to PATCH to the same path.

Unlike the PATCH method, this shall overwrite the existing memberships of the role.

Can be implemented internally as:

  1. Clone the role.
  2. Change the memberships in the new role.
  3. Swap the IDs.
  4. Delete the old role (the one now having bigger ID).

Contributor guide

Open the contributing guide

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.

Research direction

Start by comparing the requested PUT /guilds/:id/roles/:id/members behavior with PATCH on the same path. Trace the existing role membership update flow, then implement replacement semantics so the submitted memberships overwrite the current set; done means the endpoint accepts the PATCH-equivalent request format and leaves only the requested members assigned.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.