---
title: "Updates the health policy of the given repair task."
method: POST
path: "/$/UpdateRepairTaskHealthPolicy"
tags: ["RepairManagement"]
---

# Updates the health policy of the given repair task.

`POST /$/UpdateRepairTaskHealthPolicy`

This API supports the Service Fabric platform; it is not meant to be used directly from your code.

## Query parameters

- `api-version` '6.0', required

## Request body

- RepairTaskUpdateHealthPolicyDescription — Describes a request to update the health policy of a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code.
  - `TaskId` string, required — The ID of the repair task to be updated.
  - `Version` string — The current version number of the repair task. If non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.
  - `PerformPreparingHealthCheck` boolean — A boolean indicating if health check is to be performed in the Preparing stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value.
  - `PerformRestoringHealthCheck` boolean — A boolean indicating if health check is to be performed in the Restoring stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value.

## Response `200`

A successful operation will return 200 status code.
The response body provides information about the updated repair task.

- RepairTaskUpdateInfo — Describes the result of an operation that created or updated a repair task. This type supports the Service Fabric platform; it is not meant to be used directly from your code.
  - `Version` string, required — The new version of the repair task.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
