translation.apply_proposal ​
Applies approved diffs to create/update/delete translation values
Applies approved translation proposal diffs.
Input fields: proposal_uuid, diff_uuids (optional), applied_by_user_uuid (optional)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-translation |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
proposal_uuid | uuid | Yes | — | Proposal UUID to apply |
diff_uuids | list | No | — | Specific diff UUIDs to apply (applies all if omitted) |
applied_by_user_uuid | uuid | No | — | User UUID applying the proposal |
trace_ref | string | No | — | Trace reference for request correlation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
proposal_uuid | uuid | No | — | — |
project_uuid | uuid | No | — | — |
diff_uuids | list | No | — | — |
total_diffs | integer | No | — | — |
applied_by_user_uuid | uuid | No | — | — |
trace_ref | string | No | — | — |
values_created | integer | No | — | — |
values_updated | integer | No | — | — |
values_deleted | integer | No | — | — |
errors | list | No | — | — |
completed_at | string | No | — | — |
failed_at | 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 |
|---|---|---|---|---|---|
initiated | Yes | No | — | validate_proposal | — |
finalizing | No | No | — | complete | — |
processing | No | No | — | finalize_proposal | — |
validating | No | No | — | process_diffs | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | validate_proposal | validating | — |
validating | process_diffs | processing | — |
processing | finalize_proposal | finalizing | — |
finalizing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "translation.apply_proposal",
"initial_data": {
"proposal_uuid": "value"
}
}