Skip to content

Merge topics

POST
/api/v4/topics/merge

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.

Media type application/json
object
source_topic_id
required

ID of source project topic

integer
nullable
target_topic_id
required

ID of target project topic

integer
nullable
Example generated
{
"source_topic_id": 1,
"target_topic_id": 1
}

Created

Media type application/json
object
id
integer format: int64
name
string
title
string
description
string
total_projects_count
integer
organization_id
integer format: int64
avatar_url
string
Example
{
"id": 1,
"name": "topic1",
"title": "Topic 1",
"description": "A description",
"total_projects_count": 1,
"organization_id": 1,
"avatar_url": "http://gitlab.example.com/uploads/topic/avatar/1/avatar.png"
}

Bad Request