Method: Gitlab::Client::Boards#create_board_list

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

#create_board_list(project, board_id, label_id) ⇒ Gitlab::ObjectifiedHash

Creates a new board list. Only for admins and project owners

Examples:

Gitlab.create_board_list(5, 42, 25)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a board.

  • label_id (Integer)

    The ID of a label.

Returns:


114
115
116
# File 'lib/gitlab/client/boards.rb', line 114

def create_board_list(project, board_id, label_id)
  post("/projects/#{url_encode project}/boards/#{board_id}/lists", body: { label_id: label_id })
end