identity.user.update ​
Update the current user's profile (name, username, avatar_url)
Update the current user's profile fields.
Inputs:
- actor: Cognito sub or user UUID (required)
- name: Display name (optional)
- username: Username (optional)
- avatar_url: Avatar URL (optional)
Outputs (terminal state_data):
- user_uuid
- updated_fields: list of field names that changed
- updated_at
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
actor | string | Yes | — | — |
organization_uuid | uuid | No | — | — |
name | string | No | — | — |
username | string | No | — | — |
avatar_url | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
user_uuid | uuid | Yes | — | — |
updated_fields | list | Yes | — | — |
updated_at | datetime | Yes | — | — |
actor | string | No | — | — |
organization_uuid | uuid | No | — | — |
name | 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 | string | 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": "identity.user.update",
"initial_data": {
"actor": "value"
}
}