signal-cli-rest-api icon indicating copy to clipboard operation
signal-cli-rest-api copied to clipboard

Add ability to reset group link, update group link state and group permissions

Open EnriqCG opened this issue 1 year ago • 0 comments

Feature Request

The endpoint that updates the state of a Signal group (/v1/groups/:number/:groupId) only accepts three properties as input data:

{
  "base64_avatar": "string",
  "description": "string",
  "name": "string"
}

The client function only accepts these parameters, so they can't be passed to the endpoint: https://github.com/bbernhard/signal-cli-rest-api/blob/1506c1c9d4002d51bd40c4004861534964eb5054/src/client/client.go#L1561

I suggest adding support for updating the group_link and permissions, like the create group endpoint supports:

"group_link": "string",
"permissions": {
    "add_members": "string",
    "edit_group": "string"
}

Additionally, it would be great to have the ability to reset a group link. signal-cli already supports the --reset-link option on the updateGroup command.

EnriqCG avatar Oct 03 '24 21:10 EnriqCG