Skip to content

DELETE /v1/groups/{number}/{groupId} fails when bot is last admin — two-step workaround needed #794

@mikemorgenstern

Description

@mikemorgenstern

When a bot creates a group it becomes the sole admin, and DELETE .../groups then always fails with "User is last admin." The POST .../quit endpoint also fails the same way since it doesn't accept an admin param. The correct workaround is POST .../admins first (which actually works), then DELETE. Would be a nice improvement if DELETE handled this internally, or at minimum if the docs mentioned the pattern.

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