---
title: "Rotate a value"
method: PATCH
path: "/workflows/config/{id}"
tags: ["Workflow secrets and variables"]
---

# Rotate a value

`PATCH /workflows/config/{id}`

## Request

- Base URL: `https://api.nullplatform.com`
- URL: `https://api.nullplatform.com/workflows/config/{id}`
- Auth: HTTP bearer

Replaces the entry's value in place. Name, place, and the secret flag are unchanged.

## Path parameters

- `id` string, required

## Request body

- object
  - `value` string, required

## Response `200`

The value was rotated.

- ConfigEntry: A secret or variable. Exactly one of `path` or `workflow` identifies the place it lives. Secret values are write-only: they are never returned by any read.
  - `id` string, required
  - `name` string, required: Referenced in definitions as `${{ secrets.NAME }}` or `${{ vars.NAME }}`.
  - `secret` boolean, required: Immutable. `true` makes the value write-only and redacted everywhere.
  - `path` string: Folder place (`/` is the organization root). Present when the entry lives on a folder.
  - `workflow` string: Workflow reference. Present when the entry lives on one workflow.
  - `value` string, nullable: Only returned for non-secret entries.
  - `effective` boolean: Only with `ancestors=true`: whether this row wins precedence for its name.
  - `mode` 'created' | 'updated': Write responses only: whether the entry was created or its value rotated.
  - `createdBy` string
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `4XX`: Client error, as plain JSON.
- `5XX`: Unexpected server error.

## Changes

- **2026-09-17** `43b3c1ecdfd8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/nullplatform/apis/nullplatform-api/changes/workflows/config/:id/patch.md)

---

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