Desktop Policies

Update desktop policy

Changed on

Rewrites one desktop policy. The full write body is required: the policy document is replaced (access, execution, and onboarding prompts omitted from it are carried over from the stored document) and the member, team, and role assignments are replaced with the ones sent. The default policy keeps its name, priority, and assignments and cannot be disabled (400 default_policy_required).

patch/v1/desktop-policies/{desktopPolicyId}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

desktopPolicyId, string typeid required

Den TypeID with 'dpo_' prefix and a 26-character base32 suffix.

Request body

object required
policyName, string required
policy, DenDesktopPolicyDocumentWrite required
priority, integer
isEnabled, boolean
memberIds, string[]
teamIds, string[]
roles, string[]

Response

Desktop policy updated successfully.

DesktopPolicyResponse required
desktopPolicy, object required

Changes

    • info

      added the new optional request property policy/access/capabilities/allowLocalModels

    • info

      added the new optional request property policy/allowLocalModels

    • info

      response property details/items/path/items/ list-of-types was narrowed by removing types number from media type application/json of response 400