---
title: "Update Git Settings"
method: PATCH
path: "/settings/git"
tags: ["settings"]
---

# Update Git Settings

`PATCH /settings/git`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/settings/git`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

## Request body

- GitSettingsUpdate
  - `git_allowed_domains` string[]: Allowed git domains for authentication.
  - `git_repo_url` string, nullable
  - `git_repo_package_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
