wasender.messages.edit ​
Edit a recently-sent message
Edit the text of a recently-sent message via PUT /messages/{msgId}.
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- msgId: str — provider message ID to edit (path parameter).
- text: str — new message body text.
Outputs (terminal state_data):
- message_id: str — ID of the edited message.
- status: str — result status string.
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 |
msgId | string | Yes | — | Provider message ID to edit (path parameter) |
text | string | Yes | — | New message body text |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
message_id | string | No | — | — |
status | string | 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.messages.edit",
"initial_data": {
"cloud_connection_uuid": "value",
"msgId": "value",
"text": "value"
}
}