Skip to content

Commit

Permalink
[docs] Add doc for GET /info-admin-only
Browse files Browse the repository at this point in the history
  • Loading branch information
allburov committed Nov 20, 2023
1 parent e0c594a commit 4ef06d7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/site/content/en/docs/how-to/engines/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | ✔️ | ✔️ ||
Expand Down
7 changes: 6 additions & 1 deletion docs/site/content/en/docs/how-to/groups/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/site/content/en/docs/overview/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ef06d7

Please sign in to comment.