Forum Discussion
API Guide: Resubmitting from a specific Action in Logic Apps Standard
In collaboration with Sofia Hubendick
This how-to article explains the process of resubmitting a Logic App Standard from a specific action via API. If you want to resubmit the workflow from the beginning, you can use the https://learn.microsoft.com/sv-se/rest/api/appservice/workflow-trigger-histories/resubmit?view=rest-appservice-2024-04-01&tabs=HTTP instead.
Workflow Run Histories - Resubmit
Authentication
I used a managed identity for authentication, which simplifies the process by eliminating the need to obtain a token manually. Additionally, I implemented the new Logic App Standard Operator role.
URL
The URL for resubmitting an action looks like this:
https://management.azure.com/subscriptions/[subscriptionId]/resourceGroups/[resourceGroupName]/providers/Microsoft.Web/sites/[logicAppName]/hostruntime/runtime/webhooks/workflow/api/management/workflows/[workflowName]/runs/[runId]/resubmit?api-version=2022-03-01
Mandatory URL Path Parameters
Name | Description |
subscriptionId | The Azure subscription Id |
resourceGroupName | The name of the resource group containing the Logic App |
logicAppName | The name of the Logic App |
workflowName | The name of the workflow |
runId | The id of the workflow run to be resubmitted |
Request Body
The API request body is structured as follows; replace the placeholder with the name of the action:
{
"actionsToResubmit": [
{
"name": "[action name]"
}
]
}
Response
Name | Description |
202 Accepted | OK |
Other Status Codes | Error response describing why the operation failed. |