---
title: "Deactivate a git provider connection"
method: POST
path: "/git-connections/{connection_id}/deactivate"
tags: ["Git Providers"]
---

# Deactivate a git provider connection

`POST /git-connections/{connection_id}/deactivate`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/git-connections/{connection_id}/deactivate`
- Auth: HTTP bearer

## Path parameters

- `connection_id` integer, required

## Response `200`

Connection deactivated successfully

## Other responses

- `400`: Connection is in use by projects and cannot be deactivated
- `401`: Unauthorized
- `404`: Connection not found
- `500`: Internal server error

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
