---
title: "Update Error Tracking settings for a project"
method: PATCH
path: "/api/v4/projects/{id}/error_tracking/settings"
tags: ["error_tracking"]
---

# Update Error Tracking settings for a project

`PATCH /api/v4/projects/{id}/error_tracking/settings`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/projects/{id}/error_tracking/settings`
- Auth: none declared

Updates Error Tracking settings for a specified project. You must have the Maintainer or Owner role for the project.

## Path parameters

- `id` string, required

## Request body

- PatchApiV4ProjectsIdErrorTrackingSettings: Update Error Tracking settings for a project
  - `active` boolean, required: Pass true to enable the already configured Error Tracking settings or false to disable it.
  - `integrated` boolean: Pass true to enable the integrated Error Tracking backend. Available in GitLab 14.2 and later.

## Response `200`

Update Error Tracking settings for a project

- APIEntitiesErrorTrackingProjectSetting: API_Entities_ErrorTracking_ProjectSetting model
  - `active` boolean, required
  - `project_name` string, required
  - `sentry_external_url` string, required
  - `api_url` string, required
  - `integrated` boolean, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found

---

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