21979: Extended wipe end-point to allow for doWipe Win CMD (#29770)

For #21979

Extended POST /api/v1/fleet/hosts/:id/wipe end-point to allow users to
specify an optional payload for specifying what type of remote wipe to
perform on Win hosts.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
This commit is contained in:
Juan Fernandez
2025-06-11 13:56:07 -04:00
committed by GitHub
co-authored by Rachael Shaw
parent ba154058ea
commit d847ec8ed4
10 changed files with 180 additions and 19 deletions
+4 -3
View File
@@ -4455,9 +4455,10 @@ To wipe a macOS, iOS, iPadOS, or Windows host, the host must have MDM turned on.
#### Parameters
| Name | Type | In | Description |
| ---------- | ----------------- | ---- | ----------------------------------------------------------------------------- |
| id | integer | path | **Required**. ID of the host to be wiped. |
| Name | Type | In | Description |
|----------| ----------------- | ---- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| id | integer | path | **Required**. ID of the host to be wiped. |
| windows | object | body | Optional metadata used when wiping Windows hosts. The object includes a `wipe_type` property that can be used for specifying what type of remote wipe to perform. Allowed values are `"doWipe"` and `"doWipeProtected"`. |
#### Example