---
title: "Update the organization's computer rules"
method: PATCH
path: "/v1/org/computer-rules"
tags: ["Organizations"]
---

# Update the organization's computer rules

`PATCH /v1/org/computer-rules`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/org/computer-rules`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Changes whether work from another computer may run code. Set runCode to null to follow the remote-tasks setting again. Does not change remote tasks or sessions. The sandbox requirement for personal computers cannot be turned off. Requires Edit organization settings.

## Request body

- UpdateOrganizationComputerRulesRequest
  - `runCode` boolean, nullable: Use null to follow the remote-tasks setting again.
  - `requireSandboxOnPersonal` boolean

## Response `200`

The computer rules.

- OrganizationComputerRulesResponse
  - `rules` OrganizationComputerRules, required
    - `sessions` 'off' | 'created' | 'all', required
    - `runCode` boolean, required
    - `requireSandboxOnPersonal` boolean, required
  - `runCodeChosen` boolean, required

## Other responses

- `400`: The request was invalid.
- `401`: Sign in required.
- `403`: Edit organization settings permission required.
- `404`: The organization was not found, or Computers is off.
- `409`: OpenWork can't run arriving work outside the sandbox on personal computers yet, so this rule can't be turned off.

## Changes

- **2026-11-28** `974b1bd609d3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/org/computer-rules/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.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
