identity.org-invitation.decline ​
Recipient declines a pending organization invitation
Decline a pending organization invitation as the recipient.
Inputs:
- invitation_uuid: Invitation UUID (required)
- actor: Cognito sub or user UUID of the recipient (required)
Outputs (terminal state_data):
- invitation_uuid
- declined: bool
- previous_status
- reason: None on success, or short-circuit reason
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
actor | string | Yes | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
invitation_uuid | uuid | Yes | — | — |
declined | boolean | Yes | — | — |
previous_status | string | No | — | — |
declined_at | datetime | No | — | — |
reason | 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 | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "identity.org-invitation.decline",
"initial_data": {
"invitation_uuid": "value",
"actor": "value"
}
}