---
title: "Rotate existing build credential values"
method: POST
path: "/platform/deployments/custom/{id}/build-secrets"
tags: ["Platform"]
---

# Rotate existing build credential values

`POST /platform/deployments/custom/{id}/build-secrets`

## Request

- Base URL: `https://api.imprezahost.com/v1`
- URL: `https://api.imprezahost.com/v1/platform/deployments/custom/{id}/build-secrets`
- Auth: API key in header `X-API-Key` and API key in header `X-API-Secret`

Deploy scope. Exact existing names required; active operations refused. Encrypted values are never returned. Does not redeploy. Requires agent 0.6.11+ and build-secrets-v1; local MCP 0.34.0+.

## Path parameters

- `id` string, required

## Request body

- object
  - `build_secrets` object, required

## Response `200`

Credential values replaced; names only, redeployed=false.

## Other responses

- `400`: Invalid names or values.
- `404`: Owned deployment not found.
- `409`: An operation is active.

---

[API](https://skmtc.dev/imprezahost/apis/impreza-host-public-api.md) · [All operations](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/imprezahost/apis/impreza-host-public-api/revisions/db86511f604f?raw)
