project_topics

Create a project topic

Creates a project topic. Administrators only.

post/api/v4/topics

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Request body

namestring required

Slug (name)

titlestring required

Title

descriptionstring

Description

avatarstring binary

Avatar image for topic

organization_idinteger

The organization id for the topic

Response

Create a project topic

idinteger required
namestring required
titlestring required
descriptionstring required
total_projects_countinteger required
organization_idinteger required
avatar_urlstring required

Example response

{
  "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"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.