---
title: "Disconnect git auto-deploy"
method: POST
path: "/platform/deployments/custom/{id}/git-webhook/disconnect"
tags: ["Platform"]
---

# Disconnect git auto-deploy

`POST /platform/deployments/custom/{id}/git-webhook/disconnect`

## Request

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

Turns auto-deploy off on our side immediately — further pushes are
rejected (the token / signature no longer matches).

For a **GitHub one-click** hook, supply the PAT again to also
**DELETE the webhook from your repo** (keeps Settings → Webhooks
clean); without it, only the local switch flips. For a **manual**
webhook, remove it yourself in your provider's webhook settings.

Idempotent: disconnect on an already-disconnected deployment
returns 200 noop.

## Path parameters

- `id` string, required

## Request body

- object
  - `github_pat` string: Optional. When supplied, we also DELETE the webhook on GitHub. Without it, only the local enabled flag flips.

## Response `200`

Disconnected (or already disconnected — idempotent)

## Other responses

- `401`: Invalid or missing API credentials
- `404`: Resource not found

---

[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)
