Skip to content

Manage group administrators #232

@daniel-lerch

Description

@daniel-lerch

Feature Request

Thanks to the great work around #210 signal-cli-rest-api will be able to manage group members with the next release 🥳

The next step would be to show, add and remove group administrators.

API proposal

GET /v1/groups/{number}

For each group include an array of admins:

{
  "admins": [
    "string"
  ],
  "blocked": true,
  "id": "string",
  "internal_id": "string",
  "invite_link": "string",
  "members": [
    "string"
  ],
  "name": "string",
  "pending_invites": [
    "string"
  ],
  "pending_requests": [
    "string"
  ]
}

GET /v1/groups/{number}/{groupid}

Include an array of admins similar like shown above.

POST /v1/groups/{number}/{groupid}/admins

Similar endpoint like for adding group members.

{
  "admins": [
    "string"
  ]
}

DELETE /v1/groups/{number}/{groupid}/admins

Similar endpoint like for removing group members.

{
  "admins": [
    "string"
  ]
}

As of my applications, adding a new field to a JSON object would be a non-breaking change.

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