---
title: "Replace a connection secret without changing its permitted host"
method: PUT
path: "/workflow-connections/{id}"
tags: ["Workflows"]
---

# Replace a connection secret without changing its permitted host

`PUT /workflow-connections/{id}`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/workflow-connections/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `id` string, required

## Query parameters

- `workspace_id` string, required

## Request body

- WorkflowRotateCredentialInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `token` string, required

## Response `200`

OK

- WorkflowConnection
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `created_at` string, date-time, required
  - `header_name` string
  - `host` string
  - `id` string, required
  - `kind` string, required
  - `name` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `500`: Internal Server Error
- `503`: Service Unavailable

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
