data.identity.org-invitation.update ​
Patch status/timestamps on an OrganizationInvitation row
Patch status fields on an existing OrganizationInvitation row.
Input: invitation_uuid + organization_uuid (required), status (required). Output in state_data: invitation_uuid, previous_status, new_status, updated_fields, updated_at.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
organization_uuid | uuid | Yes | — | Tenant check — must match the invitation's organization |
status | string | Yes | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
previous_status | string | No | — | — |
new_status | string | Yes | — | — |
updated_fields | list | Yes | — | — |
updated_at | datetime | Yes | — | — |
organization_uuid | uuid | No | — | — |
status | string | No | — | — |
actor | 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 invitation |
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.org-invitation.update",
"initial_data": {
"invitation_uuid": "value",
"organization_uuid": "value",
"status": "value"
}
}