wasender.contacts.upsert ​
Create or update a Wasender contact
Create or update an address-book contact (PUT /contacts).
Inputs:
- cloud_connection_uuid: UUID — the cloud connection holding the Wasender token.
- phone: str — contact phone number.
- name: str — contact display name.
- metadata: dict — additional provider-accepted contact attributes (optional).
Outputs (terminal state_data):
- contact: dict — provider-opaque created/updated contact object
- success: bool — provider success flag
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 |
phone | string | Yes | — | Contact phone number |
name | string | Yes | — | Contact display name |
metadata | dict | No | — | Additional provider-accepted contact attributes |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloud_connection_uuid | uuid | No | — | — |
phone | string | No | — | — |
name | string | No | — | — |
contact | json | No | — | Provider-opaque created/updated contact object |
success | boolean | No | — | Provider success flag |
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.contacts.upsert",
"initial_data": {
"cloud_connection_uuid": "value",
"phone": "value",
"name": "value"
}
}