---
title: "Update organization computer secrets"
method: PATCH
path: "/api/v0/organization/computer-secrets"
tags: ["Organization"]
---

# Update organization computer secrets

`PATCH /api/v0/organization/computer-secrets`

Atomically upserts and deletes write-only secrets shared by managed computers in the authenticated organization. Responses include names only.

## Request body

- UpdateOrganizationComputerSecretsRequestBody
  - `createOnly` boolean
  - `upsert` object[], required
    - `key` string, required — Uppercase POSIX environment variable name.
    - `value` string, required
  - `delete` string[], required

## Response `200`

Response for status 200

- UpdateOrganizationComputerSecrets200ResponseBody
  - `secrets` object[], required
    - `key` string, required — Uppercase POSIX environment variable name.

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `409` — Response for status 409
- `500` — Response for status 500

## Changes

- **2026-09-22** `415bff082e81` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/organization/computer-secrets/patch.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) · [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/415bff082e81?raw)
