wasender.groups.update_settings ​
Update a group's settings
Update a group's settings (subject/description/announce/restrict) via PUT /groups/{groupJid}/settings; requires the session to be a group admin.
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- group_jid: str — group JID (path param groupJid).
- subject, description, announce, restrict — optional setting changes.
Outputs (terminal state_data):
- group_jid, subject, description, announce, restrict, settings
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | Yes | — | Cloud connection holding the Wasender credential |
group_jid | string | Yes | — | Group JID (path param groupJid) |
subject | string | No | — | New group subject/name |
description | string | No | — | New group description |
announce | boolean | No | — | Announce mode (only admins can send messages) |
restrict | boolean | No | — | Restrict mode (only admins can edit group info) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
group_jid | string | No | — | — |
subject | string | No | — | — |
description | string | No | — | — |
announce | boolean | No | — | — |
restrict | boolean | No | — | — |
settings | json | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | integer | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.groups.update_settings",
"initial_data": {
"cloud_connection_uuid": "value",
"group_jid": "value"
}
}