Skip to content
Proud to collaborate with Microsoft for Startups

identity.notification-pref.update ​

Update the current user's notification preferences

Patch the current user's notification preferences for an organization.

Inputs:

  • actor: Cognito sub or user UUID (required)
  • organization_uuid: Organization ID (required)
  • preference_uuid: optional override; when omitted, resolved from actor+org
  • in_app_enabled, email_enabled, email_digest (optional)
  • quiet_hours_enabled, quiet_hours_start, quiet_hours_end, quiet_hours_timezone (optional)

Outputs (terminal state_data):

  • preference_uuid
  • updated_fields
  • created: true if the row had to be persisted first

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
actorstringYes——
organization_uuiduuidYes——
preference_uuiduuidNo——
in_app_enabledbooleanNo——
email_enabledbooleanNo——
email_digeststringNo——
quiet_hours_enabledbooleanNo——
quiet_hours_startstringNo——
quiet_hours_endstringNo——
quiet_hours_timezonestringNo——
muted_untilstringNo——
clear_mutebooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
actorstringNo——
organization_uuiduuidNo——
preference_uuidstringNo——
updated_fieldslistNo——
createdbooleanYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "identity.notification-pref.update",
  "initial_data": {
    "actor": "value",
    "organization_uuid": "value"
  }
}