Skip to content

Change the status of a membership for a group specified by id #25

@j1jlee

Description

@j1jlee

Change the status of a membership for a group specified by id

Change the status of a membership for a group specified by id.

  • An authenticated user is required for a successful response
  • Only the owner of the group or a member of the group with a membership
    status of "co-host" is authorized to change the status of a membership
  • Membership record is updated in the database after request
  • Success response includes the id groupId, memberId, and the new
    status
  • Error response with status 404 is given when a group does not exist with
    the provided id
  • Error response with status 403 is given when changing the status to
    "co-host" when the current user is not the group organizer
  • Error response with status 403 is given when changing the status to
    "member" when the current user is not the group organizer
    or a co-host
  • Error response with status 400 is given when changing the status to
    "pending"
  • Error response with status 404 is given when a membership between the user
    and group does not exist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions