---
title: "Update standing workspace rules; credentials belong in secrets and runnable setup in environments"
method: PUT
path: "/context/rules"
tags: ["workspace"]
---

# Update standing workspace rules; credentials belong in secrets and runnable setup in environments

`PUT /context/rules`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/context/rules`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Update standing workspace rules; credentials belong in secrets and runnable setup in environments.

## Request body

- object
  - `content` string, required

## Response `200`

Successful response

- unknown

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

[API](https://skmtc.dev/dench/apis/dench-api.md) - [All operations](https://skmtc.dev/dench/apis/dench-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dench/apis/dench-api/revisions/4a145b38f19c?raw)
