Method: Gitlab::Client::Boards#create_board

Defined in:
lib/gitlab/client/boards.rb

#create_board(project, name) ⇒ Gitlab::ObjectifiedHash

Creates a new board.

Examples:

Gitlab.create_board(5, 'newboard')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • name (String)

    The name of the new board.

Returns:

[View source]

42
43
44
45
# File 'lib/gitlab/client/boards.rb', line 42

def create_board(project, name)
  body = { name: name }
  post("/projects/#{url_encode project}/boards", body: body)
end