# Console: strategies

Source: https://docs.neode.sk/development/api-reference/console-strategies/
Last updated: 2026-12-03

> 7 operations. Strategies: settings pushed to desktop clients.

These routes are on the console, port 3375. They take an API token as `Authorization: Bearer ndt_...`; see [API tokens](https://docs.neode.sk/command-line/api-tokens.md).

Strategies: settings pushed to desktop clients.

## GET /api/panel/strategies

List strategies.

Needs `device.view`. `neodesk strategies list` calls it.

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.strategies` | array of [Strategy](https://docs.neode.sk/development/api-reference/schemas.md#strategy) |
| `data.total` | integer |

| Error | When |
|---|---|
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## POST /api/panel/strategies

Make a strategy: settings pushed to desktop clients.

Strategies apply to RustDesk clients: the server hands the features to the devices the strategy is given to. An account limited to some devices can only bind a strategy to a device group open to it, and to no user group.

Needs `device.edit`. `neodesk strategies create` calls it.

Request body, `application/json`:

| Field | Type | Required | What it is |
|---|---|---|---|
| `name` | string | yes | Cut at 80 characters |
| `user_group_guid` | string |  | Letters, digits and _ . : -, at most 80; empty for none |
| `device_group_guid` | string |  | Letters, digits and _ . : -, at most 80; empty for none |
| `enabled` | boolean |  | Only false turns the strategy off; default `true` |
| `permissions` | object |  | true, Y or y allows a feature, false, N or n forbids it; other keys and values are dropped |
| `permissions.enable-file-transfer` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.disable-clipboard` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-clipboard` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-audio` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-tunnel` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-camera` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-remote-restart` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |
| `permissions.enable-block-input` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |  |

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.strategy` | [Strategy](https://docs.neode.sk/development/api-reference/schemas.md#strategy) |

| Error | When |
|---|---|
| 400 | Strategy name is required, Invalid user group or Invalid device group |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## POST /api/panel/strategies/unassign

Take strategies away from devices, accounts or device groups.

Removes the strategy given directly to each target and tells the server. Strategies a target gets through a group stay. An account limited to some devices can only name its devices, device groups open to it and its own account.

Needs `device.edit`. `neodesk strategies unassign` calls it.

Request body, `application/json`:

[StrategyTargets](https://docs.neode.sk/development/api-reference/schemas.md#strategytargets).

**200**: Done (`application/json`)

[ConsoleSuccess](https://docs.neode.sk/development/api-reference/schemas.md#consolesuccess).

| Error | When |
|---|---|
| 400 | At least one target is required, a list that is no list, or a target that names nothing |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |

## GET /api/panel/strategies/{guid}

Show one strategy with whom it is given to.

Falls back to the server's copy when the console has no such strategy. An account limited to some devices sees only the assignments it may see.

Needs `device.view`. `neodesk strategies get` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The strategy guid |

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.strategy` | [Strategy](https://docs.neode.sk/development/api-reference/schemas.md#strategy) and [StrategyAssignmentSummary](https://docs.neode.sk/development/api-reference/schemas.md#strategyassignmentsummary) and object |

| Error | When |
|---|---|
| 400 | The guid is not valid (Invalid strategy identifier) |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## PATCH /api/panel/strategies/{guid}

Change a strategy.

Changes the fields in the body; the others keep their value. permissions replaces the whole set. An account limited to some devices can only change a strategy whose assignments and device group it may all see, binds it only to a device group open to it, and cannot change its user group.

Needs `device.edit`. `neodesk strategies update` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The strategy guid |

Request body, `application/json`:

| Field | Type | What it is |
|---|---|---|
| `name` | string | Cut at 80 characters |
| `user_group_guid` | string | Letters, digits and _ . : -, at most 80; empty for none |
| `device_group_guid` | string | Letters, digits and _ . : -, at most 80; empty for none |
| `enabled` | boolean | Only false turns the strategy off; default `true` |
| `permissions` | object | true, Y or y allows a feature, false, N or n forbids it; other keys and values are dropped |
| `permissions.enable-file-transfer` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.disable-clipboard` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-clipboard` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-audio` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-tunnel` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-camera` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-remote-restart` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |
| `permissions.enable-block-input` | boolean or string, one of `true`, `false`, `Y`, `N`, `y`, `n` |  |

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.strategy` | [Strategy](https://docs.neode.sk/development/api-reference/schemas.md#strategy) |

| Error | When |
|---|---|
| 400 | Invalid strategy identifier, Strategy name is required, Invalid user group or Invalid device group |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## DELETE /api/panel/strategies/{guid}

Delete a strategy and its assignments.

Deletes the strategy, its assignments and the server's copy. An account limited to some devices can only delete a strategy whose assignments and device group it may all see.

Needs `device.edit`. `neodesk strategies delete` calls it. It cannot be undone.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The strategy guid |

**200**: Done (`application/json`)

[ConsoleSuccess](https://docs.neode.sk/development/api-reference/schemas.md#consolesuccess).

| Error | When |
|---|---|
| 400 | The guid is not valid (Invalid strategy identifier) |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |

## POST /api/panel/strategies/{guid}/assign

Give a strategy to devices, accounts or device groups.

Makes this the strategy of each target, in place of the one it had, and tells the server. An account limited to some devices can only name its devices, device groups open to it and its own account.

Needs `device.edit`. `neodesk strategies assign` calls it.

| Parameter | In | Type | Required | What it is |
|---|---|---|---|---|
| `guid` | path | string | yes | The strategy guid |

Request body, `application/json`:

[StrategyTargets](https://docs.neode.sk/development/api-reference/schemas.md#strategytargets).

**200**: Done (`application/json`)

| Field | Type |
|---|---|
| `success` | `true` |
| `data` | object |
| `data.summary` | [StrategyAssignmentSummary](https://docs.neode.sk/development/api-reference/schemas.md#strategyassignmentsummary) |

| Error | When |
|---|---|
| 400 | Invalid strategy identifier, At least one target is required, a list that is no list, or a target that names nothing (peer not found, user not found, device group not found) |
| 401 | No session or API token, or one that is not valid (code session_required or token_invalid) |
| 403 | The account or the token may not do this, or a write from a browser came without a good CSRF token |
| 404 | There is no such item, or the account does not see it |
