Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.notification-pref.soft_delete ​

Soft-delete a UserNotificationPreference row (idempotent)

Soft-delete a UserNotificationPreference row (idempotent).

Input: preference_uuid + organization_uuid (required), optional actor. Output in state_data: preference_uuid, deleted, already_deleted, deleted_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
preference_uuiduuidYes——
organization_uuiduuidYes—Tenant check — must match the preference's organization
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
preference_uuiduuidYes——
deletedbooleanYes——
already_deletedbooleanYes——
deleted_atstringNo——
organization_uuiduuidNo——
actorstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completeSoft-delete notification preference
completedNoYesYes—Deleted
failedNoYesNo—Delete failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

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

{
  "workflow_type": "data.identity.notification-pref.soft_delete",
  "initial_data": {
    "preference_uuid": "value",
    "organization_uuid": "value"
  }
}