From 4ef06d7b92abaf852773fe15ecef06bd36ce7d6e Mon Sep 17 00:00:00 2001 From: allburov Date: Mon, 20 Nov 2023 16:25:21 +0700 Subject: [PATCH] [docs] Add doc for GET /info-admin-only --- docs/site/content/en/docs/how-to/engines/index.md | 1 + docs/site/content/en/docs/how-to/groups/index.md | 7 ++++++- docs/site/content/en/docs/overview/changelog.md | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/site/content/en/docs/how-to/engines/index.md b/docs/site/content/en/docs/how-to/engines/index.md index d0265f77..d114d9b7 100644 --- a/docs/site/content/en/docs/how-to/engines/index.md +++ b/docs/site/content/en/docs/how-to/engines/index.md @@ -160,6 +160,7 @@ please [create an issue](https://github.com/devlikeapro/whatsapp-http-api/issues | `GET /api/{session}/groups` | ✔️ | ✔️ | ➖ | | `GET /api/{session}/groups/{id}` | ✔️ | ✔️ | ➖ | | `DELETE /api/{session}/groups/{id}` | ✔️ | ➖ | ➖ | +| `GET /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | ➖ | ➖ | | `PUT /api/{session}/groups/{id}/settings/security/info-admin-only` | ✔️ | ➖ | ➖ | | `POST /api/{session}/groups/{id}/leave` | ✔️ | ✔️ | ➖ | | `PUT /api/{session}/groups/{id}/description` | ✔️ | ✔️ | ➖ | diff --git a/docs/site/content/en/docs/how-to/groups/index.md b/docs/site/content/en/docs/how-to/groups/index.md index 388d81ef..912f09fc 100644 --- a/docs/site/content/en/docs/how-to/groups/index.md +++ b/docs/site/content/en/docs/how-to/groups/index.md @@ -90,7 +90,12 @@ Request: ### Settings #### Security for group info Updates the group settings to only allow admins to edit group info (title, description, photo). - +`GET /api/{session}/groups/{groupId}/settings/security/info-admin-only` +```json +{ + "adminsOnly": true +} +``` `PUT /api/{session}/groups/{groupId}/settings/security/info-admin-only` The request doesn't require any request's body and diff --git a/docs/site/content/en/docs/overview/changelog.md b/docs/site/content/en/docs/overview/changelog.md index 4ec43292..e6042b9d 100644 --- a/docs/site/content/en/docs/overview/changelog.md +++ b/docs/site/content/en/docs/overview/changelog.md @@ -22,6 +22,7 @@ You even can **subscribe to get new updates** there! ## 2023.11 November 2023 - Add `/api/sendVideo` endpoint to **NOWEB** and **WEBJS** engines. Available only in Plus version. +- Add security settings for edit group info `GET /api/{session}/groups/{groupId}/settings/security/info-admin-only` - updates the group settings to only allow admins to edit group info (title, description, photo). ## 2023.10 October 2023