data.identity.notification-pref.update ​
Patch an active UserNotificationPreference row
Patch an existing (non-deleted) UserNotificationPreference row.
Input: preference_uuid + organization_uuid (required), optional patch fields. Output in state_data: preference_uuid, updated_fields (list), updated_at.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
preference_uuid | uuid | Yes | — | — |
organization_uuid | uuid | Yes | — | — |
in_app_enabled | boolean | No | — | — |
email_enabled | boolean | No | — | — |
email_digest | string | No | — | — |
quiet_hours_enabled | boolean | No | — | — |
quiet_hours_start | string | No | — | — |
quiet_hours_end | string | No | — | — |
quiet_hours_timezone | string | No | — | — |
muted_until | string | No | — | — |
clear_mute | boolean | No | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
preference_uuid | string | Yes | — | — |
updated_fields | list | Yes | — | — |
updated_at | string | Yes | — | — |
organization_uuid | uuid | No | — | — |
actor | string | No | — | — |
in_app_enabled | boolean | No | — | — |
email_enabled | boolean | No | — | — |
email_digest | string | No | — | — |
quiet_hours_enabled | boolean | No | — | — |
quiet_hours_start | string | No | — | — |
quiet_hours_end | string | No | — | — |
quiet_hours_timezone | 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 | — | complete | Update notification preference |
completed | No | Yes | Yes | — | Updated |
failed | No | Yes | No | — | Update failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.identity.notification-pref.update",
"initial_data": {
"preference_uuid": "value",
"organization_uuid": "value"
}
}