Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.notification-pref.persist ​

Create or restore a UserNotificationPreference row

Persist a UserNotificationPreference record: create new, restore soft-deleted, or return the existing active row.

Input: user_uuid + organization_uuid + organization_uuid (required), optional channel/quiet-hours settings, optional actor. Output in state_data: preference_uuid, persisted, restored, persisted_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
user_uuiduuidYes——
organization_uuiduuidYes——
in_app_enabledbooleanNo——
email_enabledbooleanNo——
email_digeststringNo——
quiet_hours_enabledbooleanNo——
quiet_hours_startstringNo——
quiet_hours_endstringNo——
quiet_hours_timezonestringNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
preference_uuidstringYes——
persistedbooleanYes——
restoredbooleanYes——
persisted_atstringYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completePersist notification preference
completedNoYesYes—Persisted
failedNoYesNo—Persist failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.identity.notification-pref.persist",
  "initial_data": {
    "user_uuid": "value",
    "organization_uuid": "value"
  }
}