---
title: "Create or update the Harbor integration"
method: PUT
path: "/api/v4/groups/{id}/integrations/harbor"
tags: ["integrations"]
---

# Create or update the Harbor integration

`PUT /api/v4/groups/{id}/integrations/harbor`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/groups/{id}/integrations/harbor`
- Auth: none declared

Creates or updates the Harbor integration.

## Path parameters

- `id` integer, required

## Request body

- PutApiV4GroupsIdIntegrationsHarbor: Create or update the Harbor integration
  - `url` string, required: The base URL to the Harbor instance linked to the GitLab project. For example, `https://demo.goharbor.io`.
  - `project_name` string, required: The name of the project in the Harbor instance. For example, `testproject`.
  - `username` string, required: The username created in the Harbor interface.
  - `password` string, required: The password of the user.
  - `use_inherited_settings` boolean: Indicates whether to inherit the default settings. Defaults to `false`.

## Response `200`

Create or update the Harbor integration

- APIEntitiesIntegrationBasic: API_Entities_IntegrationBasic model
  - `id` integer, required
  - `title` string, required
  - `slug` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `active` boolean, required
  - `commit_events` boolean, required
  - `push_events` boolean, required
  - `issues_events` boolean, required
  - `incident_events` boolean, required
  - `alert_events` boolean, required
  - `confidential_issues_events` boolean, required
  - `merge_requests_events` boolean, required
  - `tag_push_events` boolean, required
  - `deployment_events` boolean, required
  - `note_events` boolean, required
  - `confidential_note_events` boolean, required
  - `pipeline_events` boolean, required
  - `wiki_page_events` boolean, required
  - `job_events` boolean, required
  - `comment_on_event_enabled` boolean, required
  - `inherited` boolean, required
  - `vulnerability_events` boolean, required

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `422`: Unprocessable entity

---

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