---
title: "Merge topics"
method: POST
path: "/api/v4/topics/merge"
tags: ["project_topics"]
---

# Merge topics

`POST /api/v4/topics/merge`

## Request

- Base URL: `https://gitlab.com`
- URL: `https://gitlab.com/api/v4/topics/merge`
- Auth: none declared

Merges a source topic into a target topic. This action deletes the source topic and moves all assigned projects to the target topic. Administrators only.

## Request body

- PostApiV4TopicsMerge: Merge topics
  - `source_topic_id` integer, required: ID of source project topic
  - `target_topic_id` integer, required: ID of target project topic

## Response `201`

Merge topics

- APIEntitiesProjectsTopic: API_Entities_Projects_Topic model
  - `id` integer, required
  - `name` string, required
  - `title` string, required
  - `description` string, required
  - `total_projects_count` integer, required
  - `organization_id` integer, required
  - `avatar_url` string, required

---

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