---
title: "Update desktop policy"
method: PATCH
path: "/v1/desktop-policies/{desktopPolicyId}"
tags: ["Desktop Policies"]
---

# Update desktop policy

`PATCH /v1/desktop-policies/{desktopPolicyId}`

## Path parameters

- `desktopPolicyId` string, typeid, required

## Request body

- object
  - `policyName` string, required
  - `policy` DenDesktopPolicyDocumentWrite, required
    - `allowCustomProviders` boolean
    - `allowZenModel` boolean
    - `allowMultipleWorkspaces` boolean
    - `allowControlSettings` boolean
    - `allowManageExtensions` boolean
    - `allowBuiltInExtensions` boolean
    - `allowAlphaUpdates` boolean
    - `showWelcomePage` boolean
    - `onboardingPrompts` string[], nullable
    - `onboardingPromptDescriptions` string[], nullable
  - `priority` integer
  - `isEnabled` boolean
  - `memberIds` string[]
  - `teamIds` string[]
  - `roles` string[]

## Response `200`

Desktop policy updated successfully.

- DesktopPolicyResponse
  - `desktopPolicy` object, required

## Other responses

- `400` — The desktop policy request was invalid.
- `401` — The caller must be signed in to update desktop policies.
- `402` — Desktop policy management requires an Enterprise plan.
- `403` — Only workspace owners and super-admins can update desktop policies.
- `404` — The policy or a referenced resource was not found.

## Changes

- **2026-08-20** `93df40e2efd5` — 3 info
  - removed the pattern `^dpo_.*` from the `path` request parameter `desktopPolicyId`
  - removed the pattern `^om_.*` from the request property `memberIds/items/`
  - removed the pattern `^tem_.*` from the request property `teamIds/items/`

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/desktop-policies/:desktopPolicyId/patch.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) · [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openworklabs/den-api/revisions/571dc4a74532/schema)
