workflow: restore
Namespace: microsoft.graph.identityGovernance
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Restore a workflow that has been deleted. You can only restore a workflow that was deleted within the last 30 days before Azure AD automatically permanently deletes it.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | LifecycleWorkflows.Read.All, LifecycleWorkflows.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | LifecycleWorkflows.Read.All, LifecycleWorkflows.ReadWrite.All |
For delegated scenarios, the admin needs one of the following Azure AD roles:
- Global administrator
- Lifecycle workflows administrator
HTTP request
POST /identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflowId}/restore
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this action returns a 200 OK
response code and a microsoft.graph.identityGovernance.workflow in the response body.
Examples
Request
The following is an example of a request.
POST https://graph.microsoft.com/beta/identityGovernance/lifecycleWorkflows/deletedItems/workflows/4c9c57b9-e1e9-4bed-a936-4fad9d8f5638/restore
Response
The following is an example of the response
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#workflow",
"@odata.type": "#microsoft.graph.identityGovernance.workflow",
"category": "joiner",
"description": "Configure new hire tasks for onboarding employees on their first day",
"displayName": "Australia Onboard new hire employee",
"lastModifiedDateTime": "2022-08-24T18:51:29.4301671Z",
"createdDateTime": "2022-08-24T18:30:33.1050022Z",
"deletedDateTime": null,
"id": "4c9c57b9-e1e9-4bed-a936-4fad9d8f5638",
"isEnabled": true,
"isSchedulingEnabled": false,
"nextScheduleRunDateTime": null,
"version": 1,
"executionConditions": null,
"lastModifiedBy": {
"id": "537b3620-fab7-435e-81bb-03fee751b789"
},
"tasks@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/lifecycleWorkflows/deletedItems/workflows('4c9c57b9-e1e9-4bed-a936-4fad9d8f5638')('4c9c57b9-e1e9-4bed-a936-4fad9d8f5638')/tasks",
"tasks": [],
"createdBy": {
"id": "537b3620-fab7-435e-81bb-03fee751b789"
}
}
Feedback
Submit and view feedback for